MLIR
15.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... | |
const llvm::DILocation * | translateLoc (Location loc, llvm::DILocalScope *scope) |
Translate the given location to an llvm debug location. More... | |
void | translate (LLVMFuncOp func, llvm::Function &llvmFunc) |
Translate the debug information for the given function. More... | |
Definition at line 29 of file DebugTranslation.h.
DebugTranslation::DebugTranslation | ( | Operation * | module, |
llvm::Module & | llvmModule | ||
) |
Definition at line 27 of file DebugTranslation.cpp.
References mlir::Operation::getAttr(), interruptIfValidLocation(), and mlir::Operation::walk().
void DebugTranslation::finalize | ( | ) |
Finalize the translation of debug information.
Definition at line 65 of file DebugTranslation.cpp.
void DebugTranslation::translate | ( | LLVMFuncOp | func, |
llvm::Function & | llvmFunc | ||
) |
Translate the debug information for the given function.
Definition at line 79 of file DebugTranslation.cpp.
References mlir::WalkResult::advance(), extractFileLoc(), mlir::WalkResult::interrupt(), interruptIfValidLocation(), and mlir::Location::isa().
const llvm::DILocation * DebugTranslation::translateLoc | ( | Location | loc, |
llvm::DILocalScope * | scope | ||
) |
Translate the given location to an llvm debug location.
Definition at line 124 of file DebugTranslation.cpp.
References mlir::Location::cast(), mlir::Location::dyn_cast(), and mlir::Location::isa().