[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 9 11:03:00 PDT 2025


================
@@ -1533,6 +1533,17 @@ LogicalResult cir::GetMemberOp::verify() {
 // VecCreateOp
 //===----------------------------------------------------------------------===//
 
+OpFoldResult cir::VecCreateOp::fold(FoldAdaptor adaptor) {
+  auto elements = getElements();
----------------
andykaylor wrote:

Don't use auto here.

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


More information about the cfe-commits mailing list