MLIR  20.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/Interfaces/FunctionImplementation.h"
#include "mlir/Dialect/PDLInterp/IR/PDLInterpOpsDialect.cpp.inc"
#include "mlir/Dialect/PDLInterp/IR/PDLInterpOps.cpp.inc"

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...
 
static ParseResult parseRangeType (OpAsmParser &p, TypeRange argumentTypes, Type &resultType)
 
static void printRangeType (OpAsmPrinter &p, CreateRangeOp op, TypeRange argumentTypes, Type resultType)
 

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 319 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 239 of file PDLInterp.cpp.

References mlir::get(), and mlir::Type::getContext().

◆ 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

◆ parseRangeType()

static ParseResult parseRangeType ( OpAsmParser p,
TypeRange  argumentTypes,
Type resultType 
)
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

Definition at line 123 of file PDLInterp.cpp.

◆ printRangeType()

static void printRangeType ( OpAsmPrinter p,
CreateRangeOp  op,
TypeRange  argumentTypes,
Type  resultType 
)
static

Definition at line 261 of file PDLInterp.cpp.

◆ verifySwitchOp()

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

Definition at line 32 of file PDLInterp.cpp.