[cfe-dev] Fwd: Extracting llvm IR CFG from Clang

xiaohui chen via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 17 08:38:56 PST 2016


Dear All:

I am working on Clang/LLVM and interested to know if there is a
programmatic way to extract the CFG of a specific
node in AST like a for loop?

 I am aware of -emit-llvmoption, but it will apply on the whole TU.

For example,
we could use  CFG::buildCFG to extract the source level CFG of a specific
node.
Is there a counterpart API to extract the LLVM IR level CFG of a specific
node?

Sincerely
xiaohui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160217/96529990/attachment.html>


More information about the cfe-dev mailing list