This is an archive of the discontinued LLVM Phabricator instance.

[llvm][Inline] Refactor out InlineOrder
ClosedPublic

Authored by taolq on Aug 10 2021, 8:16 AM.

Details

Summary

Move InlineOrder to separated file.

Diff Detail

Event Timeline

taolq created this revision.Aug 10 2021, 8:16 AM
taolq requested review of this revision.Aug 10 2021, 8:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2021, 8:16 AM
taolq retitled this revision from Refactor out InlineOrder to [llvm][Inline] Refactor out InlineOrder.Aug 10 2021, 8:18 AM
taolq edited the summary of this revision. (Show Details)
taolq added reviewers: kazu, mtrofin, teemperor.
kazu added inline comments.Aug 10 2021, 10:57 AM
llvm/include/llvm/Analysis/InlineOrder.h
2

Please remove this empty line.

14–18

Please include what you use like "llvm/ADT/SmallVector.h", <algorithm>, etc.

LLVM header files are supposed to be self contained, meaning that a C++ source file that does nothing but include a header file compiles without a problem. While developing this patch, you could try to include this header file as the first one in Inliner.cpp to see if you get any errors from the compiler.

21–25

Please remove these.

77

If we are moving this class outside a .cpp, I might rename it to InlinePriority or something to avoid potential conflicts.

174

Please add a newline at the end.

taolq updated this revision to Diff 365752.Aug 11 2021, 7:23 AM
  • fix clang-tidy errors
kazu accepted this revision.Aug 11 2021, 4:38 PM

LGTM. Thank you for updating the patch!

This revision is now accepted and ready to land.Aug 11 2021, 4:38 PM
This revision was landed with ongoing or failed builds.Aug 12 2021, 7:21 AM
This revision was automatically updated to reflect the committed changes.