MLIR 22.0.0git
SPIRVOpDefinition.cpp File Reference
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "SPIRVParsingUtils.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.cpp.inc"

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::spirv

Macros

#define GET_OP_CLASSES

Functions

static bool mlir::spirv::isNestedInFunctionOpInterface (Operation *op)
 Returns true if the given op is a function-like op or nested in a function-like op without a module-like op in the middle.
static bool mlir::spirv::isNestedInGraphARMOpInterface (Operation *op)
 Returns true if the given op is a GraphARM op or nested in a GraphARM op without a module-like op in the middle.
static bool mlir::spirv::isDirectInModuleLikeOp (Operation *op)
 Returns true if the given op is an module-like op that maintains a symbol table.
static Type mlir::spirv::getUnaryOpResultType (Type operandType)
 Result of a logical op must be a scalar or vector of boolean type.
static ParseResult mlir::spirv::parseImageOperands (OpAsmParser &parser, spirv::ImageOperandsAttr &attr)
static void mlir::spirv::printImageOperands (OpAsmPrinter &printer, Operation *imageOp, spirv::ImageOperandsAttr attr)
static ParseResult mlir::spirv::parseSwitchOpCases (OpAsmParser &parser, Type &selectorType, Block *&defaultTarget, SmallVectorImpl< OpAsmParser::UnresolvedOperand > &defaultOperands, SmallVectorImpl< Type > &defaultOperandTypes, DenseIntElementsAttr &literals, SmallVectorImpl< Block * > &targets, SmallVectorImpl< SmallVector< OpAsmParser::UnresolvedOperand > > &targetOperands, SmallVectorImpl< SmallVector< Type > > &targetOperandTypes)
 Adapted from the cf.switch implementation.
static void mlir::spirv::printSwitchOpCases (OpAsmPrinter &p, SwitchOp op, Type selectorType, Block *defaultTarget, OperandRange defaultOperands, TypeRange defaultOperandTypes, DenseIntElementsAttr literals, SuccessorRange targets, OperandRangeRange targetOperands, const TypeRangeRange &targetOperandTypes)

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 164 of file SPIRVOpDefinition.cpp.