================
@@ -111,6 +111,45 @@ static RValue emitBuiltinBitOpWithFallback(CIRGenFunction
&cgf,
return RValue::get(builder.createSelect(loc, isZero, fallbackValue, result));
}
+// stdc_{leading,trailing}_{zeros,ones} and stdc_count_ones: counts bits using
+// clz, ctz, or popcount. InvertArg flips the input to count the opposite bit
+// value.
+template <typename Op, typename... Args>
+static RValue emitStdcCountOp(CIRGenFunction &cgf, const CallExpr *e,
----------------
xakep8 wrote:
Added a helper to check and reject the unsupported _BitInt width which now
check if the width is supported or not.
https://github.com/llvm/llvm-project/pull/214931
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits