MLIR
20.0.0git
|
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around a LocationAttr. More...
#include "mlir/IR/Location.h"
Public Member Functions | |
Location (LocationAttr loc) | |
Location (const LocationAttr::ImplType *impl) | |
MLIRContext * | getContext () const |
Return the context this location is uniqued in. More... | |
operator LocationAttr () const | |
Access the impl location attribute. More... | |
LocationAttr * | operator-> () const |
template<typename U > | |
bool | isa () const |
Type casting utilities on the underlying location. More... | |
template<typename U > | |
U | dyn_cast () const |
template<typename U > | |
U | cast () const |
bool | operator== (Location rhs) const |
Comparison operators. More... | |
bool | operator!= (Location rhs) const |
void | print (raw_ostream &os) const |
Print the location. More... | |
void | dump () const |
const void * | getAsOpaquePointer () const |
Methods for supporting PointerLikeTypeTraits. More... | |
Static Public Member Functions | |
static Location | getFromOpaquePointer (const void *pointer) |
static bool | classof (Attribute attr) |
Support llvm style casting. More... | |
Protected Attributes | |
LocationAttr | impl |
The internal backing location attribute. More... | |
Friends | |
::llvm::hash_code | hash_value (Location arg) |
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around a LocationAttr.
Definition at line 63 of file Location.h.
|
inline |
Definition at line 65 of file Location.h.
|
inline |
Definition at line 68 of file Location.h.
|
inline |
Definition at line 92 of file Location.h.
|
inlinestatic |
Support llvm style casting.
Definition at line 113 of file Location.h.
|
inline |
Definition at line 102 of file Location.h.
|
inline |
Definition at line 87 of file Location.h.
|
inline |
Methods for supporting PointerLikeTypeTraits.
Definition at line 107 of file Location.h.
Referenced by llvm::PointerLikeTypeTraits< mlir::Location >::getAsVoidPointer().
|
inline |
Return the context this location is uniqued in.
Definition at line 73 of file Location.h.
Referenced by buildMax(), buildMin(), and mlir::Operation::create().
|
inlinestatic |
Definition at line 108 of file Location.h.
Referenced by llvm::DenseMapInfo< mlir::Location >::getEmptyKey(), llvm::PointerLikeTypeTraits< mlir::Location >::getFromVoidPointer(), and llvm::DenseMapInfo< mlir::Location >::getTombstoneKey().
|
inline |
Type casting utilities on the underlying location.
Definition at line 82 of file Location.h.
|
inline |
|
inline |
Definition at line 98 of file Location.h.
|
inline |
Definition at line 77 of file Location.h.
References impl.
|
inline |
|
inline |
|
friend |
Definition at line 126 of file Location.h.
|
protected |
The internal backing location attribute.
Definition at line 117 of file Location.h.
Referenced by operator LocationAttr(), operator->(), and operator==().