================
@@ -1087,6 +1115,11 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl
&gd, unsigned builtinID,
case Builtin::BI__builtin_popcountg:
return emitBuiltinBitOp<cir::BitPopcountOp>(*this, e);
+ case Builtin::BI__builtin_unpredictable: {
+ assert(!cir::MissingFeatures::insertBuiltinUnpredictable());
----------------
andykaylor wrote:
```suggestion
// Always return the argument of __builtin_unpredictable. LLVM does not
// have an intrinsic corresponding to this builtin. Metadata for this
builtin
// should be added directly to instructions such as branches or switches
// that use it.
```
We already have MissingFeatures markers in the places where this should happen.
https://github.com/llvm/llvm-project/pull/178093
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits