[llvm-dev] How Instruction and ConstExpr derived from Operator?

Mahesha S via llvm-dev llvm-dev at lists.llvm.org
Mon May 17 22:45:14 PDT 2021


Hi,

Looking at https://llvm.org/doxygen/classllvm_1_1User.html, I don't see any
hierarchical relationship between Instruction and Operator, and the same is
true with ConstExpr and Operator. Then, I am not getting how
Operator::getOpcode() will successfully dyn_cast<> Operator either to
Instruction or to ConstExpr.

Thanks,
Mahesha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210518/43e2fcf9/attachment.html>


More information about the llvm-dev mailing list