[Mlir-commits] [flang] [mlir] [MLIR][LLVMIR][DLTI] Add #llvm.target, #llvm.data_layout and TargetAttrInterface (PR #145899)
Rolf Morel
llvmlistbot at llvm.org
Fri Jul 25 11:25:50 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
----------------
rolfmorel wrote:
Having these files in LLVM dialect is actually independent of whether we have `#llvm.data_layout`. Either way the pass that converts a `#llvm.target` attr to a representation of MLIR's data layout spec will need this parser. As this pass cannot depend on code in `mlir/lib/Target`, the importer should be in the LLVM dialect.
https://github.com/llvm/llvm-project/pull/145899
More information about the Mlir-commits
mailing list