[clang] [CIR] [Upstream local initialization for ArrayType (PR #132974)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 17:59:12 PDT 2025


================
@@ -540,6 +542,68 @@ mlir::LogicalResult CIRToLLVMCastOpLowering::matchAndRewrite(
   return mlir::success();
 }
 
+mlir::LogicalResult CIRToLLVMPtrStrideOpLowering::matchAndRewrite(
+    cir::PtrStrideOp ptrStrideOp, OpAdaptor adaptor,
+    mlir::ConversionPatternRewriter &rewriter) const {
+
+  const mlir::DataLayout llvmLayout(
+      ptrStrideOp->getParentOfType<mlir::ModuleOp>());
----------------
andykaylor wrote:

Is this different from the dataLayout member in this class?

https://github.com/llvm/llvm-project/pull/132974


More information about the cfe-commits mailing list