[clang] [CIR] Upstream initial for-loop support (PR #132266)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 20 11:24:47 PDT 2025
================
@@ -52,6 +52,15 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
return cir::BoolAttr::get(getContext(), getBoolTy(), state);
}
+ /// Create a for operation.
+ cir::ForOp createFor(
+ mlir::Location loc,
+ llvm::function_ref<void(mlir::OpBuilder &, mlir::Location)> condBuilder,
----------------
erichkeane wrote:
Is this intentionally missing the init? `ForStmt` has an Init, Condition, Step, and Body, but this handles only 3.
https://github.com/llvm/llvm-project/pull/132266
More information about the cfe-commits
mailing list