[PATCH] D90107: [TableGen] [AMDGPU] Add !sub bang operator for subtraction
Paul C. Anagnostopoulos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 05:18:06 PDT 2020
Paul-C-Anagnostopoulos added inline comments.
================
Comment at: llvm/docs/TableGen/ProgRef.rst:1664
+``!sub(``\ *a*\ ``,`` *b*\ ``, ...)``
+ This operator subtracts *a*, *b*, etc., and produces the difference.
+
----------------
foad wrote:
> 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))`?)
Thank you for asking this question! In fact, it does something silly, so I will not allow more than two arguments.
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