MLIR  19.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...
 
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...
 

Detailed Description

Definition at line 30 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 58 of file DebugTranslation.cpp.

◆ translate() [1/3]

template<typename DIAttrT >
auto mlir::LLVM::detail::DebugTranslation::translate ( DIAttrT  attr)
inline

Translate the given derived LLVM debug metadata to LLVM.

Definition at line 55 of file DebugTranslation.h.

References translate().

◆ translate() [2/3]

llvm::DINode * DebugTranslation::translate ( DINodeAttr  attr)

Translate the given LLVM debug metadata to LLVM.

Definition at line 331 of file DebugTranslation.cpp.

◆ translate() [3/3]

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

◆ translateExpression()

llvm::DIExpression * DebugTranslation::translateExpression ( LLVM::DIExpressionAttr  attr)

Translates the given DWARF expression metadata to to LLVM.

Definition at line 373 of file DebugTranslation.cpp.

◆ translateGlobalVariableExpression()

llvm::DIGlobalVariableExpression * DebugTranslation::translateGlobalVariableExpression ( LLVM::DIGlobalVariableExpressionAttr  attr)

Translates the given DWARF global variable expression to LLVM.

Definition at line 386 of file DebugTranslation.cpp.

References mlir::get().

◆ translateLoc()

llvm::DILocation * DebugTranslation::translateLoc ( Location  loc,
llvm::DILocalScope *  scope 
)

Translate the given location to an llvm debug location.

Definition at line 365 of file DebugTranslation.cpp.


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