[all-commits] [llvm/llvm-project] ef49d9: [PowerPC] Implement trap and conversion builtins f...

Conanap via All-commits all-commits at lists.llvm.org
Mon Jul 12 09:08:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef49d925e2a788248473b847a0e51835c6ca854f
      https://github.com/llvm/llvm-project/commit/ef49d925e2a788248473b847a0e51835c6ca854f
  Author: Albion Fung <albionapc at gmail.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/Basic/Targets/PPC.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGen/builtins-ppc-xlcompat-conversionfunc.c
    A clang/test/CodeGen/builtins-ppc-xlcompat-error.c
    A clang/test/CodeGen/builtins-ppc-xlcompat-trap-64bit-only.c
    A clang/test/CodeGen/builtins-ppc-xlcompat-trap.c
    M llvm/include/llvm/IR/IntrinsicsPowerPC.td
    M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    A llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
    A llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap-64bit-only.ll
    A llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll

  Log Message:
  -----------
  [PowerPC] Implement trap and conversion builtins for XL compatibility

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.

Differential Revision: https://reviews.llvm.org/D103668




More information about the All-commits mailing list