[llvm] [IR] Add `llvm.sincos` intrinsic (PR #109825)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 09:34:24 PDT 2024
================
@@ -2340,6 +2340,13 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID,
MachineInstr::copyFlagsFromInstruction(CI));
return true;
}
+ case Intrinsic::sincos: {
+ ArrayRef<Register> VRegs = getOrCreateVRegs(CI);
+ MIRBuilder.buildFSincos(VRegs[0], VRegs[1],
----------------
tschuett wrote:
This is more complicated than needed, see case Intrinsic::fptosi_sat: below.
https://github.com/llvm/llvm-project/pull/109825
More information about the llvm-commits
mailing list