Quick question: how do I get a list of StructType* defined/used in a Module? I can't seem to find an appropriate iterator in the Module class... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110831/17715c85/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: cafxx.vcf Type: text/x-vcard Size: 230 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110831/17715c85/attachment.vcf>
On Aug 31, 2011, at 10:23 AM, Carlo Alberto Ferraris wrote:> Quick question: how do I get a list of StructType* defined/used in a Module? I can't seem to find an appropriate iterator in the Module class...Module::findUsedStructTypes. Note that this requires scanning the entire module, it is not an efficient operation. -Chris
Nella citazione mercoledì 31 agosto 2011 20:35:46, Chris Lattner ha scritto:> On Aug 31, 2011, at 10:23 AM, Carlo Alberto Ferraris wrote: >> Quick question: how do I get a list of StructType* defined/used in a Module? I can't seem to find an appropriate iterator in the Module class... > Module::findUsedStructTypes. Note that this requires scanning the entire module, it is not an efficient operation.Thanks! By any chance, is there also a way (short of iterating on all instructions and globals) to find all "uses" of a structtype? -------------- next part -------------- A non-text attachment was scrubbed... Name: cafxx.vcf Type: text/x-vcard Size: 230 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110831/15f17b69/attachment.vcf>