[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:43 PST 2023
================
@@ -55,6 +55,10 @@ class DataLayoutEntryAttr
/// Prints this attribute.
void print(AsmPrinter &os) const;
+
+ static constexpr StringRef getAttrName() {
----------------
joker-eph wrote:
Why not just `getName()` so this is the same API on Types and Attribute (which is always more friendly to generic code).
https://github.com/llvm/llvm-project/pull/72189
More information about the Mlir-commits
mailing list