[LLVMdev] inserting a fucntion call at the end of basic bloc
baldrick at free.fr
Tue Apr 26 05:15:47 PDT 2011
> where did the "noalias" attribute and "tail call" (rather than "call") come
> from? Are you setting these yourself or running some optimization pass after
> your pass?
> i have written a module pass and i have compiled it and then
you didn't answer my questions, you just repeated what you said before.
> opt -load /home/inspiron/PhdWork/llvm-2.8/Release/lib/Example.so -Example2 <
> hello.bc > /dev/null
> i get the error message
> Wrong type for attribute noalias
> tail call void @consume(i32 noalias 3, i32* @y) nounwind
> Broken module found, compilation aborted!
> 0 libLLVM-2.8.so.1 0x019bc628
> Stack dump:
> 0.Program arguments: opt -load
> /home/inspiron/PhdWork/llvm-2.8/Release/lib/Example.so -Example2
> 1.Running pass 'Function Pass Manager' on module '<stdin>'.
> 2.Running pass 'Module Verifier' on function '@main'
> Ciao, Duncan.
More information about the llvm-dev