This is an archive of the discontinued LLVM Phabricator instance.

FIx poolalloc compilation with trunk llvm
ClosedPublic

Authored by matekm on Apr 12 2014, 3:55 AM.

Details

Reviewers
kevinstreit
Summary

Poolalloc isn't compiling with trunk version of LLVM and I need it to compile SAFECode.

This patch align code of the poolalloc, so it compile with current trunk version. Most of the changes are cosmetic ones:

  • remove DataStructureCallGraph - as it was not used by poolalloc and SAFECode
  • changing include statements to properly include various LLVM headers
  • changing name of various analysis passes
  • changing calls to methods returning user iterators

Diff Detail

Event Timeline

kevinstreit accepted this revision.Apr 14 2014, 2:11 AM

LGTM
Verified against LLVM and poolalloc trunk. Note though that I am just a user of this as well and I do not have any commit rights.

Do You know who would be best to push this code to trunk?

Great start, thanks!

Missing a number of use_{begin,end} => user_{begin,end} updates that until fixed cause many lit test failures.

On that, the lit cfg files need updating, I'll commit all this shortly.

Should be good to go now, let me know if you have any further issues!

Thanks for putting this together! :)

Apologies for not submitting through phabricator, never used it before. Does this need to be 'closed' now?

matekm closed this revision.Apr 17 2014, 7:16 AM

Done and commited -r206408!

lib/AssistDS/DSNodeEquivs.cpp