[LLVMdev] How to print a list of used LLVM APIs in a given open source project?

Sean Silva chisophugis at gmail.com
Mon Jan 13 15:10:13 PST 2014


As a first approximation, you can scan #includes in the project or look for
`llvm::[a-zA-Z0-9_]+`. If you need something precise, you could try using
Clang's ASTMatcher's to query for all referenced declarations in namespace
`::llvm`.

-- Sean Silva


On Mon, Jan 13, 2014 at 5:39 PM, Gai, Jiading <jgai at illinois.edu> wrote:

> Hi,
>
>      Assume there's an open source compiler implementation based on
> LLVM/Clang. What is the neatest way to print a list of LLVM APIs used in
> that open source project? Thanks.
>
> Best,
> Jiading
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140113/47f98834/attachment.html>


More information about the llvm-dev mailing list