[PATCH] D103668: [PowerPC] Implement trap and conversion builtins for XL compatibility

Albion Fung via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 3 22:31:38 PDT 2021


Conanap created this revision.
Herald added subscribers: shchenz, kbarton, hiraditya, nemanjai.
Conanap requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

This patch implements trap and FP to and from double conversions. The builtins
generate code that mirror what is generated from the XL compiler. Intrinsics
are named conventionally with builtin_ppc, but are aliased to provide the same
builtin names as the XL compiler.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103668

Files:
  clang/include/clang/Basic/BuiltinsPPC.def
  clang/lib/Basic/Targets/PPC.h
  clang/lib/Sema/SemaChecking.cpp
  llvm/include/llvm/IR/IntrinsicsPowerPC.td
  llvm/lib/Target/PowerPC/PPCInstr64Bit.td
  llvm/lib/Target/PowerPC/PPCInstrPrefix.td
  llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.c
  llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103668.349767.patch
Type: text/x-patch
Size: 13495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/7b824a37/attachment.bin>


More information about the llvm-commits mailing list