MLIR
20.0.0git
|
#include "mlir/Dialect/LLVMIR/Transforms/Passes.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Pass/Pass.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Path.h"
#include "mlir/Dialect/LLVMIR/Transforms/Passes.h.inc"
Go to the source code of this file.
Namespaces | |
mlir | |
Include the generated interface declarations. | |
mlir::LLVM | |
Macros | |
#define | GEN_PASS_DEF_DISCOPEFORLLVMFUNCOPPASS |
Functions | |
static FileLineColLoc | extractFileLoc (Location loc) |
Attempt to extract a filename for the given loc. More... | |
static void | addScopeToFunction (LLVM::LLVMFuncOp llvmFunc, LLVM::DICompileUnitAttr compileUnitAttr) |
Creates a DISubprogramAttr with the provided compile unit and attaches it to the function. More... | |
#define GEN_PASS_DEF_DISCOPEFORLLVMFUNCOPPASS |
Definition at line 19 of file DIScopeForLLVMFuncOp.cpp.
|
static |
Creates a DISubprogramAttr with the provided compile unit and attaches it to the function.
Does nothing when the function already has an attached subprogram.
Definition at line 40 of file DIScopeForLLVMFuncOp.cpp.
References mlir::DistinctAttr::create(), extractFileLoc(), mlir::LocationAttr::findInstanceOf(), and mlir::get().
|
static |
Attempt to extract a filename for the given loc.
Definition at line 27 of file DIScopeForLLVMFuncOp.cpp.
Referenced by addScopeToFunction().