================ @@ -1533,6 +1533,17 @@ LogicalResult cir::GetMemberOp::verify() { // VecCreateOp //===----------------------------------------------------------------------===// +OpFoldResult cir::VecCreateOp::fold(FoldAdaptor adaptor) { + auto elements = getElements(); + if (std::any_of(elements.begin(), elements.end(), [](mlir::Value attr) { ---------------- bcardosolopes wrote:
`llvm::any_of` will give you a shorter version https://github.com/llvm/llvm-project/pull/143355 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits