[PATCH] D100830: [RISCV] [1/2] Add IR intrinsic for Zbp extension

LevyHsu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 20 19:59:35 PDT 2021


LevyHsu updated this revision to Diff 339086.
LevyHsu added a comment.

Change Log:

1. llvm/lib/Target/RISCV/RISCVInstrInfoB.td
  - Aligned SDNode def for shflw/unshfl/unshflw
  - Reordered def : PatGprImm<riscv_unshfl, UNSHFLI, shfl_uimm>;
  - Merged Pat def when Predicates = [HasStdExtZbp]

2. llvm/test/CodeGen/RISCV/rv32zbp-intrinsic.ll llvm/test/CodeGen/RISCV/rv64zbp-intrinsic.ll llvm/test/MC/RISCV/rv32b-aliases-valid.s llvm/test/MC/RISCV/rv64b-aliases-valid.s
  - Replaced all imm from 29 to 4


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100830

Files:
  clang/include/clang/Basic/BuiltinsRISCV.def
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbp.c
  clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbp.c
  llvm/include/llvm/IR/IntrinsicsRISCV.td
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVInstrInfoB.td
  llvm/test/CodeGen/RISCV/rv32zbp-intrinsic.ll
  llvm/test/CodeGen/RISCV/rv64zbp-intrinsic.ll
  llvm/test/MC/RISCV/rv32b-aliases-valid.s
  llvm/test/MC/RISCV/rv64b-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100830.339086.patch
Type: text/x-patch
Size: 48235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210421/2a60819e/attachment-0001.bin>


More information about the cfe-commits mailing list