On Aug 28, 2013, at 1:41 PM, Kenneth Zadeck <[email protected]> wrote:
> On 08/28/2013 12:45 PM, Mike Stump wrote:
>>
>> tree t;
>> wide_int w = t;
>>
>> wide_int_to_tree needs an additional type, so, the spelling is not as short
>> out of necessity.
> i made wide_int_to_tree a function that lives in tree.[ch], not a member
> function of wide-int. This seemed to be consistent with the way other
> things were done. if you want it to be a member function, that is
> certainly doable.
EOUTOFDATE:
There are constructors to create the various forms of wide-int from
trees, rtl and constants. For trees and constants, you can simply say:
tree t = ...;
wide_int x = t;
wide_int y = 6;
public:
wide_int_ro ();
wide_int_ro (const_tree);
:-)