MLIR 22.0.0git
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.

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 1242 of file OpDefinition.h.

Member Function Documentation

◆ verifyTrait()

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

Definition at line 1244 of file OpDefinition.h.

References success().


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