Go to the source code of this file.
|
#define | INT_AND_FLOAT_CASE(kind, iop, fop) |
|
#define | INT_OR_FLOAT_CASE(kind, fop) |
|
#define | INT_OR_FLOAT_CASE(kind, fop) |
|
#define | CL_INT_MAX_MIN_OPS spirv::CLUMaxOp, spirv::CLUMinOp, spirv::CLSMaxOp, spirv::CLSMinOp |
|
#define | GL_INT_MAX_MIN_OPS spirv::GLUMaxOp, spirv::GLUMinOp, spirv::GLSMaxOp, spirv::GLSMinOp |
|
#define | CL_FLOAT_MAX_MIN_OPS spirv::CLFMaxOp, spirv::CLFMinOp |
|
#define | GL_FLOAT_MAX_MIN_OPS spirv::GLFMaxOp, spirv::GLFMinOp |
|
|
static uint64_t | getFirstIntValue (ArrayAttr attr) |
| Returns the integer value from the first valid input element, assuming Value inputs are defined by a constant index ops and Attribute inputs are integer attributes. More...
|
|
static int | getNumBits (Type type) |
| Returns the number of bits for the given scalar/vector type. More...
|
|
◆ CL_FLOAT_MAX_MIN_OPS
#define CL_FLOAT_MAX_MIN_OPS spirv::CLFMaxOp, spirv::CLFMinOp |
◆ CL_INT_MAX_MIN_OPS
#define CL_INT_MAX_MIN_OPS spirv::CLUMaxOp, spirv::CLUMinOp, spirv::CLSMaxOp, spirv::CLSMinOp |
◆ GL_FLOAT_MAX_MIN_OPS
#define GL_FLOAT_MAX_MIN_OPS spirv::GLFMaxOp, spirv::GLFMinOp |
◆ GL_INT_MAX_MIN_OPS
#define GL_INT_MAX_MIN_OPS spirv::GLUMaxOp, spirv::GLUMinOp, spirv::GLSMaxOp, spirv::GLSMinOp |
◆ INT_AND_FLOAT_CASE
#define INT_AND_FLOAT_CASE |
( |
|
kind, |
|
|
|
iop, |
|
|
|
fop |
|
) |
| |
Value: case vector::CombiningKind::kind: \
if (llvm::isa<IntegerType>(resultType)) { \
result = rewriter.create<spirv::iop>(loc, resultType, result, next); \
} else { \
assert(llvm::isa<FloatType>(resultType)); \
result = rewriter.create<spirv::fop>(loc, resultType, result, next); \
} \
break
◆ INT_OR_FLOAT_CASE [1/2]
#define INT_OR_FLOAT_CASE |
( |
|
kind, |
|
|
|
fop |
|
) |
| |
Value: case vector::CombiningKind::kind: \
result = rewriter.create<fop>(loc, resultType, result, next); \
break
◆ INT_OR_FLOAT_CASE [2/2]
#define INT_OR_FLOAT_CASE |
( |
|
kind, |
|
|
|
fop |
|
) |
| |
Value: case vector::CombiningKind::kind: \
result = rewriter.create<fop>(loc, resultType, result, next); \
break
◆ getFirstIntValue()
static uint64_t getFirstIntValue |
( |
ArrayAttr |
attr | ) |
|
|
static |
Returns the integer value from the first valid input element, assuming Value inputs are defined by a constant index ops and Attribute inputs are integer attributes.
Definition at line 44 of file VectorToSPIRV.cpp.
◆ getNumBits()
static int getNumBits |
( |
Type |
type | ) |
|
|
static |