[all-commits] [llvm/llvm-project] fcc2e5: [TableGen][NFC] Add postfix for validators of Comp...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Tue Jan 17 22:34:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fcc2e5aa39428c25f9d164d4a25a2a4dab4f0071
      https://github.com/llvm/llvm-project/commit/fcc2e5aa39428c25f9d164d4a25a2a4dab4f0071
  Author: wangpc <pc.wang at linux.alibaba.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/utils/TableGen/CompressInstEmitter.cpp

  Log Message:
  -----------
  [TableGen][NFC] Add postfix for validators of CompressPat

So that we won't get redefinition errors if we use compressInst
and uncompressInst in the same file.

Reviewed By: asb

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


  Commit: 3f703b071e43d5337625f796d700a397156e08e4
      https://github.com/llvm/llvm-project/commit/3f703b071e43d5337625f796d700a397156e08e4
  Author: wangpc <pc.wang at linux.alibaba.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
    M llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp

  Log Message:
  -----------
  [RISCV][NFC] Move compressInst/uncompressInst to RISCVBaseInfo

We have several usages of compressInst/uncompressInst in different
files, which results in duplicated code. We move their implementations
to RISCVBaseInfo under namespace RISCVRVC to remove these duplications.

Reviewed By: craig.topper, asb

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


  Commit: 9bb7a38a6943dd3805b1c133f25cf1459416fbed
      https://github.com/llvm/llvm-project/commit/9bb7a38a6943dd3805b1c133f25cf1459416fbed
  Author: wangpc <pc.wang at linux.alibaba.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp

  Log Message:
  -----------
  [RISCV][NFC] Use uncompressInst to relax instructions

As the TODO said, we can just use generated uncompressInst to
relax instructions.

Reviewed By: craig.topper, kito-cheng

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


Compare: https://github.com/llvm/llvm-project/compare/28b6f38d0a84...9bb7a38a6943


More information about the All-commits mailing list