MLIR
20.0.0git
|
An instance of this location represents a tuple of file, line number, and column number. More...
#include "mlir/IR/Location.h"
Public Member Functions | |
StringAttr | getFilename () const |
unsigned | getLine () const |
unsigned | getColumn () const |
Static Public Member Functions | |
static FileLineColLoc | get (StringAttr filename, unsigned line, unsigned column) |
static FileLineColLoc | get (MLIRContext *context, StringRef fileName, unsigned line, unsigned column) |
static bool | classof (Attribute attr) |
Methods for support type inquiry through isa, cast, and dyn_cast. More... | |
An instance of this location represents a tuple of file, line number, and column number.
This is similar to the type of location that you get from most source languages.
FileLineColLoc is a FileLineColRange with exactly one line and column.
Definition at line 181 of file Location.h.
|
static |
Methods for support type inquiry through isa, cast, and dyn_cast.
Definition at line 180 of file Location.cpp.
|
static |
Definition at line 166 of file Location.cpp.
References mlir::get().
|
static |
Definition at line 160 of file Location.cpp.
References mlir::get().
Referenced by mlir::transform::detail::assembleTransformLibraryFromPaths(), mlir::BytecodeReader::BytecodeReader(), mlir::transform::detail::expandPathsToMLIRFiles(), mlir::Lexer::getEncodedSourceLocation(), mlirLocationFileLineColGet(), mlir::parseAsmSourceFile(), mlir::detail::Parser::parseNameOrFileLineColRange(), mlir::transform::detail::parseTransformModuleFromFile(), readBytecodeFileImpl(), mlir::LLVM::detail::DebugImporter::translateFuncLocation(), mlir::translateLLVMIRToModule(), and mlir::LLVM::detail::DebugImporter::translateLoc().
unsigned FileLineColLoc::getColumn | ( | ) | const |
Definition at line 178 of file Location.cpp.
Referenced by addScopeToFunction(), and getLocationFromLoc().
StringAttr FileLineColLoc::getFilename | ( | ) | const |
Definition at line 172 of file Location.cpp.
Referenced by addScopeToFunction(), and getLocationFromLoc().
unsigned FileLineColLoc::getLine | ( | ) | const |
Definition at line 176 of file Location.cpp.
Referenced by addScopeToFunction(), and getLocationFromLoc().