My Project
Protected Member Functions | Static Protected Member Functions | List of all members
mlir::OpTrait::TraitBase< ConcreteType, TraitType > Class Template Reference

#include <OpDefinition.h>

Inheritance diagram for mlir::OpTrait::TraitBase< ConcreteType, TraitType >:
Inheritance graph
[legend]

Protected Member Functions

Operation * getOperation ()
 Return the ultimate Operation being worked on. More...
 

Static Protected Member Functions

static LogicalResult verifyTrait (Operation *op)
 
static AbstractOperation::OperationProperties getTraitProperties ()
 

Detailed Description

template<typename ConcreteType, template< typename > class TraitType>
class mlir::OpTrait::TraitBase< ConcreteType, TraitType >

Helper class for implementing traits. Clients are not expected to interact with this directly, so its members are all protected.

Member Function Documentation

◆ getOperation()

template<typename ConcreteType, template< typename > class TraitType>
Operation* mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getOperation ( )
inlineprotected

Return the ultimate Operation being worked on.

◆ getTraitProperties()

template<typename ConcreteType, template< typename > class TraitType>
static AbstractOperation::OperationProperties mlir::OpTrait::TraitBase< ConcreteType, TraitType >::getTraitProperties ( )
inlinestaticprotected

◆ verifyTrait()

template<typename ConcreteType, template< typename > class TraitType>
static LogicalResult mlir::OpTrait::TraitBase< ConcreteType, TraitType >::verifyTrait ( Operation *  op)
inlinestaticprotected

Provide default implementations of trait hooks. This allows traits to provide exactly the overrides they care about.


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