MLIR  15.0.0git
Macros | Functions
PDLInterp.cpp File Reference
#include "mlir/Dialect/PDLInterp/IR/PDLInterp.h"
#include "mlir/Dialect/PDL/IR/PDLTypes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/FunctionImplementation.h"
#include "mlir/Dialect/PDLInterp/IR/PDLInterpOpsDialect.cpp.inc"
#include "mlir/Dialect/PDLInterp/IR/PDLInterpOps.cpp.inc"
+ Include dependency graph for PDLInterp.cpp:

Go to the source code of this file.

Macros

#define GET_OP_LIST
 
#define GET_OP_CLASSES
 

Functions

template<typename OpT >
static LogicalResult verifySwitchOp (OpT op)
 
static ParseResult parseCreateOperationOpAttributes (OpAsmParser &p, SmallVectorImpl< OpAsmParser::UnresolvedOperand > &attrOperands, ArrayAttr &attrNamesAttr)
 
static void printCreateOperationOpAttributes (OpAsmPrinter &p, CreateOperationOp op, OperandRange attrArgs, ArrayAttr attrNames)
 
static ParseResult parseCreateOperationOpResults (OpAsmParser &p, SmallVectorImpl< OpAsmParser::UnresolvedOperand > &resultOperands, SmallVectorImpl< Type > &resultTypes, UnitAttr &inferredResultTypes)
 
static void printCreateOperationOpResults (OpAsmPrinter &p, CreateOperationOp op, OperandRange resultOperands, TypeRange resultTypes, UnitAttr inferredResultTypes)
 
static Type getGetValueTypeOpValueType (Type type)
 Given the result type of a GetValueTypeOp, return the expected input type. More...
 

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 280 of file PDLInterp.cpp.

◆ GET_OP_LIST

#define GET_OP_LIST

Function Documentation

◆ getGetValueTypeOpValueType()

static Type getGetValueTypeOpValueType ( Type  type)
static

Given the result type of a GetValueTypeOp, return the expected input type.

Definition at line 235 of file PDLInterp.cpp.

References mlir::Type::getContext(), mlir::Type::isa(), mlir::verify(), and verifySwitchOp().

◆ parseCreateOperationOpAttributes()

static ParseResult parseCreateOperationOpAttributes ( OpAsmParser p,
SmallVectorImpl< OpAsmParser::UnresolvedOperand > &  attrOperands,
ArrayAttr &  attrNamesAttr 
)
static

◆ parseCreateOperationOpResults()

static ParseResult parseCreateOperationOpResults ( OpAsmParser p,
SmallVectorImpl< OpAsmParser::UnresolvedOperand > &  resultOperands,
SmallVectorImpl< Type > &  resultTypes,
UnitAttr &  inferredResultTypes 
)
static

◆ printCreateOperationOpAttributes()

static void printCreateOperationOpAttributes ( OpAsmPrinter p,
CreateOperationOp  op,
OperandRange  attrArgs,
ArrayAttr  attrNames 
)
static

Definition at line 91 of file PDLInterp.cpp.

◆ printCreateOperationOpResults()

static void printCreateOperationOpResults ( OpAsmPrinter p,
CreateOperationOp  op,
OperandRange  resultOperands,
TypeRange  resultTypes,
UnitAttr  inferredResultTypes 
)
static

◆ verifySwitchOp()

template<typename OpT >
static LogicalResult verifySwitchOp ( OpT  op)
static