Displaying 2 results from an estimated 2 matches for "signedparam".
2018 Aug 22
2
Fixed Point Support in LLVM
...ur opinions differ there, then. I think the code
savings/generalization/simplification you get from expressing the
parameterization as constant parameters compared to having separate
intrinsics is not huge.
if (Ty->isSigned())
IID = fixsmul
else
IID = fixumul
if (Ty->isSigned())
SignedParam = ConstantInt(1)
else
SignedParam = ConstantInt(0)
The same goes for legalization/expansion. The semantics would be
described in specific operations, not generalized ones ('ext') so there
isn't much you can do there anyway.
>
> But ultimately, I'm not trying to dictate t...
2018 Aug 22
2
Fixed Point Support in LLVM
On 2018-08-22 05:56, John McCall via llvm-dev wrote:
>> On Aug 21, 2018, at 6:20 PM, Leonard Chan <leonardchan at google.com> wrote:
>> If we were to create a new type down the line, I think the main
>> features that would distinguish them from other types are the
>> arbitrary width and scale. Saturation can be handled through
>> instructions since saturation