llvm-project/llvm/lib/Transforms/Instrumentation
Vedant Kumar e7b789b529 [ProfileSummary] Standardize methods and fix comment
Every Analysis pass has a get method that returns a reference of the Result of
the Analysis, for example, BlockFrequencyInfo
&BlockFrequencyInfoWrapperPass::getBFI().  I believe that
ProfileSummaryInfo::getPSI() is the only exception to that, as it was returning
a pointer.

Another change is renaming isHotBB and isColdBB to isHotBlock and isColdBlock,
respectively.  Most methods use BB as the argument of variable names while
methods usually refer to Basic Blocks as Blocks, instead of BB.  For example,
Function::getEntryBlock, Loop:getExitBlock, etc.

I also fixed one of the comments.

Patch by Rodrigo Caetano Rocha!

Differential Revision: https://reviews.llvm.org/D54669

llvm-svn: 347182
2018-11-19 05:23:16 +00:00
..
AddressSanitizer.cpp Revert "[PassManager/Sanitizer] Enable usage of ported AddressSanitizer passes with -fsanitize=address" 2018-10-26 22:51:51 +00:00
BoundsChecking.cpp Fix crash in bounds checking. 2018-08-03 17:12:23 +00:00
CFGMST.h [TI removal] Make variables declared as `TerminatorInst` and initialized 2018-10-15 10:04:59 +00:00
CGProfile.cpp [CGProfile] Turn constant-size SmallVector into array 2018-10-22 10:51:34 +00:00
CMakeLists.txt [PGO] Control Height Reduction 2018-09-04 17:19:13 +00:00
ControlHeightReduction.cpp [ProfileSummary] Standardize methods and fix comment 2018-11-19 05:23:16 +00:00
DataFlowSanitizer.cpp [cxx2a] Fix warning triggered by r343285 2018-09-29 02:17:12 +00:00
EfficiencySanitizer.cpp [TI removal] Remove `TerminatorInst` from BasicBlockUtils.h 2018-10-15 09:34:05 +00:00
GCOVProfiling.cpp [GCOV] Add options to filter files which must be instrumented. 2018-11-12 09:01:43 +00:00
HWAddressSanitizer.cpp [sancov] Put .SCOV* sections into the right comdat groups on COFF 2018-11-08 00:57:33 +00:00
IndirectCallPromotion.cpp [ProfileSummary] Standardize methods and fix comment 2018-11-19 05:23:16 +00:00
InstrProfiling.cpp [InstrProf] Use atomic profile counter updates for TSan 2018-08-16 22:24:47 +00:00
Instrumentation.cpp [sancov] Put .SCOV* sections into the right comdat groups on COFF 2018-11-08 00:57:33 +00:00
LLVMBuild.txt
MaximumSpanningTree.h Remove unneeded use of #undef DEBUG_TYPE. NFC 2017-07-12 20:49:21 +00:00
MemorySanitizer.cpp [MSan] another take at instrumenting inline assembly - now with calls 2018-10-31 09:32:47 +00:00
PGOInstrumentation.cpp [PGO] Exit early if all count values are zero 2018-11-07 23:51:20 +00:00
PGOMemOPSizeOpt.cpp [PGOMemOPSize] Preserve the DominatorTree 2018-07-09 08:07:21 +00:00
SanitizerCoverage.cpp [sancov] Put .SCOV* sections into the right comdat groups on COFF 2018-11-08 00:57:33 +00:00
ThreadSanitizer.cpp Use SmallPtrSet explicitly for SmallSets with pointer types (NFC). 2018-06-12 11:16:56 +00:00