MLIR
20.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 29 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 365 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 486 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 35 of file DebugImporter.cpp.
References mlir::get(), and translate().
DIGlobalVariableExpressionAttr DebugImporter::translateGlobalVariableExpression | ( | llvm::DIGlobalVariableExpression * | node | ) |
Translates the LLVM DWARF global variable expression metadata to MLIR.
Definition at line 504 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 466 of file DebugImporter.cpp.
References mlir::get(), and translate().