[PATCH] D105462: [X86] Add CRC32 feature.
Wang Tianqing via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 6 00:02:53 PDT 2021
tianqing created this revision.
Herald added subscribers: dexonsmith, dang, pengfei, hiraditya, mgorny.
tianqing requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
d8faf03807ac <https://reviews.llvm.org/rGd8faf03807ac059f669ddea8742dd540e58e45be> implemented general-regs-only for X86 by disabling all features
with vector instructions. But the CRC32 instruction in SSE4.2 ISA, which uses
only GPRs, also becomes unavailable. This patch adds a CRC32 feature for this
instruction and allows it to be used with general-regs-only.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105462
Files:
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Basic/BuiltinsX86.def
clang/include/clang/Basic/BuiltinsX86_64.def
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets/X86.cpp
clang/lib/Basic/Targets/X86.h
clang/lib/Headers/CMakeLists.txt
clang/lib/Headers/crc32intrin.h
clang/lib/Headers/ia32intrin.h
clang/lib/Headers/immintrin.h
clang/lib/Headers/smmintrin.h
clang/test/CodeGen/X86/x86-crc-builtins.c
clang/test/CodeGen/attr-cpuspecific.c
clang/test/CodeGen/attr-target-crc32-x86.c
clang/test/CodeGen/attr-target-x86.c
clang/test/Driver/x86-mgeneral-regs-only-crc32.c
clang/test/Driver/x86-target-features.c
clang/test/Preprocessor/x86_target_features.c
llvm/include/llvm/Support/X86TargetParser.def
llvm/lib/Support/Host.cpp
llvm/lib/Support/X86TargetParser.cpp
llvm/lib/Target/X86/X86.td
llvm/lib/Target/X86/X86InstrFormats.td
llvm/lib/Target/X86/X86InstrInfo.td
llvm/lib/Target/X86/X86InstrSSE.td
llvm/lib/Target/X86/X86Subtarget.h
llvm/test/CodeGen/X86/crc32-intrinsics-fast-isel-x86_64.ll
llvm/test/CodeGen/X86/crc32-intrinsics-x86.ll
llvm/test/CodeGen/X86/crc32-intrinsics-x86_64.ll
llvm/test/CodeGen/X86/crc32-target-feature.ll
llvm/test/CodeGen/X86/sse42-intrinsics-fast-isel-x86_64.ll
llvm/test/CodeGen/X86/sse42-intrinsics-x86_64.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105462.356615.patch
Type: text/x-patch
Size: 44726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210706/f0237c6c/attachment-0001.bin>
More information about the cfe-commits
mailing list