MLIR  16.0.0git
Static Public Member Functions | List of all members
llvm::CastInfo<::mlir::Operation *, ::mlir::Operation *> Struct Template Reference

Cast (const) Operation * to itself. More...

#include "mlir/IR/Operation.h"

+ Inheritance diagram for llvm::CastInfo<::mlir::Operation *, ::mlir::Operation *>:
+ Collaboration diagram for llvm::CastInfo<::mlir::Operation *, ::mlir::Operation *>:

Static Public Member Functions

static bool isPossible (::mlir::Operation *op)
 
::mlir::OperationdoCast (::mlir::Operation *op)
 

Detailed Description

template<>
struct llvm::CastInfo<::mlir::Operation *, ::mlir::Operation *>

Cast (const) Operation * to itself.

This is helpful to avoid SFINAE in templated implementations that should work on both base and derived operation types.

Definition at line 844 of file Operation.h.

Member Function Documentation

◆ doCast()

::mlir::Operation* llvm::CastInfo<::mlir::Operation *, ::mlir::Operation *>::doCast ( ::mlir::Operation op)
inlinestatic

Definition at line 850 of file Operation.h.

◆ isPossible()

static bool llvm::CastInfo<::mlir::Operation *, ::mlir::Operation *>::isPossible ( ::mlir::Operation op)
inlinestatic

Definition at line 849 of file Operation.h.


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