Add isl operator overloads for isl::pw_aff (Try II)
authorTobias Grosser <tobias@grosser.es>
Thu, 12 Apr 2018 06:15:17 +0000 (06:15 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 12 Apr 2018 06:15:17 +0000 (06:15 +0000)
commitbe483ae665ebd7a945334b9c7a6319c36e85806c
tree1c7252b2a518cd550acf7e76fdc126e086221505
parentff6c4f370205d66f0e001999a739024c9c6d5ff1
Add isl operator overloads for isl::pw_aff (Try II)

Piecewise affine expressions have directly corresponding mathematical
operators. Introduce these operators as overloads as this makes writing
code with isl::pw_aff expressions more directly readable.

We can now write:

  A = B + C    instead of    A = B.add(C)

Reviewers: Meinersbur, bollu, sebpop

Reviewed By: Meinersbur

Subscribers: philip.pfaffe, pollydev, llvm-commits

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

llvm-svn: 329880
polly/include/polly/Support/ISLOperators.h [new file with mode: 0644]
polly/unittests/Isl/IslTest.cpp