My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::OpaqueLoc Class Reference

#include <Location.h>

Inheritance diagram for mlir::OpaqueLoc:
Inheritance graph
[legend]
Collaboration diagram for mlir::OpaqueLoc:
Collaboration graph
[legend]

Public Member Functions

uintptr_t getUnderlyingLocation () const
 Returns a pointer to the corresponding object. More...
 
ClassIDgetClassId () 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 Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 
- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
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...
 

Detailed Description

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.

Member Function Documentation

◆ get() [1/2]

template<typename T >
static Location mlir::OpaqueLoc::get ( underlyingLocation,
MLIRContext context 
)
inlinestatic

Returns an instance of opaque location which contains a given pointer to an object. The corresponding MLIR location is set to UnknownLoc.

◆ get() [2/2]

template<typename T >
static Location mlir::OpaqueLoc::get ( underlyingLocation,
Location  fallbackLocation 
)
inlinestatic

Returns an instance of opaque location which contains a given pointer to an object and an additional MLIR location.

◆ getClassId()

ClassID * OpaqueLoc::getClassId ( ) const

Returns a ClassID* that represents the underlying objects c++ type.

◆ getFallbackLocation()

Location OpaqueLoc::getFallbackLocation ( ) const

Returns a fallback location.

◆ getUnderlyingLocation() [1/2]

template<typename T >
static T mlir::OpaqueLoc::getUnderlyingLocation ( Location  location)
inlinestatic

Returns a pointer to some data structure that opaque location stores.

◆ getUnderlyingLocation() [2/2]

uintptr_t OpaqueLoc::getUnderlyingLocation ( ) const

Returns a pointer to the corresponding object.

◆ getUnderlyingLocationOrNull()

template<typename T >
static T mlir::OpaqueLoc::getUnderlyingLocationOrNull ( Location  location)
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.

◆ isa()

template<typename T >
static bool mlir::OpaqueLoc::isa ( Location  location)
inlinestatic

Checks whether provided location is opaque location and contains a pointer to an object of particular type.

◆ kindof()

static bool mlir::OpaqueLoc::kindof ( unsigned  kind)
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast.


The documentation for this class was generated from the following files: