[LLVMdev] Help getting condition of branch instructions in pass
Michael McCracken
michael.mccracken at gmail.com
Thu Aug 26 17:56:17 PDT 2004
Hi, this is a bit of a newbie question:
I am trying to discover, given a block with a conditional and its
successors, which condition (T/F) each successor applies to.
There's almost identical code in CFGPrinter.cpp, but where it gets
called in GraphWriter.h, the child_iterator type is a pretty hairy
thing, so I still don't quite understand how to get one from a
BasicBlock in my own code...
Is there a simpler way to do it without getting into all that?
-mike
More information about the llvm-dev
mailing list