MLIR  15.0.0git
Public Member Functions | List of all members
mlir::LLVM::detail::DebugTranslation Class Reference

#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...
 

Detailed Description

Definition at line 29 of file DebugTranslation.h.

Constructor & Destructor Documentation

◆ DebugTranslation()

DebugTranslation::DebugTranslation ( Operation module,
llvm::Module &  llvmModule 
)

Member Function Documentation

◆ finalize()

void DebugTranslation::finalize ( )

Finalize the translation of debug information.

Definition at line 65 of file DebugTranslation.cpp.

◆ translate()

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().

◆ translateLoc()

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().


The documentation for this class was generated from the following files: