Check validity of new access relations. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 1 Sep 2016 19:16:58 +0000 (19:16 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 1 Sep 2016 19:16:58 +0000 (19:16 +0000)
commit772ce7200085db8cea395b3b962b8c9496cb9845
treeb4071a10dffae6c0980596f0896cfccebbe471eb
parent199a8e6a9237370b031685f216be5868ee43631c
Check validity of new access relations. NFC.

There are some constraints on maps that can be access relations. In builds with assertions enabled, verify

  - The access domain is the same space as the statement's domain (modulo parameters).
  - Whether an access is defined for every instance of the statement. (codegen does not yet support partial access relations)
  - Whether the access range links to an array, represented by a ScopArrayInfo.
  - The number of access dimensions equals the dimensions of the array.
  - The array is not an indirect access. (also not supported by codegen)

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

llvm-svn: 280404
polly/lib/Analysis/ScopInfo.cpp