MLIR
21.0.0git
|
#include "Target/LLVMIR/DebugTranslation.h"
Public Member Functions | |
DebugTranslation (Operation *module, llvm::Module &llvmModule) | |
void | addModuleFlagsIfNotPresent () |
Adds the necessary module flags to the module, if not yet present. More... | |
llvm::DILocation * | translateLoc (Location loc, llvm::DILocalScope *scope) |
Translate the given location to an llvm debug location. More... | |
llvm::DIExpression * | translateExpression (LLVM::DIExpressionAttr attr) |
Translates the given DWARF expression metadata to to LLVM. More... | |
llvm::DIGlobalVariableExpression * | translateGlobalVariableExpression (LLVM::DIGlobalVariableExpressionAttr attr) |
Translates the given DWARF global variable expression to LLVM. More... | |
void | translate (LLVMFuncOp func, llvm::Function &llvmFunc) |
Translate the debug information for the given function. More... | |
llvm::DINode * | translate (DINodeAttr attr) |
Translate the given LLVM debug metadata to LLVM. More... | |
template<typename DIAttrT > | |
auto | translate (DIAttrT attr) |
Translate the given derived LLVM debug metadata to LLVM. More... | |
Definition at line 30 of file DebugTranslation.h.
DebugTranslation::DebugTranslation | ( | Operation * | module, |
llvm::Module & | llvmModule | ||
) |
Definition at line 28 of file DebugTranslation.cpp.
References interruptIfValidLocation(), and mlir::Operation::walk().
void DebugTranslation::addModuleFlagsIfNotPresent | ( | ) |
Adds the necessary module flags to the module, if not yet present.
Definition at line 40 of file DebugTranslation.cpp.
References kCodeViewKey, and kDebugVersionKey.
|
inline |
Translate the given derived LLVM debug metadata to LLVM.
Definition at line 55 of file DebugTranslation.h.
References translate().
llvm::DINode * DebugTranslation::translate | ( | DINodeAttr | attr | ) |
Translate the given LLVM debug metadata to LLVM.
Definition at line 447 of file DebugTranslation.cpp.
void DebugTranslation::translate | ( | LLVMFuncOp | func, |
llvm::Function & | llvmFunc | ||
) |
Translate the debug information for the given function.
Definition at line 59 of file DebugTranslation.cpp.
Referenced by translate().
llvm::DIExpression * DebugTranslation::translateExpression | ( | LLVM::DIExpressionAttr | attr | ) |
Translates the given DWARF expression metadata to to LLVM.
Definition at line 490 of file DebugTranslation.cpp.
References mlir::get().
llvm::DIGlobalVariableExpression * DebugTranslation::translateGlobalVariableExpression | ( | LLVM::DIGlobalVariableExpressionAttr | attr | ) |
Translates the given DWARF global variable expression to LLVM.
Definition at line 503 of file DebugTranslation.cpp.
References mlir::get().
llvm::DILocation * DebugTranslation::translateLoc | ( | Location | loc, |
llvm::DILocalScope * | scope | ||
) |
Translate the given location to an llvm debug location.
Definition at line 482 of file DebugTranslation.cpp.