|
MLIR 22.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. | |
| operator LocationAttr () const | |
| Access the impl location attribute. | |
| LocationAttr * | operator-> () const |
| bool | operator== (Location rhs) const |
| Comparison operators. | |
| bool | operator!= (Location rhs) const |
| void | print (raw_ostream &os) const |
| Print the location. | |
| void | dump () const |
| friend::llvm::hash_code | hash_value (Location arg) |
| const void * | getAsOpaquePointer () const |
| Methods for supporting PointerLikeTypeTraits. | |
Static Public Member Functions | |
| static Location | getFromOpaquePointer (const void *pointer) |
| static bool | classof (Attribute attr) |
| Support llvm style casting. | |
Protected Attributes | |
| LocationAttr | impl |
| The internal backing location attribute. | |
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around a LocationAttr.
Definition at line 76 of file Location.h.
|
inline |
Definition at line 78 of file Location.h.
Referenced by getFromOpaquePointer(), hash_value(), operator!=(), and operator==().
|
inline |
Definition at line 81 of file Location.h.
Support llvm style casting.
Definition at line 109 of file Location.h.
|
inline |
Definition at line 98 of file Location.h.
|
inline |
Methods for supporting PointerLikeTypeTraits.
Definition at line 103 of file Location.h.
Referenced by llvm::PointerLikeTypeTraits< mlir::Location >::getAsVoidPointer(), llvm::DenseMapInfo< mlir::remark::detail::Remark >::getHashValue(), and mlir::OperationFingerPrint::OperationFingerPrint().
|
inline |
Return the context this location is uniqued in.
Definition at line 86 of file Location.h.
Referenced by buildMax(), buildMin(), mlir::OpBuilder::create(), mlir::OpBuilder::createOrFold(), WhileLowering::matchAndRewrite(), and mlir::detail::reportFatalInferReturnTypesError().
Definition at line 104 of file Location.h.
References Location().
Referenced by llvm::DenseMapInfo< mlir::Location >::getEmptyKey(), llvm::PointerLikeTypeTraits< mlir::Location >::getFromVoidPointer(), and llvm::DenseMapInfo< mlir::Location >::getTombstoneKey().
| friend::llvm::hash_code mlir::Location::hash_value | ( | Location | arg | ) |
References Location().
|
inline |
Access the impl location attribute.
Definition at line 89 of file Location.h.
Definition at line 94 of file Location.h.
References Location(), and rhs.
|
inline |
Definition at line 90 of file Location.h.
|
inline |
|
protected |
The internal backing location attribute.
Definition at line 113 of file Location.h.
Referenced by mlir::hash_value().