[PATCH] D102443: [PowerPC] Added multiple PowerPC builtins

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 17 03:05:34 PDT 2021


qiucf added a comment.

Is there any motivation to add these builtins? I don't see them implemented in GCC. Besides, in Clang I think a prefix `__builtin` is preferred for them.



================
Comment at: clang/include/clang/Basic/BuiltinsPPC.def:28
 
+BUILTIN(__popcntb, "ULiULi", "")
+BUILTIN(__eieio, "v", "")
----------------
On PPC we have `__builtin_popcount`, but I only saw `popcntw` and `popcntd` generated. (I didn't verify it carefully)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102443



More information about the cfe-commits mailing list