MLIR  19.0.0git
Static Public Member Functions | List of all members
llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::Location, std::remove_const_t< From > >||std::is_base_of_v< mlir::Location, From > > > Struct Template Reference

Add support for llvm style casts. More...

#include "mlir/IR/Location.h"

+ Inheritance diagram for llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::Location, std::remove_const_t< From > >||std::is_base_of_v< mlir::Location, From > > >:

Static Public Member Functions

static bool isPossible (mlir::Location location)
 
static To castFailed ()
 
static To doCast (mlir::Location location)
 

Detailed Description

template<typename To, typename From>
struct llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::Location, std::remove_const_t< From > >||std::is_base_of_v< mlir::Location, From > > >

Add support for llvm style casts.

We provide a cast between To and From if From is mlir::Location or derives from it.

Definition at line 242 of file Location.h.

Member Function Documentation

◆ castFailed()

template<typename To , typename From >
static To llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::Location, std::remove_const_t< From > >||std::is_base_of_v< mlir::Location, From > > >::castFailed ( )
inlinestatic

Definition at line 256 of file Location.h.

◆ doCast()

template<typename To , typename From >
static To llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::Location, std::remove_const_t< From > >||std::is_base_of_v< mlir::Location, From > > >::doCast ( mlir::Location  location)
inlinestatic

Definition at line 258 of file Location.h.

References mlir::Attribute::getImpl().

◆ isPossible()

template<typename To , typename From >
static bool llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::Location, std::remove_const_t< From > >||std::is_base_of_v< mlir::Location, From > > >::isPossible ( mlir::Location  location)
inlinestatic

Return a constant true instead of a dynamic true when casting to self or up the hierarchy. Additionally, all casting info is deferred to the wrapped mlir::LocationAttr instance stored in mlir::Location.

Definition at line 248 of file Location.h.


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