[all-commits] [llvm/llvm-project] 7cfa0c: [TableGen] Add predicates for immediates compariso...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Fri Jan 26 21:28:29 PST 2024


  Branch: refs/heads/release/18.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cfa0c1b7c82135ee5de1555c72d9629e5556c69
      https://github.com/llvm/llvm-project/commit/7cfa0c1b7c82135ee5de1555c72d9629e5556c69
  Author: Wang Pengcheng <wangpengcheng.pp at bytedance.com>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M llvm/include/llvm/Target/TargetInstrPredicate.td
    M llvm/utils/TableGen/PredicateExpander.cpp
    M llvm/utils/TableGen/PredicateExpander.h

  Log Message:
  -----------
  [TableGen] Add predicates for immediates comparison (#76004)

These predicates can be used to represent `<`, `<=`, `>`, `>=`.

And a predicate for `in range` is added.

(cherry picked from commit 664a0faac464708fc061d12e5cd492fcbfea979a)


  Commit: d9e26c223bdb124e1e83b73d87d7a545925fda90
      https://github.com/llvm/llvm-project/commit/d9e26c223bdb124e1e83b73d87d7a545925fda90
  Author: Wang Pengcheng <wangpengcheng.pp at bytedance.com>
  Date:   2024-01-26 (Fri, 26 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/CMakeLists.txt
    M llvm/lib/Target/RISCV/RISCV.td
    M llvm/lib/Target/RISCV/RISCVFeatures.td
    R llvm/lib/Target/RISCV/RISCVMacroFusion.cpp
    R llvm/lib/Target/RISCV/RISCVMacroFusion.h
    A llvm/lib/Target/RISCV/RISCVMacroFusion.td
    M llvm/lib/Target/RISCV/RISCVSubtarget.cpp
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp

  Log Message:
  -----------
  [RISCV] Use TableGen-based macro fusion (#72224)

We convert existed macro fusions to TableGen.

Bacause `Fusion` depend on `Instruction` definitions which is defined
below `RISCVFeatures.td`, so we recommend user to add fusion features
when defining new processor.

(cherry picked from commit 3fdb431b636975f2062b1931158aa4dfce6a3ff1)


Compare: https://github.com/llvm/llvm-project/compare/62877e375c8e...d9e26c223bdb


More information about the All-commits mailing list