================
@@ -798,9 +855,26 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned
builtinID,
case X86::BI__builtin_ia32_vfcmaddcsh_round_mask3:
case X86::BI__builtin_ia32_vfmaddcsh_round_mask3:
case X86::BI__builtin_ia32_prefetchi:
- cgm.errorNYI(e->getSourceRange(),
+ cgm.errorNYI(E->getSourceRange(),
std::string("unimplemented X86 builtin call: ") +
- getContext().BuiltinInfo.getName(builtinID));
+ getContext().BuiltinInfo.getName(BuiltinID));
return {};
}
}
+
+mlir::Value CIRGenFunction::emitScalarOrConstFoldImmArg(unsigned ICEArguments,
+ unsigned Idx,
+ const CallExpr *E) {
+ mlir::Value Arg = {};
+ if ((ICEArguments & (1 << Idx)) == 0) {
----------------
andykaylor wrote:
A comment here explaining what `ICEArguments` is and how it works would be
helpful.
https://github.com/llvm/llvm-project/pull/167125
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits