summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-01-14 20:25:44 +0000
committerTobias Grosser <tobias@grosser.es>2017-01-14 20:25:44 +0000
commit4d5a9172875c0718ee9472c72765f2b5ef7c92dd (patch)
tree409e89d64720128bfe947532c717264bc4c5b659 /llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
parent12ed728c2393bc2c117e4d90dbfa3e820df923a7 (diff)
downloadbcm5719-llvm-4d5a9172875c0718ee9472c72765f2b5ef7c92dd.tar.gz
bcm5719-llvm-4d5a9172875c0718ee9472c72765f2b5ef7c92dd.zip
Use typed enums to model MemoryKind and move MemoryKind out of ScopArrayInfo
To benefit of the type safety guarantees of C++11 typed enums, which would have caught the type mismatch fixed in r291960, we make MemoryKind a typed enum. This change also allows us to drop the 'MK_' prefix and to instead use the more descriptive full name of the enum as prefix. To reduce the amount of typing needed, we use this opportunity to move MemoryKind from ScopArrayInfo to a global scope, which means the ScopArrayInfo:: prefix is not needed. This move also makes historically sense. In the beginning of Polly we had different MemoryKind enums in both MemoryAccess and ScopArrayInfo, which were later canonicalized to one. During this canonicalization we just choose the enum in ScopArrayInfo, but did not consider to move this shared enum to global scope. Reviewed-by: Michael Kruse <llvm@meinersbur.de> Differential Revision: https://reviews.llvm.org/D28090 llvm-svn: 292030
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud