anton at korobeynikov.info
Tue Apr 19 14:37:42 PDT 2011
> 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
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev