[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:17 PDT 2025
================
@@ -196,6 +196,21 @@ class CIRToLLVMTrapOpLowering : public mlir::OpConversionPattern<cir::TrapOp> {
mlir::ConversionPatternRewriter &) const override;
};
+class CIRToLLVMPtrStrideOpLowering
+ : public mlir::OpConversionPattern<cir::PtrStrideOp> {
+ mlir::DataLayout const &dataLayout;
----------------
andykaylor wrote:
It's not clear to me why some of these classes store dataLayout and some don't. @bcardosolopes is this an artifact of how the implementation philosophy evolved over time, or is the difference necessary?
https://github.com/llvm/llvm-project/pull/132974
More information about the cfe-commits
mailing list