diff options
author | Dmitry Sidorov <dmitry.sidorov@intel.com> | 2020-11-09 13:03:22 +0300 |
---|---|---|
committer | Dmitry Sidorov <dmitry.sidorov@intel.com> | 2021-01-20 13:14:31 +0300 |
commit | ea791133ee4a1a276cca408a52630fbca61a8be7 (patch) | |
tree | baa4faaf209f5d11545ea6811b5c3e2140027de0 /tools | |
parent | 24e9c63e6dd91a1d8dfbe8a8e6822ba3f978f44a (diff) |
Upstream SPV_INTEL_float_controls2 extension
Spec:
https://github.com/intel/llvm/blob/39fa9b0cbfbae88327118990a05c5b387b56d2ef/sycl/doc/extensions/SPIRV/SPV_INTEL_float_controls2.asciidoc
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildHeaders/jsonToSpirv.cpp | 10 | ||||
-rw-r--r-- | tools/buildHeaders/jsonToSpirv.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/buildHeaders/jsonToSpirv.cpp b/tools/buildHeaders/jsonToSpirv.cpp index 2118678..e5b1e3e 100644 --- a/tools/buildHeaders/jsonToSpirv.cpp +++ b/tools/buildHeaders/jsonToSpirv.cpp @@ -61,6 +61,8 @@ EnumValues ImageChannelDataTypeParams; EnumValues ImageOperandsParams; EnumValues FPFastMathParams; EnumValues FPRoundingModeParams; +EnumValues FPDenormModeParams; +EnumValues FPOperationModeParams; EnumValues LinkageTypeParams; EnumValues DecorationParams; EnumValues BuiltInParams; @@ -178,6 +180,10 @@ ClassOptionality ToOperandClassAndOptionality(const std::string& operandKind, co type = OperandImageChannelDataType; } else if (operandKind == "FPRoundingMode") { type = OperandFPRoundingMode; + } else if (operandKind == "FPDenormMode") { + type = OperandFPDenormMode; + } else if (operandKind == "FPOperationMode") { + type = OperandFPOperationMode; } else if (operandKind == "LinkageType") { type = OperandLinkageType; } else if (operandKind == "AccessQualifier") { @@ -452,6 +458,10 @@ void jsonToSpirv(const std::string& jsonPath, bool buildingHeaders) establishOperandClass(enumName, OperandFPFastMath, &FPFastMathParams, operandEnum, category); } else if (enumName == "FPRoundingMode") { establishOperandClass(enumName, OperandFPRoundingMode, &FPRoundingModeParams, operandEnum, category); + } else if (enumName == "FPDenormMode") { + establishOperandClass(enumName, OperandFPDenormMode, &FPDenormModeParams, operandEnum, category); + } else if (enumName == "FPOperationMode") { + establishOperandClass(enumName, OperandFPOperationMode, &FPOperationModeParams, operandEnum, category); } else if (enumName == "LinkageType") { establishOperandClass(enumName, OperandLinkageType, &LinkageTypeParams, operandEnum, category); } else if (enumName == "FunctionParameterAttribute") { diff --git a/tools/buildHeaders/jsonToSpirv.h b/tools/buildHeaders/jsonToSpirv.h index 72c7cde..572b872 100644 --- a/tools/buildHeaders/jsonToSpirv.h +++ b/tools/buildHeaders/jsonToSpirv.h @@ -69,6 +69,8 @@ enum OperandClass { OperandImageOperands, OperandFPFastMath, OperandFPRoundingMode, + OperandFPDenormMode, + OperandFPOperationMode, OperandLinkageType, OperandAccessQualifier, OperandFuncParamAttr, |