[clang] [CIR] Add if statement support (PR #134333)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 4 15:50:12 PDT 2025
================
@@ -442,6 +457,25 @@ class CIRGenFunction : public CIRGenTypeCache {
mlir::LogicalResult emitDeclStmt(const clang::DeclStmt &s);
LValue emitDeclRefLValue(const clang::DeclRefExpr *e);
+ /// Emit an if on a boolean condition to the specified blocks.
+ /// FIXME: Based on the condition, this might try to simplify the codegen of
+ /// the conditional based on the branch. TrueCount should be the number of
----------------
andykaylor wrote:
OK, so the comment here is basically saying we should consider performing the simplifications that are performed in the classic codegen. @Andres-Salamanca Can you reword the comment to reflect that? You should removed the sentence about TrueCount.
https://github.com/llvm/llvm-project/pull/134333
More information about the cfe-commits
mailing list