|
MLIR
22.0.0git
|
#include "Target/LLVMIR/DebugImporter.h"
Public Member Functions | |
| DebugImporter (ModuleOp mlirModule, bool dropDICompositeTypeElements) | |
| Location | translateLoc (llvm::DILocation *loc) |
| Translates the given LLVM debug location to an MLIR location. More... | |
| DIExpressionAttr | translateExpression (llvm::DIExpression *node) |
| Translates the LLVM DWARF expression metadata to MLIR. More... | |
| DIGlobalVariableExpressionAttr | translateGlobalVariableExpression (llvm::DIGlobalVariableExpression *node) |
| Translates the LLVM DWARF global variable expression metadata to MLIR. More... | |
| Location | translateFuncLocation (llvm::Function *func) |
| Translates the debug information for the given function into a Location. More... | |
| DINodeAttr | translate (llvm::DINode *node) |
| Translates the given LLVM debug metadata to MLIR. More... | |
| template<typename DINodeT > | |
| auto | translate (DINodeT *node) |
| Infers the metadata type and translates it to MLIR. More... | |
Definition at line 32 of file DebugImporter.h.
| DebugImporter::DebugImporter | ( | ModuleOp | mlirModule, |
| bool | dropDICompositeTypeElements | ||
| ) |
Definition at line 25 of file DebugImporter.cpp.
|
inline |
Infers the metadata type and translates it to MLIR.
Definition at line 55 of file DebugImporter.h.
References translate().
| DINodeAttr DebugImporter::translate | ( | llvm::DINode * | node | ) |
Translates the given LLVM debug metadata to MLIR.
Definition at line 360 of file DebugImporter.cpp.
Referenced by translate(), translateFuncLocation(), translateGlobalVariableExpression(), and translateLoc().
| DIExpressionAttr DebugImporter::translateExpression | ( | llvm::DIExpression * | node | ) |
Translates the LLVM DWARF expression metadata to MLIR.
Definition at line 481 of file DebugImporter.cpp.
References mlir::get().
Referenced by translateGlobalVariableExpression().
| Location DebugImporter::translateFuncLocation | ( | llvm::Function * | func | ) |
Translates the debug information for the given function into a Location.
Returns UnknownLoc if func has no debug information attached to it.
Definition at line 31 of file DebugImporter.cpp.
References mlir::get(), mlir::FileLineColLoc::get(), and translate().
| DIGlobalVariableExpressionAttr DebugImporter::translateGlobalVariableExpression | ( | llvm::DIGlobalVariableExpression * | node | ) |
Translates the LLVM DWARF global variable expression metadata to MLIR.
Definition at line 499 of file DebugImporter.cpp.
References mlir::get(), translate(), and translateExpression().
| Location DebugImporter::translateLoc | ( | llvm::DILocation * | loc | ) |
Translates the given LLVM debug location to an MLIR location.
Definition at line 461 of file DebugImporter.cpp.
References mlir::get(), mlir::FileLineColLoc::get(), and translate().