[Mlir-commits] [mlir] [MLIR][LLVM] Import LLVM target triple into MLIR LLVM Dialect (PR #125084)
Tobias Gysi
llvmlistbot at llvm.org
Thu Jan 30 11:14:36 PST 2025
gysit wrote:
> If I had a vote, there should be a lossless [some sort of attribute] toMLIRDataLayout(const llvm::DataLayout& DL) - or perhaps [some sort of attribute] toMLIRDataLayout(StringRef llvmDataLayoutSpec) and its inverse.
There are such functions +- in the ModuleImport / ModuleTranslation. In particular, the import from LLVM IR uses the `DataLayoutImporter` class. The process is not completely lossless though since we do not model all fields in MLIR.
https://github.com/llvm/llvm-project/pull/125084
More information about the Mlir-commits
mailing list