MLIR
21.0.0git
|
Public Types | |
using | PointerPair = llvm::PointerIntPair< StringAttr, 2 > |
using | KeyTy = std::tuple< StringAttr, ::llvm::ArrayRef< unsigned > > |
Public Member Functions | |
FileLineColRangeAttrStorage (StringAttr filename, int numLocs) | |
unsigned | size () const |
bool | operator== (const KeyTy &tblgenKey) const |
unsigned | getLineCols (unsigned index) const |
unsigned | getStartLine () const |
unsigned | getStartColumn () const |
unsigned | getEndColumn () const |
unsigned | getEndLine () const |
![]() | |
const AbstractAttribute & | getAbstractAttribute () const |
Return the abstract descriptor for this attribute. More... | |
Static Public Member Functions | |
static FileLineColRangeAttrStorage * | construct (::mlir::AttributeStorageAllocator &allocator, KeyTy &&tblgenKey) |
::llvm::hash_code | hashKey (const KeyTy &tblgenKey) |
Public Attributes | |
llvm::PointerIntPair< StringAttr, 2 > | filenameAndTrailing |
unsigned | startLine = 0 |
Additional Inherited Members | |
![]() | |
void | initializeAbstractAttribute (const AbstractAttribute &abstractAttr) |
Set the abstract attribute for this storage instance. More... | |
void | initialize (MLIRContext *context) |
Default initialization for attribute storage classes that require no additional initialization. More... | |
![]() | |
BaseStorage ()=default | |
Definition at line 35 of file Location.cpp.
using mlir::detail::FileLineColRangeAttrStorage::KeyTy = std::tuple<StringAttr, ::llvm::ArrayRef<unsigned> > |
Definition at line 39 of file Location.cpp.
using mlir::detail::FileLineColRangeAttrStorage::PointerPair = llvm::PointerIntPair<StringAttr, 2> |
Definition at line 38 of file Location.cpp.
|
inline |
Definition at line 41 of file Location.cpp.
Referenced by construct().
|
inlinestatic |
Definition at line 45 of file Location.cpp.
References mlir::StorageUniquer::StorageAllocator::allocate(), FileLineColRangeAttrStorage(), and size().
|
inline |
Definition at line 91 of file Location.cpp.
References getLineCols(), getStartColumn(), and size().
|
inline |
Definition at line 96 of file Location.cpp.
References getLineCols(), getStartLine(), and size().
|
inline |
Definition at line 81 of file Location.cpp.
Referenced by getEndColumn(), getEndLine(), and getStartColumn().
|
inline |
Definition at line 86 of file Location.cpp.
References getLineCols(), and size().
Referenced by getEndColumn().
|
inline |
|
inlinestatic |
Definition at line 102 of file Location.cpp.
|
inline |
Definition at line 73 of file Location.cpp.
References filenameAndTrailing, size(), and startLine.
|
inline |
Definition at line 71 of file Location.cpp.
References filenameAndTrailing.
Referenced by construct(), getEndColumn(), getEndLine(), getStartColumn(), and operator==().
llvm::PointerIntPair<StringAttr, 2> mlir::detail::FileLineColRangeAttrStorage::filenameAndTrailing |
Definition at line 111 of file Location.cpp.
Referenced by operator==(), and size().
unsigned mlir::detail::FileLineColRangeAttrStorage::startLine = 0 |
Definition at line 112 of file Location.cpp.
Referenced by getStartLine(), and operator==().