|
MLIR 23.0.0git
|
#include "mlir/Dialect/LLVMIR/Transforms/Passes.h"#include "mlir/Dialect/LLVMIR/LLVMDialect.h"#include "llvm/BinaryFormat/Dwarf.h"#include "llvm/Support/Path.h"#include "mlir/Dialect/LLVMIR/Transforms/Passes.h.inc"Go to the source code of this file.
Classes | |
| class | mlir::LLVM::impl::DIScopeForLLVMFuncOpPassBase< DerivedT > |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::LLVM |
| namespace | mlir::LLVM::impl |
Macros | |
| #define | GEN_PASS_DEF_DISCOPEFORLLVMFUNCOPPASS |
Functions | |
| std::unique_ptr<::mlir::Pass > | mlir::LLVM::impl::createDIScopeForLLVMFuncOpPass () |
| std::unique_ptr<::mlir::Pass > | mlir::LLVM::impl::createDIScopeForLLVMFuncOpPass (DIScopeForLLVMFuncOpPassOptions options) |
| std::unique_ptr<::mlir::Pass > | mlir::LLVM::createDIScopeForLLVMFuncOpPass () |
| std::unique_ptr<::mlir::Pass > | mlir::LLVM::createDIScopeForLLVMFuncOpPass (DIScopeForLLVMFuncOpPassOptions options) |
| static FileLineColLoc | extractFileLoc (Location loc) |
| Attempt to extract a filename for the given loc. | |
| static void | addScopeToFunction (LLVM::LLVMFuncOp llvmFunc, LLVM::DICompileUnitAttr compileUnitAttr) |
| Creates a DISubprogramAttr with the provided compile unit and attaches it to the function. | |
| static Location | getNestedLoc (Operation *op, LLVM::DIScopeAttr scopeAttr, Location calleeLoc) |
| static void | setLexicalBlockFileAttr (Operation *op) |
| Adds DILexicalBlockFileAttr for operations with CallSiteLoc and operations from different files than their containing function. | |
| #define GEN_PASS_DEF_DISCOPEFORLLVMFUNCOPPASS |
Definition at line 17 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 46 of file DIScopeForLLVMFuncOp.cpp.
|
static |
Attempt to extract a filename for the given loc.
Definition at line 25 of file DIScopeForLLVMFuncOp.cpp.
References extractFileLoc().
Referenced by mlir::LLVM::impl::DIScopeForLLVMFuncOpPassBase< DerivedT >::createDIScopeForLLVMFuncOpPass, extractFileLoc(), and setLexicalBlockFileAttr().
|
static |
Definition at line 94 of file DIScopeForLLVMFuncOp.cpp.
Referenced by mlir::LLVM::createDIScopeForLLVMFuncOpPass(), and setLexicalBlockFileAttr().
Adds DILexicalBlockFileAttr for operations with CallSiteLoc and operations from different files than their containing function.
Definition at line 114 of file DIScopeForLLVMFuncOp.cpp.
References extractFileLoc(), mlir::Operation::getContext(), mlir::FileLineColLoc::getFilename(), mlir::Operation::getLoc(), getNestedLoc(), mlir::Operation::getParentOfType(), and mlir::Operation::setLoc().