MLIR  21.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::detail::FileLineColRangeAttrStorage Struct Referencefinal
+ Inheritance diagram for mlir::detail::FileLineColRangeAttrStorage:

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
 
- Public Member Functions inherited from mlir::AttributeStorage
const AbstractAttributegetAbstractAttribute () const
 Return the abstract descriptor for this attribute. More...
 

Static Public Member Functions

static FileLineColRangeAttrStorageconstruct (::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

- Protected Member Functions inherited from mlir::AttributeStorage
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...
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default
 

Detailed Description

Definition at line 35 of file Location.cpp.

Member Typedef Documentation

◆ KeyTy

using mlir::detail::FileLineColRangeAttrStorage::KeyTy = std::tuple<StringAttr, ::llvm::ArrayRef<unsigned> >

Definition at line 39 of file Location.cpp.

◆ PointerPair

using mlir::detail::FileLineColRangeAttrStorage::PointerPair = llvm::PointerIntPair<StringAttr, 2>

Definition at line 38 of file Location.cpp.

Constructor & Destructor Documentation

◆ FileLineColRangeAttrStorage()

mlir::detail::FileLineColRangeAttrStorage::FileLineColRangeAttrStorage ( StringAttr  filename,
int  numLocs 
)
inline

Definition at line 41 of file Location.cpp.

Referenced by construct().

Member Function Documentation

◆ construct()

static FileLineColRangeAttrStorage* mlir::detail::FileLineColRangeAttrStorage::construct ( ::mlir::AttributeStorageAllocator allocator,
KeyTy &&  tblgenKey 
)
inlinestatic

◆ getEndColumn()

unsigned mlir::detail::FileLineColRangeAttrStorage::getEndColumn ( ) const
inline

Definition at line 91 of file Location.cpp.

References getLineCols(), getStartColumn(), and size().

◆ getEndLine()

unsigned mlir::detail::FileLineColRangeAttrStorage::getEndLine ( ) const
inline

Definition at line 96 of file Location.cpp.

References getLineCols(), getStartLine(), and size().

◆ getLineCols()

unsigned mlir::detail::FileLineColRangeAttrStorage::getLineCols ( unsigned  index) const
inline

Definition at line 81 of file Location.cpp.

Referenced by getEndColumn(), getEndLine(), and getStartColumn().

◆ getStartColumn()

unsigned mlir::detail::FileLineColRangeAttrStorage::getStartColumn ( ) const
inline

Definition at line 86 of file Location.cpp.

References getLineCols(), and size().

Referenced by getEndColumn().

◆ getStartLine()

unsigned mlir::detail::FileLineColRangeAttrStorage::getStartLine ( ) const
inline

Definition at line 85 of file Location.cpp.

References startLine.

Referenced by getEndLine().

◆ hashKey()

::llvm::hash_code mlir::detail::FileLineColRangeAttrStorage::hashKey ( const KeyTy tblgenKey)
inlinestatic

Definition at line 102 of file Location.cpp.

◆ operator==()

bool mlir::detail::FileLineColRangeAttrStorage::operator== ( const KeyTy tblgenKey) const
inline

Definition at line 73 of file Location.cpp.

References filenameAndTrailing, size(), and startLine.

◆ size()

unsigned mlir::detail::FileLineColRangeAttrStorage::size ( ) const
inline

Definition at line 71 of file Location.cpp.

References filenameAndTrailing.

Referenced by construct(), getEndColumn(), getEndLine(), getStartColumn(), and operator==().

Member Data Documentation

◆ filenameAndTrailing

llvm::PointerIntPair<StringAttr, 2> mlir::detail::FileLineColRangeAttrStorage::filenameAndTrailing

Definition at line 111 of file Location.cpp.

Referenced by operator==(), and size().

◆ startLine

unsigned mlir::detail::FileLineColRangeAttrStorage::startLine = 0

Definition at line 112 of file Location.cpp.

Referenced by getStartLine(), and operator==().


The documentation for this struct was generated from the following file: