[cfe-dev] Question about LLVM dependence graph
Feng Lu
lufeng1204 at gmail.com
Thu Oct 31 06:42:55 PDT 2013
Hi, all,
I am new to LLVM and Clang,
I am interested in the following problem:
Given a function with parameters, obtain the part of parameters which
are used in branch conditions within the function or sub-functions.
For the following example, I hope to get v.c1
struct p {
int c1,
int c2
};
void foo (p v) {
if (v.c1)
...
else
...
}
Does LLVM or Clang contains the code that could easily achieve this
efficiently?
Thanks,
Feng Lu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131031/86409fce/attachment.html>
More information about the cfe-dev
mailing list