[Mlir-commits] [mlir] Reimplementing target description concept using DLTI attribute (PR #92138)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed May 29 09:06:56 PDT 2024


================
@@ -331,12 +418,15 @@ DataLayoutSpecAttr DataLayoutSpecAttr::parse(AsmParser &parser) {
                     parser.getContext(), entries);
 }
 
-void DataLayoutSpecAttr::print(AsmPrinter &os) const {
-  os << DataLayoutSpecAttr::kAttrKeyword << "<";
+void TargetSystemDescSpecAttr::print(AsmPrinter &os) const {
+  os << "<";
   llvm::interleaveComma(getEntries(), os);
   os << ">";
 }
 
+#define GET_ATTRDEF_CLASSES
+#include <mlir/Dialect/DLTI/DLTIAttrs.cpp.inc>
----------------
ftynse wrote:

```suggestion
#include "mlir/Dialect/DLTI/DLTIAttrs.cpp.inc"
```

https://github.com/llvm/llvm-project/pull/92138


More information about the Mlir-commits mailing list