[PATCH] [PM/AA] Extract the ModRef enums from the AliasAnalysis class in preparation for de-coupling the AA implementations.

Chandler Carruth chandlerc at gmail.com
Fri Jun 19 02:08:23 PDT 2015


In order to do this, they had to become fake-scoped using the
traditional LLVM pattern of a leading initialism. These can't be actual
scoped enumerations because they're bitfields and thus inherently we use
them as integers.

I've also renamed the behavior enums that are specific to reasoning
about the mod/ref behavior of functions when called. This makes it more
clear that they have a very narrow domain of applicability.

I think there is a significantly cleaner API for all of this, but
I don't want to try to do really substantive changes for now, I just
want to refactor the things away from analysis groups so I'm preserving
the exact original design and just cleaning up the names, style, and
lifting out of the class.

Depends on D10494
Depends on D10495

http://reviews.llvm.org/D10564

Files:
  include/llvm/Analysis/AliasAnalysis.h
  include/llvm/Analysis/LibCallAliasAnalysis.h
  include/llvm/Analysis/LibCallSemantics.h
  lib/Analysis/AliasAnalysis.cpp
  lib/Analysis/AliasAnalysisCounter.cpp
  lib/Analysis/AliasAnalysisEvaluator.cpp
  lib/Analysis/AliasDebugger.cpp
  lib/Analysis/AliasSetTracker.cpp
  lib/Analysis/BasicAliasAnalysis.cpp
  lib/Analysis/IPA/GlobalsModRef.cpp
  lib/Analysis/LibCallAliasAnalysis.cpp
  lib/Analysis/Loads.cpp
  lib/Analysis/MemoryDependenceAnalysis.cpp
  lib/Analysis/NoAliasAnalysis.cpp
  lib/Analysis/ScopedNoAliasAA.cpp
  lib/Analysis/TypeBasedAliasAnalysis.cpp
  lib/Transforms/IPO/ArgumentPromotion.cpp
  lib/Transforms/IPO/FunctionAttrs.cpp
  lib/Transforms/Instrumentation/MemorySanitizer.cpp
  lib/Transforms/ObjCARC/DependencyAnalysis.cpp
  lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.cpp
  lib/Transforms/ObjCARC/ObjCARCAliasAnalysis.h
  lib/Transforms/ObjCARC/ObjCARCContract.cpp
  lib/Transforms/Scalar/DeadStoreElimination.cpp
  lib/Transforms/Scalar/LICM.cpp
  lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  lib/Transforms/Scalar/MemCpyOptimizer.cpp
  lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  lib/Transforms/Scalar/Sink.cpp
  lib/Transforms/Utils/InlineFunction.cpp
  unittests/Analysis/AliasAnalysisTest.cpp
  utils/TableGen/IntrinsicEmitter.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10564.28010.patch
Type: text/x-patch
Size: 100711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150619/1632e59f/attachment.bin>


More information about the llvm-commits mailing list