[LLVMdev] "pure" functions"

Vladimir Prus ghost at cs.msu.su
Sun Jun 4 05:52:52 PDT 2006


Hi,
say I've a LLVM module with a call instruction. The called function is
"pure", that is it has no side-effects at all. How can I communicate this
to LLVM, so that the function call can be removed if the return value is
never used?

Thanks,
Volodya





More information about the llvm-dev mailing list