[Mlir-commits] [mlir] [MLIR][DLTI] Fix type converter-to-llvm access to Data Layout info (PR #127239)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 14 10:38:03 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Rolf Morel (rolfmorel)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/127239.diff
1 Files Affected:
- (modified) mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp (+3-1)
``````````diff
diff --git a/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp b/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
index 673ba814d338f..093ac02bb004d 100644
--- a/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
+++ b/mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp
@@ -169,7 +169,9 @@ struct DynamicConvertToLLVM : public ConvertToLLVMPassInterface {
target.addLegalDialect<LLVM::LLVMDialect>();
// Get the data layout analysis.
const auto &dlAnalysis = manager.getAnalysis<DataLayoutAnalysis>();
- LLVMTypeConverter typeConverter(context, &dlAnalysis);
+ LowerToLLVMOptions options(op->getContext(),
+ dlAnalysis.getAtOrAbove(op));
+ LLVMTypeConverter typeConverter(context, options, &dlAnalysis);
// Configure the conversion with dialect level interfaces.
for (ConvertToLLVMPatternInterface *iface : *interfaces)
``````````
</details>
https://github.com/llvm/llvm-project/pull/127239
More information about the Mlir-commits
mailing list