Function attribute to indicate external/public

How do I know from a foo.ll (from foo.bc) which function has attribute “Public” or “External”


You will want to look at the linkage and/or visibility attributes.

I imagine there is a llvm pass that you could write that runs at image analysis time that looks at all of the functions in the context and checks their attributes, and gives you some processed subset as you require.