[all-commits] [llvm/llvm-project] 981f08: [SVE] Generate overloaded functions for ACLE intri...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Thu Mar 19 02:36:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 981f0802b37597975606d2b5f5bbc25974c4c3df
      https://github.com/llvm/llvm-project/commit/981f0802b37597975606d2b5f5bbc25974c4c3df
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1_shortform.c
    M clang/utils/TableGen/SveEmitter.cpp

  Log Message:
  -----------
  [SVE] Generate overloaded functions for ACLE intrinsics.

The SVE ACLE allows using a short-form for the intrinsics, e.g.
the following two declarations generate the same code:

  svuint32_t svld1(svbool_t, uint32_t const *);
  svuint32_t svld1_u32(svbool_t, uint32_t const *);

using the attribute:
  __clang_arm_builtin_alias

so that any call to svld1(svbool_t, uint32_t const *) will
map to __builtin_sve_svld1_u32.

Reviewers: SjoerdMeijer, miyuki, efriedma, simon_tatham, rengolin

Reviewed By: SjoerdMeijer

Tags: #clang

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




More information about the All-commits mailing list