Displaying 6 results from an estimated 6 matches for "condpass".
Did you mean:
compass
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
...t;message.
>
>-Eli
Well I am just using lli to run the linked file (i.e. program.bc). The
command chain is usually as follows.
llvm-g++ --emit-llvm -c PrintRes.cpp -o PrintRes.bc
(PrintRes.bc has the function which I want to call from the
newfile.bc below)
opt -load ../../../Release/lib/CondPass.so -ProfileCond < try.bc >
/dev/null
(this generates newfile.bc while try.bc is original code)
llvm-link -o program.bc newfile.bc PrintRes.bc
lli program.bc
where newfile.bc is the bitcode generated by pass and PrintRes.bcis the file
that contains the function I am inserting using...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...to run the linked file (i.e. program.bc). The
> command chain is usually as follows.
>
> llvm-g++ --emit-llvm -c PrintRes.cpp -o PrintRes.bc
> (PrintRes.bc has the function which I want to call from the
> newfile.bc below)
>
> opt -load ../../../Release/lib/CondPass.so -ProfileCond < try.bc >
> /dev/null
> (this generates newfile.bc while try.bc is original code)
>
> llvm-link -o program.bc newfile.bc PrintRes.bc
> lli program.bc
>
> where newfile.bc is the bitcode generated by pass and PrintRes.bcis the file
>...
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
...to run the linked file (i.e. program.bc). The
> command chain is usually as follows.
>
> llvm-g++ --emit-llvm -c PrintRes.cpp -o PrintRes.bc
> (PrintRes.bc has the function which I want to call from the
> newfile.bc below)
>
> opt -load ../../../Release/lib/CondPass.so -ProfileCond < try.bc >
> /dev/null
> (this generates newfile.bc while try.bc is original code)
>
> llvm-link -o program.bc newfile.bc PrintRes.bc
> lli program.bc
>
> where newfile.bc is the bitcode generated by pass and PrintRes.bcis the
file
>...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
On Thu, Jun 3, 2010 at 10:45 PM, Nehal Gandhi <nbg2k7 at gmail.com> wrote:
> Hi Eli,
>
>
>
> Thanks for that. Rookie mistake on my side. It solves the linking issue.
> However, it was not the main problem. The problem is when I execute the
> linked file ( modified bitcode + file containing the function), I get an
> assertion error - Assertion `Addr &&
2010 Jun 04
2
[LLVMdev] Inserting a function call into bitcode
Hi Eli,
Thanks for that. Rookie mistake on my side. It solves the linking issue.
However, it was not the main problem. The problem is when I execute the
linked file ( modified bitcode + file containing the function), I get an
assertion error - Assertion `Addr && "Code generation didn't add function to
GlobalAddress table!"' failed.
So my main concern - is that a
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...program.bc). The
>> command chain is usually as follows.
>>
>> llvm-g++ --emit-llvm -c PrintRes.cpp -o PrintRes.bc
>> (PrintRes.bc has the function which I want to call from the
>> newfile.bc below)
>>
>> opt -load ../../../Release/lib/CondPass.so -ProfileCond < try.bc >
>> /dev/null
>> (this generates newfile.bc while try.bc is original code)
>>
>> llvm-link -o program.bc newfile.bc PrintRes.bc
>> lli program.bc
>>
>> where newfile.bc is the bitcode generated by pass and...