MLIR  20.0.0git
Static Public Member Functions | List of all members
mlir::OpTrait::ConstantLike< ConcreteType > Class Template Reference

This class provides the API for a sub-set of ops that are known to be constant-like. More...

#include "mlir/IR/OpDefinition.h"

+ Inheritance diagram for mlir::OpTrait::ConstantLike< ConcreteType >:

Static Public Member Functions

static LogicalResult verifyTrait (Operation *op)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, ConstantLike >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 

Detailed Description

template<typename ConcreteType>
class mlir::OpTrait::ConstantLike< ConcreteType >

This class provides the API for a sub-set of ops that are known to be constant-like.

These are non-side effecting operations with one result and zero operands that can always be folded to a specific attribute value.

Definition at line 1230 of file OpDefinition.h.

Member Function Documentation

◆ verifyTrait()

template<typename ConcreteType >
static LogicalResult mlir::OpTrait::ConstantLike< ConcreteType >::verifyTrait ( Operation op)
inlinestatic

Definition at line 1232 of file OpDefinition.h.


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