[cfe-dev] Decomposing short circuit
Ilya Mirsky
ilya.mirsky at gmail.com
Mon Sep 20 05:38:32 PDT 2010
Hi,
I need to decompose short circuit expressions into regular And, Or.
I've started doing it manually, but then I figured out that the compiler
probably does the same.
Currently I identify such expressions using Stmt::hasImplicitControlFlow,
and then if it's a BinaryOperator I check if opCode is BO_LAnd or BO_LOr. Is
this the right way?
Is there a way to get clang to do it for me?
Can I assist CFG class with this issue?
Thanks in advance,
--
Best Regards,
Ilya Mirsky
www.cs.bgu.ac.il/~mirskyil <http://www.cs.bgu.ac.il/%7Emirskyil>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100920/28a14c73/attachment.html>
More information about the cfe-dev
mailing list