[clang] [CIR] Upstream initial for-loop support (PR #132266)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 20 12:08:57 PDT 2025


================
@@ -165,6 +165,25 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) {
   return LValue();
 }
 
+mlir::Value CIRGenFunction::evaluateExprAsBool(const Expr *e) {
----------------
erichkeane wrote:

Sorry, I meant in 'clang' we consider Bool to be 8 bit(when stored) or 1 bit( in a condition), then have it mean something slightly differently in CIR (which is ONLY the 1 bit representation).  I don't know of anything better though, so I resolved.

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


More information about the cfe-commits mailing list