[LLVMdev] Complex constant expressions?
sabre at nondot.org
Thu Jan 24 12:38:25 PST 2008
On Fri, 25 Jan 2008, Neil Booth wrote:
>> What would be a good technique for accomplishing this?
> The APFloat functionality I wrote is the only means I'm aware of
> in LLVM, via the return value. APFloat is derived from C code I
Right. Use of APFloat and AP[S]Int directly is the way to do this. It
would be useful to extend APSInt to capture information about overflow.
> If LLVM's APFloat wrapper isn't conveying the info it is given
> by APFloat, it needs to be improved :)
No, it doesn't. The LLVM constant classes are intended for the optimizer
and IR, not for a front-end to use.
More information about the llvm-dev