MLIR
20.0.0git
|
#include "Target/LLVMIR/DebugTranslation.h"
Public Member Functions | |
DebugTranslation (Operation *module, llvm::Module &llvmModule) | |
void | finalize () |
Finalize the translation of debug information. 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 mlir::Operation::getDiscardableAttr(), interruptIfValidLocation(), and mlir::Operation::walk().
void DebugTranslation::finalize | ( | ) |
Finalize the translation of debug information.
Definition at line 58 of file DebugTranslation.cpp.
|
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 449 of file DebugTranslation.cpp.
void DebugTranslation::translate | ( | LLVMFuncOp | func, |
llvm::Function & | llvmFunc | ||
) |
Translate the debug information for the given function.
Definition at line 61 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 492 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 505 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 484 of file DebugTranslation.cpp.