MLIR
18.0.0git
|
#include "Target/LLVMIR/DebugImporter.h"
Public Member Functions | |
DebugImporter (ModuleOp mlirModule) | |
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 30 of file DebugImporter.h.
|
inline |
Definition at line 32 of file DebugImporter.h.
|
inline |
Infers the metadata type and translates it to MLIR.
Definition at line 54 of file DebugImporter.h.
References translate().
DINodeAttr DebugImporter::translate | ( | llvm::DINode * | node | ) |
Translates the given LLVM debug metadata to MLIR.
Definition at line 217 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 297 of file DebugImporter.cpp.
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 27 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 312 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 277 of file DebugImporter.cpp.
References mlir::get(), and translate().