|
FLANG
|
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 |
This converts FIR/mlir type to DITypeAttr.
| 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.