[clang] [llvm] [Offload] Add GetErrorName and GetErrorString to LLVMOffloadKernel (PR #212887)

Kevin Sala Penades via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 21:30:28 PDT 2026


================
@@ -31,16 +29,8 @@
 
 namespace language_runtime = llvm::offload::kernel;
 
-static Error_t convertResult(ol_result_t Result) {
-  if (Result == OL_SUCCESS)
-    return Success;
-  switch (Result->Code) {
-  case OL_ERRC_INVALID_VALUE:
-    return ErrorInvalidValue;
-  default:
-    return ErrorInvalidValue;
-  }
-}
+#include "DefineLanguageNames.inc"
+#include "LanguageUtils.cpp"
----------------
kevinsala wrote:

Why is this needed?

https://github.com/llvm/llvm-project/pull/212887


More information about the cfe-commits mailing list