This is an archive of the discontinued LLVM Phabricator instance.

[Transforms] Forward declare classes & remove includes
AbandonedPublic

Authored by clemenswasser on Feb 20 2022, 6:29 AM.

Details

Reviewers
None
Summary

llvm/IR/Function.h and llvm/IR/Instructions.h were identified as quiet heavy by clang build analyzer.
Removing includes and forward declaring the relevant classes saves compilation time.

Diff Detail

Event Timeline

clemenswasser created this revision.Feb 20 2022, 6:29 AM
clemenswasser requested review of this revision.Feb 20 2022, 6:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2022, 6:29 AM
nikic added a subscriber: nikic.Feb 20 2022, 6:48 AM

I think you submitted the diff the wrong way around?

Wow, I was so confused... thanks!

Update Patch. I reformatted but diffed the wrong commit hash, sorry :(

clemenswasser abandoned this revision.Jul 16 2022, 2:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 2:35 PM