[llvm] [Offload] Use new error code handling mechanism (PR #139275)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 07:31:40 PDT 2025


================
@@ -0,0 +1,51 @@
+//===- Auto-generated file, part of the LLVM/Offload project --------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef OFFLOAD_ERRC
+#error Please define the macro OFFLOAD_ERRCODE(Name, Desc, Value)
+#endif
+
+// Error codes are shared between PluginInterface and liboffload.
+// To add new error codes, add them to offload/liboffload/API/Common.td and run
+// the GenerateOffload target.
+
+OFFLOAD_ERRC(SUCCESS, "Success", 0)
----------------
arsenm wrote:

Error messages are supposed to start with a lowercase letter 

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


More information about the llvm-commits mailing list