[LLVMdev] Proposal: intp type

me22 me22.ca at gmail.com
Tue Nov 10 06:10:54 PST 2009


2009/11/9 Kenneth Uildriks <kennethuil at gmail.com>:
>
> 1. Conversions to/from other integer types: right now, integer type
> conversions are always explicity specified as either a trunc, a sext,
> or a zext.  Since the size of intp is not known at IR generation time,
> you can't know whether a conversion to/from intp truncates or extends.
>

Now that there are arbitrary-sized integers, couldn't you zext to i256
then trunc down again, and later let the folder simplify as
appropriate?




More information about the llvm-dev mailing list