[Mlir-commits] [flang] [mlir] [MLIR][LLVMIR][DLTI] Add #llvm.target, #llvm.data_layout and TargetAttrInterface (PR #145899)
Fabian Mora
llvmlistbot at llvm.org
Fri Jul 25 13:46:52 PDT 2025
================
@@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef MLIR_LIB_TARGET_LLVMIR_DATALAYOUTIMPORTER_H_
-#define MLIR_LIB_TARGET_LLVMIR_DATALAYOUTIMPORTER_H_
+#ifndef MLIR_DIALECT_LLVMIR_DATALAYOUTIMPORTER_H
----------------
fabianmcg wrote:
In general it doesn't matter if the textual version of the IR looks ugly, it's IR. It's preferable to have only one way to specify things, and in this case I'd argue that the verbose approach is better.
Re the second comment. You can make the Attr interface return the DL attribute, that way the interface impl and the importer still live in target.
https://github.com/llvm/llvm-project/pull/145899
More information about the Mlir-commits
mailing list