llvm-project/llvm/lib/Transforms/Instrumentation
Reid Kleckner 45707d4d5a Remove getArgumentList() in favor of arg_begin(), args(), etc
Users often call getArgumentList().size(), which is a linear way to get
the number of function arguments. arg_size(), on the other hand, is
constant time.

In general, the fact that arguments are stored in an iplist is an
implementation detail, so I've removed it from the Function interface
and moved all other users to the argument container APIs (arg_begin(),
arg_end(), args(), arg_size()).

Reviewed By: chandlerc

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

llvm-svn: 298010
2017-03-16 22:59:15 +00:00
..
AddressSanitizer.cpp [AddressSanitizer] Put shadow at 0 for Fuchsia 2017-02-27 22:49:37 +00:00
BoundsChecking.cpp Apply clang-tidy's modernize-loop-convert to most of lib/Transforms. 2016-06-26 12:28:59 +00:00
CFGMST.h [PGO] Fix PGO use ICE when there are unreachable BBs 2016-12-02 19:10:29 +00:00
CMakeLists.txt [CMake] NFC. Updating CMake dependency specifications 2016-11-17 04:36:50 +00:00
DataFlowSanitizer.cpp Remove getArgumentList() in favor of arg_begin(), args(), etc 2017-03-16 22:59:15 +00:00
EfficiencySanitizer.cpp [esan] Remove global variable. 2016-10-18 19:39:23 +00:00
GCOVProfiling.cpp Use StringRef in Pass/PassManager APIs (NFC) 2016-10-01 02:56:57 +00:00
IndirectCallPromotion.cpp Add call branch annotation for ICP promoted direct call in SamplePGO mode. 2017-02-23 22:15:18 +00:00
InstrProfiling.cpp Resubmit r297897: [PGO] Value profile for size of memory intrinsic calls 2017-03-16 21:15:48 +00:00
Instrumentation.cpp [PM] code refactoring /NFC 2016-06-05 03:40:03 +00:00
LLVMBuild.txt [PGO] Resubmit "MST based PGO instrumentation infrastructure" (r254021) 2015-12-09 18:08:16 +00:00
MaximumSpanningTree.h
MemorySanitizer.cpp [msan] Handle x86_sse_stmxcsr and x86_sse_ldmxcsr. 2017-03-03 01:12:43 +00:00
PGOInstrumentation.cpp Resubmit r297897: [PGO] Value profile for size of memory intrinsic calls 2017-03-16 21:15:48 +00:00
SanitizerCoverage.cpp [sancov] using comdat only when it is enabled 2017-02-08 23:12:46 +00:00
ThreadSanitizer.cpp ThreadSanitizer: don't track swifterror memory addresses 2017-02-15 18:57:06 +00:00