summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/SymbolSize.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-09-05 09:56:54 +0000
committerTobias Grosser <tobias@grosser.es>2015-09-05 09:56:54 +0000
commitbc132607753fd1a77ba841f4e43cfdecce7fd754 (patch)
treed20ab93780cbacb74463f3f5e3146a1f2aee8e0e /llvm/lib/Object/SymbolSize.cpp
parent89ca2b982e1fc849d4ea3f01d690cd8c6391dca5 (diff)
downloadbcm5719-llvm-bc132607753fd1a77ba841f4e43cfdecce7fd754.tar.gz
bcm5719-llvm-bc132607753fd1a77ba841f4e43cfdecce7fd754.zip
BlockGenerator: Make GlobalMap a member variable
The GlobalMap variable used in BlockGenerator should always reference the same list througout the entire code generation, hence we can make it a member variable to avoid passing it around through every function call. History: Before we switched to the SCEV based code generation the GlobalMap also contained a mapping form old to new induction variables, hence it was different for each ScopStmt, which is why we passed it as function argument to copyStmt. The new SCEV based code generation now uses a separate mapping called LTS -> LoopToSCEV that maps each original loop to a new loop iteration variable provided as a SCEVExpr. The GlobalMap is currently mostly used for OpenMP code generation, where references to parameters in the original function need to be rewritten to the locations of these variables after they have been passed to the subfunction. Suggested-by: Johannes Doerfert <doerfert@cs.uni-saarland.de> llvm-svn: 246920
Diffstat (limited to 'llvm/lib/Object/SymbolSize.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud