MLIR  19.0.0git
Public Member Functions | Friends | List of all members
mlir::pdll::ods::Operation Class Reference

This class provides an ODS representation of a specific operation. More...

#include "mlir/Tools/PDLL/ODS/Operation.h"

Public Member Functions

SMRange getLoc () const
 Return the source location of this operation. More...
 
void appendAttribute (StringRef name, bool optional, const AttributeConstraint &constraint)
 Append an attribute to this operation. More...
 
void appendOperand (StringRef name, VariableLengthKind variableLengthKind, const TypeConstraint &constraint)
 Append an operand to this operation. More...
 
void appendResult (StringRef name, VariableLengthKind variableLengthKind, const TypeConstraint &constraint)
 Append a result to this operation. More...
 
StringRef getName () const
 Returns the name of the operation. More...
 
StringRef getSummary () const
 Returns the summary of the operation. More...
 
StringRef getDescription () const
 Returns the description of the operation. More...
 
StringRef getNativeClassName () const
 Returns the native class name of the operation. More...
 
ArrayRef< AttributegetAttributes () const
 Returns the attributes of this operation. More...
 
ArrayRef< OperandOrResultgetOperands () const
 Returns the operands of this operation. More...
 
ArrayRef< OperandOrResultgetResults () const
 Returns the results of this operation. More...
 
bool hasResultTypeInferrence () const
 Return if the operation is known to support result type inferrence. More...
 

Friends

class Dialect
 Allow access to the private constructor. More...
 

Detailed Description

This class provides an ODS representation of a specific operation.

This includes all of the information necessary for use by the PDL frontend for generating code for a pattern rewrite.

Definition at line 125 of file Operation.h.

Member Function Documentation

◆ appendAttribute()

void mlir::pdll::ods::Operation::appendAttribute ( StringRef  name,
bool  optional,
const AttributeConstraint constraint 
)
inline

Append an attribute to this operation.

Definition at line 131 of file Operation.h.

◆ appendOperand()

void mlir::pdll::ods::Operation::appendOperand ( StringRef  name,
VariableLengthKind  variableLengthKind,
const TypeConstraint constraint 
)
inline

Append an operand to this operation.

Definition at line 137 of file Operation.h.

◆ appendResult()

void mlir::pdll::ods::Operation::appendResult ( StringRef  name,
VariableLengthKind  variableLengthKind,
const TypeConstraint constraint 
)
inline

Append a result to this operation.

Definition at line 144 of file Operation.h.

◆ getAttributes()

ArrayRef<Attribute> mlir::pdll::ods::Operation::getAttributes ( ) const
inline

Returns the attributes of this operation.

Definition at line 162 of file Operation.h.

◆ getDescription()

StringRef mlir::pdll::ods::Operation::getDescription ( ) const
inline

Returns the description of the operation.

Definition at line 156 of file Operation.h.

◆ getLoc()

SMRange mlir::pdll::ods::Operation::getLoc ( ) const
inline

Return the source location of this operation.

Definition at line 128 of file Operation.h.

◆ getName()

StringRef mlir::pdll::ods::Operation::getName ( ) const
inline

Returns the name of the operation.

Definition at line 150 of file Operation.h.

◆ getNativeClassName()

StringRef mlir::pdll::ods::Operation::getNativeClassName ( ) const
inline

Returns the native class name of the operation.

Definition at line 159 of file Operation.h.

◆ getOperands()

ArrayRef<OperandOrResult> mlir::pdll::ods::Operation::getOperands ( ) const
inline

Returns the operands of this operation.

Definition at line 165 of file Operation.h.

◆ getResults()

ArrayRef<OperandOrResult> mlir::pdll::ods::Operation::getResults ( ) const
inline

Returns the results of this operation.

Definition at line 168 of file Operation.h.

◆ getSummary()

StringRef mlir::pdll::ods::Operation::getSummary ( ) const
inline

Returns the summary of the operation.

Definition at line 153 of file Operation.h.

◆ hasResultTypeInferrence()

bool mlir::pdll::ods::Operation::hasResultTypeInferrence ( ) const
inline

Return if the operation is known to support result type inferrence.

Definition at line 171 of file Operation.h.

Friends And Related Function Documentation

◆ Dialect

friend class Dialect
friend

Allow access to the private constructor.

Definition at line 203 of file Operation.h.


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