llvm-6502/lib/Transforms
Chandler Carruth 1e3557de0d [PM/AA] Hoist the AliasResult enum out of the AliasAnalysis class.
This will allow classes to implement the AA interface without deriving
from the class or referencing an internal enum of some other class as
their return types.

Also, to a pretty fundamental extent, concepts such as 'NoAlias',
'MayAlias', and 'MustAlias' are first class concepts in LLVM and we
aren't saving anything by scoping them heavily.

My mild preference would have been to use a scoped enum, but that
feature is essentially completely broken AFAICT. I'm extremely
disappointed. For example, we cannot through any reasonable[1] means
construct an enum class (or analog) which has scoped names but converts
to a boolean in order to test for the possibility of aliasing.

[1]: Richard Smith came up with a "solution", but it requires class
templates, and lots of boilerplate setting up the enumeration multiple
times. Something like Boost.PP could potentially bundle this up, but
even that would be quite painful and it doesn't seem realistically worth
it. The enum class solution would probably work without the need for
a bool conversion.

Differential Revision: http://reviews.llvm.org/D10495

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240255 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-22 02:16:51 +00:00
..
Hello Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
InstCombine Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
Instrumentation Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
IPO Rangify for loops in Inliner::runOnSCC(), NFC. 2015-06-20 07:12:33 +00:00
ObjCARC [PM/AA] Hoist the AliasResult enum out of the AliasAnalysis class. 2015-06-22 02:16:51 +00:00
Scalar IndVarSimplify: Avoid UB from binding a reference to a null pointer 2015-06-20 06:24:05 +00:00
Utils [SwitchLowering] Remove quadratic vector removal. 2015-06-20 15:59:34 +00:00
Vectorize [SLP] Vectorize for all-constant entries. 2015-06-19 17:40:15 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile