[PATCH] D90107: [TableGen] [AMDGPU] Add !sub bang operator for subtraction

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 25 01:52:15 PDT 2020


foad added a comment.

I like it.



================
Comment at: llvm/docs/TableGen/ProgRef.rst:1664
+``!sub(``\ *a*\ ``,`` *b*\ ``, ...)``
+    This operator subtracts *a*, *b*, etc., and produces the difference.
+
----------------
Can you improve this description so that I can understand what it does if there are more than two operands please? :) (I guess it probably follows the LISP precedent where `(- a b c d)` is `(- a (+ b c d))`?)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90107/new/

https://reviews.llvm.org/D90107



More information about the llvm-commits mailing list