My Project
|
#include <Location.h>
Public Member Functions | |
uintptr_t | getUnderlyingLocation () const |
Returns a pointer to the corresponding object. More... | |
ClassID * | getClassId () const |
Returns a ClassID* that represents the underlying objects c++ type. More... | |
Location | getFallbackLocation () const |
Returns a fallback location. More... | |
Static Public Member Functions | |
template<typename T > | |
static Location | get (T underlyingLocation, MLIRContext *context) |
template<typename T > | |
static Location | get (T underlyingLocation, Location fallbackLocation) |
template<typename T > | |
static T | getUnderlyingLocation (Location location) |
Returns a pointer to some data structure that opaque location stores. More... | |
template<typename T > | |
static T | getUnderlyingLocationOrNull (Location location) |
template<typename T > | |
static bool | isa (Location location) |
static bool | kindof (unsigned kind) |
Methods for support type inquiry through isa, cast, and dyn_cast. More... | |
![]() | |
static ClassID * | getClassID () |
Return a unique identifier for the concrete type. More... | |
template<typename T > | |
static bool | classof (T val) |
Additional Inherited Members | |
![]() | |
using | Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > |
Utility declarations for the concrete attribute class. More... | |
using | ImplType = StorageT |
![]() | |
ImplType * | getImpl () const |
Utility for easy access to the storage instance. More... | |
![]() | |
template<typename... Args> | |
static ConcreteT | get (MLIRContext *ctx, unsigned kind, Args... args) |
template<typename... Args> | |
static ConcreteT | getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args) |
template<typename... Args> | |
static LogicalResult | verifyConstructionInvariants (Args... args) |
Default implementation that just returns success. More... | |
Represents a location that is external to MLIR. Contains a pointer to some data structure and an optional location that can be used if the first one is not suitable. Since it contains an external structure, only optional location is used during serialization. The class also provides a number of methods for making type-safe casts between a pointer to an object and opaque location.
|
inlinestatic |
Returns an instance of opaque location which contains a given pointer to an object. The corresponding MLIR location is set to UnknownLoc.
|
inlinestatic |
Returns an instance of opaque location which contains a given pointer to an object and an additional MLIR location.
ClassID * OpaqueLoc::getClassId | ( | ) | const |
Returns a ClassID* that represents the underlying objects c++ type.
Location OpaqueLoc::getFallbackLocation | ( | ) | const |
Returns a fallback location.
|
inlinestatic |
Returns a pointer to some data structure that opaque location stores.
uintptr_t OpaqueLoc::getUnderlyingLocation | ( | ) | const |
Returns a pointer to the corresponding object.
|
inlinestatic |
Returns a pointer to some data structure that opaque location stores. Returns nullptr if provided location is not opaque location or if it contains a pointer of different type.
|
inlinestatic |
Checks whether provided location is opaque location and contains a pointer to an object of particular type.
|
inlinestatic |
Methods for support type inquiry through isa, cast, and dyn_cast.