[Mlir-commits] [mlir] [mlir] Expose type and attribute names in the MLIRContext and abstract type/attr classes (PR #72189)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 13 20:07:44 PST 2023
================
@@ -131,6 +138,8 @@ struct TypeNoLayout : public Type::TypeBase<TypeNoLayout, Type, TypeStorage> {
using Base::Base;
+ static constexpr StringRef getTypeName() { return "test.no_layout"; }
+
----------------
joker-eph wrote:
One thing with these accessors is that they will interfere with the auto-generated accessors for the parameters, what happens in this case?
Should ODS forbid a parameter named `name`?
https://github.com/llvm/llvm-project/pull/72189
More information about the Mlir-commits
mailing list