[llvm] [llvm-exegesis][NFC] Refactor all `ValidationEvent` info in a single … (PR #82256)
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 00:49:27 PST 2024
================
@@ -0,0 +1,53 @@
+
+#include "ValidationEvent.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Errc.h"
+#include "llvm/Support/Error.h"
+
+namespace llvm {
+namespace exegesis {
+
+namespace {
+
+struct ValidationEventInfo {
+ const char *const Name;
+ const char *const Description;
+};
+
+// Information about validation events, indexed by `ValidationEvent` enum
+// value.
+static constexpr ValidationEventInfo ValidationEventInfos[NumValidationEvents] =
----------------
legrosbuffle wrote:
That was my intent by specifying the array bound. I had forgotten that `int arr[3] = {1,2};` compiled perfectly fine in c++ :( Done, thanks.
https://github.com/llvm/llvm-project/pull/82256
More information about the llvm-commits
mailing list