FLANG
fir::DebugTypeGenerator Class Reference

This converts FIR/mlir type to DITypeAttr. More...

#include <flang/Optimizer/Transforms/DebugTypeGenerator.h>

Public Member Functions

 DebugTypeGenerator (mlir::ModuleOp module, mlir::SymbolTable *symbolTable, const mlir::DataLayout &dl, bool boundsInStackSlots=false)
mlir::LLVM::DITypeAttr convertType (mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr, mlir::LLVM::DIScopeAttr scope, fir::cg::XDeclareOp declOp)
bool hasBoundSlot (mlir::Value val, fir::cg::XDeclareOp declOp) const

Detailed Description

This converts FIR/mlir type to DITypeAttr.

Member Function Documentation

◆ hasBoundSlot()

bool fir::DebugTypeGenerator::hasBoundSlot ( mlir::Value val,
fir::cg::XDeclareOp declOp ) const

Whether val is held in a stack slot for the variable declared by declOp, which makes a fake use of it unnecessary.


The documentation for this class was generated from the following files: