Displaying 4 results from an estimated 4 matches for "fptosiinst".
2010 Jun 28
0
[LLVMdev] Proposal for adding rounding variant of fpto?i instructions
...of these as they seem to be temporary. Dan Gohman on IRC let me
know these are used by a closed source OpenCL backend, and I imagine
that at some stage the OpenCL backend could migrate to the standard
conversion instructions.
This is what I propose:
Add a "round" flag to FPToUIInst and FPToSIInst. The absence of this
flag means truncation is needed whereas presence indicates rounding.
The SelectionDAG for FP_TO_UINT and FP_TO_SINT are extended to add
an immediate that indicates whether rounding is needed.
To legalise a rounding FP_TO_UINT or FP_TO_SINT we use the technique
described in [...
2012 Jul 31
0
[LLVMdev] rotate
Oh, no. I should have been more clear. The patch was not rejected, just
lost in the daily shuffle.
I already have my employer's approval to send this upstream, so I will
prepare a patch against trunk this morning.
> I proposed a similar patch to LLVM (left circular shift) around 10/2011.
> > Parts of my patch did make it into trunk about a year after, but others
> > did not.
2012 Jul 31
4
[LLVMdev] rotate
On Monday, July 30, 2012 12:16 AM, Cameron McInally wrote:
> Hey Andy,
>
> I proposed a similar patch to LLVM (left circular shift) around 10/2011.
> Parts of my patch did make it into trunk about a year after, but others
> did not.
>
> At that time, my solution was to add a binary operator to the IRBuilder,
> since LCS fits in nicely with the other shift operators. But,
2012 Jul 31
3
[LLVMdev] rotate
...33, Trunc , TruncInst ) // Truncate integers
-HANDLE_CAST_INST(34, ZExt , ZExtInst ) // Zero extend integers
-HANDLE_CAST_INST(35, SExt , SExtInst ) // Sign extend integers
-HANDLE_CAST_INST(36, FPToUI , FPToUIInst ) // floating point -> UInt
-HANDLE_CAST_INST(37, FPToSI , FPToSIInst ) // floating point -> SInt
-HANDLE_CAST_INST(38, UIToFP , UIToFPInst ) // UInt -> floating point
-HANDLE_CAST_INST(39, SIToFP , SIToFPInst ) // SInt -> floating point
-HANDLE_CAST_INST(40, FPTrunc , FPTruncInst ) // Truncate floating point
-HANDLE_CAST_INST(41, FPExt , FPExtIns...