[PATCH] D45534: Add isl operator overloads for isl::pw_aff (Try II)

Tobias Grosser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 11 13:16:58 PDT 2018


grosser created this revision.
grosser added reviewers: Meinersbur, bollu, sebpop.

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)


Repository:
  rPLO Polly

https://reviews.llvm.org/D45534

Files:
  include/polly/Support/ISLOperators.h
  lib/Support/SCEVAffinator.cpp
  unittests/Isl/IslTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45534.142068.patch
Type: text/x-patch
Size: 7959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180411/14958908/attachment.bin>


More information about the llvm-commits mailing list