My Project
Static Public Member Functions | List of all members
mlir::OpTrait::AttrSizedOperandSegments< ConcreteType > Class Template Reference

#include <OpDefinition.h>

Inheritance diagram for mlir::OpTrait::AttrSizedOperandSegments< ConcreteType >:
Inheritance graph
[legend]
Collaboration diagram for mlir::OpTrait::AttrSizedOperandSegments< ConcreteType >:
Collaboration graph
[legend]

Static Public Member Functions

static StringRef getOperandSegmentSizeAttr ()
 
static LogicalResult verifyTrait (Operation *op)
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, AttrSizedOperandSegments >
OperationgetOperation ()
 Return the ultimate Operation being worked on. More...
 
- Static Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, AttrSizedOperandSegments >
static LogicalResult verifyTrait (Operation *op)
 
static AbstractOperation::OperationProperties getTraitProperties ()
 

Detailed Description

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

A trait for operations that have an attribute specifying operand segments.

Certain operations can have multiple variadic operands and their size relationship is not always known statically. For such cases, we need a per-op-instance specification to divide the operands into logical groups or segments. This can be modeled by attributes. The attribute will be named as operand_segment_sizes.

This trait verifies the attribute for specifying operand segments has the correct type (1D vector) and values (non-negative), etc.

Member Function Documentation

◆ getOperandSegmentSizeAttr()

template<typename ConcreteType >
static StringRef mlir::OpTrait::AttrSizedOperandSegments< ConcreteType >::getOperandSegmentSizeAttr ( )
inlinestatic

◆ verifyTrait()

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

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