[PATCH] D94252: Delete (most) of the MMX builtin functions from Clang.

James Y Knight via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 7 11:41:00 PST 2021


jyknight created this revision.
jyknight added reviewers: craig.topper, spatel, RKSimon.
jyknight requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

After switching the headers to implement the intrinsics using SSE2
(see https://reviews.llvm.org/D86855), these builtins are now unused.

Only 3 remain -- __builtin_ia32_emms, still used by _mm_empty(), and
__builtin_ia32_vec_{ext,set}_v4si, used by _mm_insert_pi16 and
_mm_extract_pi16, which lower to generic non-MMX IR.

Also update the clang/www/builtins.py with mappings for the
newly-removed builtins to their corresponding intrinsic functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94252

Files:
  clang/include/clang/Basic/BuiltinsX86.def
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/test/CodeGen/builtins-x86.c
  clang/test/CodeGen/palignr.c
  clang/test/CodeGen/pr26099.c
  clang/www/builtins.py
  llvm/include/llvm/IR/IntrinsicsX86.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94252.315192.patch
Type: text/x-patch
Size: 46879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210107/ba243fdb/attachment-0001.bin>


More information about the cfe-commits mailing list