summaryrefslogtreecommitdiff
path: root/offload/liboffload/API/Common.td
diff options
context:
space:
mode:
authorRoss Brunton <ross@codeplay.com>2025-06-24 16:27:12 +0100
committerGitHub <noreply@github.com>2025-06-24 16:27:12 +0100
commit4359e55838cd29d4aa344f15543f725da25e940f (patch)
tree050011070426347d3c0b53f21e97fbff0a505b28 /offload/liboffload/API/Common.td
parentb0ef9125347cbaea031273feb72ac0d6bc74ddee (diff)
[Offload] Properly report errors when jit compiling (#145498)
Previously, if a binary failed to load due to failures when jit compiling, the function would return success with nullptr. Now it returns a new plugin error, `COMPILE_FAILURE`.
Diffstat (limited to 'offload/liboffload/API/Common.td')
-rw-r--r--offload/liboffload/API/Common.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/offload/liboffload/API/Common.td b/offload/liboffload/API/Common.td
index cd8c3c63fde8..79c3bd46f198 100644
--- a/offload/liboffload/API/Common.td
+++ b/offload/liboffload/API/Common.td
@@ -104,6 +104,7 @@ def ErrorCode : Enum {
Etor<"UNIMPLEMENTED", "generic error code for features currently unimplemented by the device/backend">,
Etor<"UNSUPPORTED", "generic error code for features unsupported by the device/backend">,
Etor<"ASSEMBLE_FAILURE", "assembler failure while processing binary image">,
+ Etor<"COMPILE_FAILURE", "jit compile failure while processing binary image">,
Etor<"LINK_FAILURE", "linker failure while processing binary image">,
Etor<"BACKEND_FAILURE", "the plugin backend is in an invalid or unsupported state">,
Etor<"UNINITIALIZED", "not initialized">,