LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
GenStringFromOpPieces Struct Referenceabstract

Helper struct to generate a string from operation operand, attribute, and result pieces. More...

#include <OpCAPIParamHelper.h>

Public Member Functions

virtual ~GenStringFromOpPieces ()=default
std::string gen (const mlir::tblgen::Operator &op)
 Generate string from the operation pieces.

Protected Member Functions

virtual void genHeader (llvm::raw_ostream &os)
 Generate header code to os. Default does nothing.
virtual void genResult (llvm::raw_ostream &os, const mlir::tblgen::NamedTypeConstraint &result, const std::string &resultName)=0
 Generate code for result to os.
virtual void genResultInferred (llvm::raw_ostream &os)
 Generate code to os when result type is inferred. Default does nothing.
virtual void genOperand (llvm::raw_ostream &os, const mlir::tblgen::NamedTypeConstraint &operand)=0
 Generate code for operand to os.
virtual void genAttributesPrefix (llvm::raw_ostream &os, const mlir::tblgen::Operator &op)
 Generate attribute section prefix code to os. Default does nothing.
virtual void genAttribute (llvm::raw_ostream &os, const mlir::tblgen::NamedAttribute &attr)=0
 Generate code for attr to os.
virtual void genAttributesSuffix (llvm::raw_ostream &os, const mlir::tblgen::Operator &op)
 Generate attribute section suffix code to os. Default does nothing.
virtual void genRegionsPrefix (llvm::raw_ostream &os, const mlir::tblgen::Operator &op)
 Generate region section prefix code to os. Default does nothing.
virtual void genRegion (llvm::raw_ostream &os, const mlir::tblgen::NamedRegion &region)=0
 Generate code for region to os.
virtual void genRegionsSuffix (llvm::raw_ostream &os, const mlir::tblgen::Operator &op)
 Generate region section suffix code to os. Default does nothing.

Detailed Description

Helper struct to generate a string from operation operand, attribute, and result pieces.

Definition at line 22 of file OpCAPIParamHelper.h.

Constructor & Destructor Documentation

◆ ~GenStringFromOpPieces()

virtual GenStringFromOpPieces::~GenStringFromOpPieces ( )
virtualdefault

Member Function Documentation

◆ gen()

std::string GenStringFromOpPieces::gen ( const mlir::tblgen::Operator & op)

Generate string from the operation pieces.

Definition at line 18 of file OpCAPIParamHelper.cpp.

◆ genAttribute()

virtual void GenStringFromOpPieces::genAttribute ( llvm::raw_ostream & os,
const mlir::tblgen::NamedAttribute & attr )
protectedpure virtual

Generate code for attr to os.

◆ genAttributesPrefix()

virtual void GenStringFromOpPieces::genAttributesPrefix ( llvm::raw_ostream & os,
const mlir::tblgen::Operator & op )
inlineprotectedvirtual

Generate attribute section prefix code to os. Default does nothing.

Definition at line 46 of file OpCAPIParamHelper.h.

◆ genAttributesSuffix()

virtual void GenStringFromOpPieces::genAttributesSuffix ( llvm::raw_ostream & os,
const mlir::tblgen::Operator & op )
inlineprotectedvirtual

Generate attribute section suffix code to os. Default does nothing.

Definition at line 52 of file OpCAPIParamHelper.h.

◆ genHeader()

virtual void GenStringFromOpPieces::genHeader ( llvm::raw_ostream & os)
inlineprotectedvirtual

Generate header code to os. Default does nothing.

Definition at line 30 of file OpCAPIParamHelper.h.

◆ genOperand()

virtual void GenStringFromOpPieces::genOperand ( llvm::raw_ostream & os,
const mlir::tblgen::NamedTypeConstraint & operand )
protectedpure virtual

Generate code for operand to os.

◆ genRegion()

virtual void GenStringFromOpPieces::genRegion ( llvm::raw_ostream & os,
const mlir::tblgen::NamedRegion & region )
protectedpure virtual

Generate code for region to os.

◆ genRegionsPrefix()

virtual void GenStringFromOpPieces::genRegionsPrefix ( llvm::raw_ostream & os,
const mlir::tblgen::Operator & op )
inlineprotectedvirtual

Generate region section prefix code to os. Default does nothing.

Definition at line 55 of file OpCAPIParamHelper.h.

◆ genRegionsSuffix()

virtual void GenStringFromOpPieces::genRegionsSuffix ( llvm::raw_ostream & os,
const mlir::tblgen::Operator & op )
inlineprotectedvirtual

Generate region section suffix code to os. Default does nothing.

Definition at line 61 of file OpCAPIParamHelper.h.

◆ genResult()

virtual void GenStringFromOpPieces::genResult ( llvm::raw_ostream & os,
const mlir::tblgen::NamedTypeConstraint & result,
const std::string & resultName )
protectedpure virtual

Generate code for result to os.

◆ genResultInferred()

virtual void GenStringFromOpPieces::genResultInferred ( llvm::raw_ostream & os)
inlineprotectedvirtual

Generate code to os when result type is inferred. Default does nothing.

Definition at line 39 of file OpCAPIParamHelper.h.


The documentation for this struct was generated from the following files: