[all-commits] [llvm/llvm-project] 9d7206: [TableGen] [AMDGPU] Add !sub operator for subtraction

Paul C. Anagnostopoulos via All-commits all-commits at lists.llvm.org
Wed Oct 28 09:28:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d72065cf6e0d02f748671d872d891f36ceda257
      https://github.com/llvm/llvm-project/commit/9d72065cf6e0d02f748671d872d891f36ceda257
  Author: Paul C. Anagnostopoulos <paul at windfall.com>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M llvm/docs/TableGen/ProgRef.rst
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/Record.cpp
    M llvm/lib/TableGen/TGLexer.cpp
    M llvm/lib/TableGen/TGLexer.h
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.td
    M llvm/test/TableGen/arithmetic.td
    M llvm/test/TableGen/math.td

  Log Message:
  -----------
  [TableGen] [AMDGPU] Add !sub operator for subtraction

Use it in the AMDGPU target to eliminate !add(value1, !mul(value2, -1))

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




More information about the All-commits mailing list