[clang] [CIR] Upstream ArraySubscriptExpr for fixed size array (PR #134536)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 14:08:52 PDT 2025


================
@@ -198,6 +198,19 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
 
     return create<cir::BinOp>(loc, cir::BinOpKind::Div, lhs, rhs);
   }
+
+  /// Create a cir.ptr_stride operation to get access to an array element.
+  /// idx is the index of the element to access, shouldDecay is true if the
----------------
andykaylor wrote:

```suggestion
  /// \p idx is the index of the element to access, \p shouldDecay is true if the
```

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


More information about the cfe-commits mailing list