Implementation for RISC-V Zbr extension intrinsic.
Head files are included in the second patch in case the name needs to be changed
RV32 / 64:
crc32b crc32h crc32w crc32cb crc32ch crc32cw
RV64 Only:
crc32d crc32cd
Paths
| Differential D99009
[RISCV] [1/2] Add intrinsic for Zbr extension ClosedPublic Authored by LevyHsu on Mar 19 2021, 10:22 PM.
Details Summary Implementation for RISC-V Zbr extension intrinsic. Head files are included in the second patch in case the name needs to be changed RV32 / 64: crc32b crc32h crc32w crc32cb crc32ch crc32cw RV64 Only: crc32d crc32cd
Diff Detail
Event TimelineHerald added subscribers: vkmr, frasercrmck, luismarques and 23 others. · View Herald TranscriptMar 19 2021, 10:22 PM Herald added subscribers: llvm-commits, cfe-commits, MaskRay. · View Herald TranscriptMar 19 2021, 10:22 PM craig.topper added a child revision: D99008: [RISCV] [2/2] Add intrinsic for Zbr extension.Mar 19 2021, 10:26 PM Comment Actions Please fix the style issues and update the patch with full context (see https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface, or use arc)
Comment Actions
Comment Actions Please reupload the patch using something like "git diff -U99999". We should be able to expand the full diff here so that phabricator doesn't say "Context not available."
LevyHsu marked 9 inline comments as done. Comment Actions
Comment Actions LGTM. We can adjust the builtin names in the future if we need to do something different to match gcc. This revision is now accepted and ready to land.Apr 1 2021, 11:02 PM This revision was landed with ongoing or failed builds.Apr 2 2021, 11:02 AM Closed by commit rGb001d574d7d9: [RISCV] Add IR intrinsic for Zbr extension (authored by LevyHsu, committed by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Comment Actions Looks like this doesn't build on windows: http://45.33.8.238/win/36271/step_4.txt Please take a look and revert for now if it takes a while to fix. Comment Actions
Hopefully fixed in 1bd4986e7cdc Comment Actions
Yup, better now. Thanks for the fix!
Revision Contents
Diff 334990 clang/include/clang/Basic/BuiltinsRISCV.def
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbr.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbr.c
llvm/include/llvm/IR/IntrinsicsRISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/rv32zbr.ll
llvm/test/CodeGen/RISCV/rv64zbr.ll
|
Zbr