[LLVMdev] llvm-gcc
John Criswell
criswell at illinois.edu
Tue Apr 19 16:24:15 PDT 2011
On 4/19/11 4:37 PM, Anton Korobeynikov wrote:
>> llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc
>> it shows to me i should install llvm-gcc4.5
>> when i have installed llvm-gcc 4.5 i get all the times a wrong bc file
>> as output, because when i try to execute it with lli it says to me
>> invalid signature.
> There is no llvm-gcc 4.5. Report this bug to Ubuntu, because it seems
> they hacked the stuff somehow.
>
>> i would like to add the value of the size od a basic bloc to this
>> global variable
>> how to convert the size of a basic bloc to integer?
> Size = number of LLVM IR instructions there? If yes, just grab the
> number, convert it to ConstantIn and use as an initializer / store to
> variable.
>
There's a typo in the above sentence. ConstantIn should be ConstantInt.
:)
-- John T.
More information about the llvm-dev
mailing list