Implementation for RISC-V Zbr extension intrinsics.
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 D99008
[RISCV] [2/2] Add intrinsic for Zbr extension Needs ReviewPublic Authored by LevyHsu on Mar 19 2021, 9:57 PM.
Details Summary Implementation for RISC-V Zbr extension intrinsics. 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
Unit TestsFailed Event TimelineHerald added subscribers: vkmr, frasercrmck, luismarques and 23 others. · View Herald TranscriptMar 19 2021, 9:57 PM Herald added subscribers: llvm-commits, cfe-commits, MaskRay. · View Herald TranscriptMar 19 2021, 9:57 PM LevyHsu retitled this revision from [RISCV] Add intrinsic for Zbr extension to [RISCV] Add intrinsic for Zbr extension (2/2).Mar 19 2021, 10:20 PM LevyHsu retitled this revision from [RISCV] Add intrinsic for Zbr extension (2/2) to [RISCV] [2/2] Add intrinsic for Zbr extension. craig.topper added a parent revision: D99009: [RISCV] [1/2] Add intrinsic for Zbr extension.Mar 19 2021, 10:26 PM Comment Actions Please note I asked that this patch be separate from D99009 because the rvintrin.h file name may not be the final filename we want to use. This https://github.com/riscv/riscv-c-api-doc/pull/14 suggests it should be riscv_intrinsic.h. So I wanted to separate any discussion about how it should be exposed to the user from the implementation of the IR intrinsics and clang builtins.
Comment Actions
Revision Contents
Diff 332074 clang/include/clang/Basic/BuiltinsRISCV.def
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/CodeGen/CGBuiltin.cppclang/lib/Sema/SemaChecking.cppclang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbr.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbr.c
clang/test/Headers/rvintrin.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
|
clang-format: please reformat the code