|
MLIR 22.0.0git
|
#include "mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"
Public Attributes | |
| unsigned | boolNumBits {8} |
| The number of bits to store a boolean value. | |
| bool | emulateUnsupportedFloatTypes {true} |
| Whether to emulate unsupported floats with integer types of same bit width. | |
| SPIRVSubByteTypeStorage | subByteTypeStorage {SPIRVSubByteTypeStorage::Packed} |
| How sub-byte values are storaged in memory. | |
| bool | emulateLT32BitScalarTypes {true} |
| Whether to emulate narrower scalar types with 32-bit scalar types if not supported by the target. | |
| bool | use64bitIndex {false} |
| Use 64-bit integers when converting index types. | |
Definition at line 38 of file SPIRVConversion.h.
| unsigned mlir::SPIRVConversionOptions::boolNumBits {8} |
The number of bits to store a boolean value.
Definition at line 40 of file SPIRVConversion.h.
Whether to emulate narrower scalar types with 32-bit scalar types if not supported by the target.
Non-32-bit scalar types require special hardware support that may not exist on all GPUs. This is reflected in SPIR-V as that non-32-bit scalar types require special capabilities or extensions. This option controls whether to use 32-bit types to emulate < 32-bits-wide scalars, if a scalar type of a certain bitwidth is not supported in the target environment. This requires the runtime to also feed in data with a matched bitwidth and layout for interface types. The runtime can do that by inspecting the SPIR-V module.
If the original scalar type has less than 32-bit, a multiple of its values will be packed into one 32-bit value to be memory efficient.
Definition at line 63 of file SPIRVConversion.h.
Whether to emulate unsupported floats with integer types of same bit width.
Definition at line 44 of file SPIRVConversion.h.
| SPIRVSubByteTypeStorage mlir::SPIRVConversionOptions::subByteTypeStorage {SPIRVSubByteTypeStorage::Packed} |
How sub-byte values are storaged in memory.
Definition at line 47 of file SPIRVConversion.h.
Use 64-bit integers when converting index types.
Definition at line 66 of file SPIRVConversion.h.