MLIR  19.0.0git
Functions
DebugTranslation.cpp File Reference
#include "DebugTranslation.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"

Go to the source code of this file.

Functions

static WalkResult interruptIfValidLocation (Operation *op)
 A utility walker that interrupts if the operation has valid debug information. More...
 
template<class DINodeT , class... Ts>
static DINodeT * getDistinctOrUnique (bool isDistinct, Ts &&...args)
 Returns a new DINodeT that is either distinct or not, depending on isDistinct. More...
 

Function Documentation

◆ getDistinctOrUnique()

template<class DINodeT , class... Ts>
static DINodeT* getDistinctOrUnique ( bool  isDistinct,
Ts &&...  args 
)
static

Returns a new DINodeT that is either distinct or not, depending on isDistinct.

Definition at line 123 of file DebugTranslation.cpp.

References mlir::get().

◆ interruptIfValidLocation()

static WalkResult interruptIfValidLocation ( Operation op)
static

A utility walker that interrupts if the operation has valid debug information.

Definition at line 23 of file DebugTranslation.cpp.

Referenced by mlir::LLVM::detail::DebugTranslation::DebugTranslation().