[LLVMdev] llvm to x86 IR conversion

me22 me22.ca at gmail.com
Sun May 10 14:20:24 PDT 2009


On Sun, May 10, 2009 at 15:58, Rotem Varon <varonrotem at gmail.com> wrote:
> I believe that my question isn't clear. So, please let me rephrase :
> I am running a basic block pass (and iterating through each instruction).
> Is it possible to convert the basic block instruction form llvm IR to x86 IR
> WITHIN the path ?
> I mean: is LLVM API exists for this purpose ?
>

My point was that BasicBlockPass's runOnBasicBlock "is not allowed to
inspect or modify basic blocks other than the parameter," and thus you
don't have enough information to convert general LLVM IR to x86 IR, so
there cannot be an LLVM API to do it.

(I think.)



More information about the llvm-dev mailing list