[all-commits] [llvm/llvm-project] 402093: [PowerPC] Make altivec.h work with AIX which has n...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Tue Mar 23 22:36:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4020932706f6f8538b48b9b8439a7ec1266a7ae5
      https://github.com/llvm/llvm-project/commit/4020932706f6f8538b48b9b8439a7ec1266a7ae5
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsPPC.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/altivec.h
    A clang/test/CodeGen/builtins-ppc-quadword-noi128.c

  Log Message:
  -----------
  [PowerPC] Make altivec.h work with AIX which has no __int128

There are a number of functions in altivec.h that use
vector __int128 which isn't supported on AIX. Those functions
need to be guarded for targets that don't support the type.
Furthermore, the functions that produce quadword instructions
without using the type need a builtin. This patch adds the
macro guards to altivec.h using the __SIZEOF_INT128__ which
is only defined on targets that support the __int128 type.




More information about the All-commits mailing list