[LLVMdev] Initial cut at a instruction raising patch
Richard Pennington
rich at pennware.com
Sat Aug 8 15:23:38 PDT 2009
Chris Lattner wrote:
> On Aug 8, 2009, at 1:37 PM, Richard Pennington wrote:
>
>> Chris Lattner wrote:
>>> How do you plan to handle things like arbitrary precision integers,
>>> etc? It seems like you'll end up duplicating a ton of codegen logic
>>> to handle this.
>> Maybe I'm not being very clear. I want this replacement to be done at
>> the very last minute (before unreferenced functions are removed, of
>> course).
>
> The last possible minute, right before isel, still has arbitrary
> precision integers. The right place to do something like this is in
> the code generator, which is where it happens.
>
> -Chris
Thanks Chris, my dimly lit bulb has just flickered a little brighter. I
understand the problem a little more clearly now. I'll pull my pass (or
at least keep it out of the LLVM tree), since it is of limited general
utility.
At least I got a chance to try writing a pass. Cool stuff.
-Rich
More information about the llvm-dev
mailing list