[LLVMdev] how to have a Operator reference from an Instruction?

Wenbin Zhang zhangwen at cse.ohio-state.edu
Mon Jul 5 10:56:46 PDT 2010

Hi All,

I'm new to LLVM and trying to do some analysis on the IR. 

For a instruction, e.g., a BinaryOperator, can I have the reference of an
Operator from it? Now I can use getOpcode() or getOpcodeName() to have
unsigned int or string. But can I have a Operator or specifically
AddOperator as the return value?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100705/b3915b4e/attachment.html>

More information about the llvm-dev mailing list