| 1 |
/* The error code name should be meaningful since it is part of error message */ |
| 2 |
_SPIRV_OP(Success, "") |
| 3 |
_SPIRV_OP(InvalidTargetTriple, |
| 4 |
"Expects spir-unknown-unknown or spir64-unknown-unknown.") |
| 5 |
_SPIRV_OP(InvalidSubArch, "Expecting v1.0-v1.6.") |
| 6 |
_SPIRV_OP(TripleMaxVersionIncompatible, |
| 7 |
"Triple version and maximum version are incompatible.") |
| 8 |
_SPIRV_OP(InvalidAddressingModel, "Expects 0-2.") |
| 9 |
_SPIRV_OP(InvalidMemoryModel, "Expects 0-3.") |
| 10 |
_SPIRV_OP(InvalidFunctionControlMask, "") |
| 11 |
_SPIRV_OP(InvalidBuiltinSetName, "Expects OpenCL.std.") |
| 12 |
_SPIRV_OP(InvalidFunctionCall, "Unexpected llvm intrinsic:\n") |
| 13 |
_SPIRV_OP(InvalidBitWidth, "Invalid bit width in input:") |
| 14 |
_SPIRV_OP(InvalidModule, "Invalid SPIR-V module:") |
| 15 |
_SPIRV_OP(InvalidLlvmModule, "Invalid LLVM module:") |
| 16 |
_SPIRV_OP(UnimplementedOpCode, "Unimplemented opcode") |
| 17 |
_SPIRV_OP(FunctionPointers, "Can't translate function pointer:\n") |
| 18 |
_SPIRV_OP(InvalidInstruction, "Can't translate llvm instruction:\n") |
| 19 |
_SPIRV_OP(InvalidWordCount, |
| 20 |
"Can't encode instruction with word count greater than 65535:\n") |
| 21 |
_SPIRV_OP(Requires1_1, "Feature requires SPIR-V 1.1 or greater:") |
| 22 |
_SPIRV_OP(RequiresVersion, "Cannot fulfill SPIR-V version restriction:\n") |
| 23 |
_SPIRV_OP(RequiresExtension, |
| 24 |
"Feature requires the following SPIR-V extension:\n") |
| 25 |
_SPIRV_OP(InvalidMagicNumber, |
| 26 |
"Invalid Magic Number.") |
| 27 |
_SPIRV_OP(InvalidVersionNumber, |
| 28 |
"Invalid Version Number.") |
| 29 |
_SPIRV_OP(UnspecifiedMemoryModel, "Unspecified Memory Model.") |
| 30 |
_SPIRV_OP(RepeatedMemoryModel, "Expects a single OpMemoryModel instruction.") |
| 31 |
_SPIRV_OP(DeprecatedExtension, |
| 32 |
"Feature requires the following deprecated SPIR-V extension:\n") |
| 33 |
_SPIRV_OP(InvalidNumberOfOperands, |
| 34 |
"Number of operands does not match the expected count.") |
| 35 |
|
| 36 |
/* This is the last error code to have a maximum valid value to compare to */ |
| 37 |
_SPIRV_OP(InternalMaxErrorCode, "Unknown error code") |