[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:05:18 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:
So we can have a `#llvm.data_layout<DATA_LAYOUT_STR>` attribute. The DATA_LAYOUT_STR is parsed by this importer and yields an unwieldly `#dlti.dl_spec<...........................................................................................................................................................................................................................................................................................................................>`. What the attribute does is to just show the compact encoding, i.e. the string.
https://github.com/llvm/llvm-project/pull/145899
More information about the Mlir-commits
mailing list