Mircea Trofin
49942d595f
[NFC] remove const from FunctionPropertiesAnalysis::run, keep on Result
...
The goal in 75881d8b02
was just modifying what `Result` is, didn't
need to also modify ::run.
2022-04-28 15:10:21 -07:00
Mircea Trofin
75881d8b02
[NFC] const-ed the return type of FunctionPropertiesAnalysis
...
The result is a data bag, this makes sure it's signaled to a user that
the data can't be mutated when, for example, doing something like:
auto &R = FAM.getResult<FunctionPropertiesAnalysis>(F)
...
R.Uses++
2022-04-28 12:42:16 -07:00
serge-sans-paille
71c3a5519d
Cleanup includes: LLVMAnalysis
...
Number of lines output by preprocessor:
before: 1065940348
after: 1065307662
Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup
Differential Revision: https://reviews.llvm.org/D120659
2022-03-01 18:01:54 +01:00
Kazu Hirata
e3d3dbd339
[llvm] Ensure newlines at the end of files (NFC)
...
This patch eliminates pesky "No newline at end of file" messages from
git diff.
2021-01-10 09:24:57 -08:00
Eric Christopher
3ac828b8f7
Use llvm::size rather than an empty loop to get the number of top
...
level loops.
2020-07-23 14:55:50 -07:00
Tarindu Jayatilaka
06283661b3
Add new function properties to FunctionPropertiesAnalysis
...
Added LoadInstCount, StoreInstCount, MaxLoopDepth, LoopCount
Reviewed By: jdoerfert, mtrofin
Differential Revision: https://reviews.llvm.org/D82283
2020-07-23 12:46:47 -07:00
Tarindu Jayatilaka
ee6f0e109c
Add a Printer to the FunctionPropertiesAnalysis
...
A printer pass and a lit test case was added.
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D82523
2020-07-23 11:57:11 -07:00
Tarindu Jayatilaka
2f56046d7c
Refactor FunctionPropertiesAnalysis
...
this separates `analyze` logic from `FunctionPropertiesAnalysis`
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D82521
2020-07-23 11:49:10 -07:00
Tarindu Jayatilaka
418121c30a
Reapply "Rename InlineFeatureAnalysis to FunctionPropertiesAnalysis"
...
(This reverts commit a5e0194709
, and
corrects author).
Rename the pass to be able to extend it to function properties other than inliner features.
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D82044
2020-07-22 10:07:35 -07:00
Mircea Trofin
a5e0194709
Revert "Rename InlineFeatureAnalysis to FunctionPropertiesAnalysis"
...
This reverts commit 44a6bda19b
. I forgot
to correctly attibute it to tarinduj. Fixing and resubmitting.
2020-07-22 09:42:17 -07:00
Mircea Trofin
44a6bda19b
Rename InlineFeatureAnalysis to FunctionPropertiesAnalysis
...
Rename the pass to be able to extend it to function properties other than inliner features.
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D82044
2020-07-22 09:24:15 -07:00