[Mlir-commits] [mlir] [mlir][IR] Improve error message when parsing incorrect type (PR #134984)
Matthias Springer
llvmlistbot at llvm.org
Wed Apr 9 05:00:16 PDT 2025
================
@@ -21,6 +21,19 @@
#include "llvm/Support/SMLoc.h"
#include <optional>
+namespace {
+// reference https://stackoverflow.com/a/16000226
+template <typename T, typename = void>
+struct HasStaticName : std::false_type {};
+
+template <typename T>
+struct HasStaticName<T,
----------------
matthias-springer wrote:
As an alternative to this, can we enforce that each type has a `getTypeName` method? Similar to how each operation class must have a `getOperationName` method?
https://github.com/llvm/llvm-project/pull/134984
More information about the Mlir-commits
mailing list