#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 { … }; // Information about validation events, indexed by `ValidationEvent` enum // value. static constexpr ValidationEventInfo ValidationEventInfos[] = …; static_assert …; } // namespace const char *getValidationEventName(ValidationEvent VE) { … } const char *getValidationEventDescription(ValidationEvent VE) { … } Expected<ValidationEvent> getValidationEventByName(StringRef Name) { … } } // namespace exegesis } // namespace llvm