This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Add function attributes to Index and GraphTraits for function summary
AbandonedPublic

Authored by ncharlie on Jul 29 2017, 8:26 AM.

Details

Summary

Add flags for function attributes and a GraphTrait implementation for the Index. The information added in this patch will allow SCC's to be created for the index and will be used in optimization and analysis passes.

Diff Detail

Event Timeline

ncharlie created this revision.Jul 29 2017, 8:26 AM
ncharlie added inline comments.Jul 29 2017, 8:30 AM
include/llvm/IR/ModuleSummaryIndex.h
381

I don't think creating an empty FunctionSummary is correct, however I have it here right now because there has to be some way of handling external functions that aren't in the index (i.e. library functions like printf, etc).

844

I'm not sure that this is the proper way to handle a function that have any calls. Should this function just be return F;?

ncharlie abandoned this revision.Jul 31 2017, 8:25 AM

Will be split into two patches.