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 |
|
◆ 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() [1/4]
static uint64_t getFirstIntValue |
( |
ArrayAttr |
attr | ) |
|
|
static |
◆ getFirstIntValue() [2/4]
◆ getFirstIntValue() [3/4]
◆ getFirstIntValue() [4/4]
static uint64_t getFirstIntValue |
( |
ValueRange |
values | ) |
|
|
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 43 of file VectorToSPIRV.cpp.
Referenced by getFirstIntValue().
◆ getNumBits()
static int getNumBits |
( |
Type |
type | ) |
|
|
static |