[Mlir-commits] [mlir] [MLIR][DLTI] Fix type converter-to-llvm access to Data Layout info (PR #127239)
Rolf Morel
llvmlistbot at llvm.org
Fri Feb 14 10:37:27 PST 2025
https://github.com/rolfmorel created https://github.com/llvm/llvm-project/pull/127239
None
>From 2791e8e07da15290072f5191429aeec0fb538633 Mon Sep 17 00:00:00 2001
From: Rolf Morel <rolf.morel at intel.com>
Date: Fri, 14 Feb 2025 10:35:14 -0800
Subject: [PATCH] [MLIR][DLTI] Fix type converter-to-llvm access to Data Layout
info
---
mlir/lib/Conversion/ConvertToLLVM/ConvertToLLVMPass.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
More information about the Mlir-commits
mailing list