MLIR 23.0.0git
llvm::CastInfo< To, From, std::enable_if_t< std::is_same_v< mlir::AffineExpr, std::remove_const_t< From > >||std::is_base_of_v< mlir::AffineExpr, From > > > Struct Template Reference

Add support for llvm style casts. More...

#include "mlir/IR/AffineExpr.h"

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

Static Public Member Functions

static bool isPossible (mlir::AffineExpr expr)
static To doCast (mlir::AffineExpr expr)

Detailed Description

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

Add support for llvm style casts.

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

Definition at line 376 of file AffineExpr.h.

Member Function Documentation

◆ doCast()

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

Definition at line 399 of file AffineExpr.h.

References mlir::AffineExpr::getImpl().

◆ isPossible()

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

Return a constant true instead of a dynamic true when casting to self or up the hierarchy.

Definition at line 383 of file AffineExpr.h.

References mlir::Constant, mlir::DimId, mlir::AffineExpr::getKind(), mlir::LAST_AFFINE_BINARY_OP, and mlir::SymbolId.


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