[all-commits] [llvm/llvm-project] d54e4d: [sve][acle] Enable feature macros for SVE ACLE ext...

Francesco Petrogalli via All-commits all-commits at lists.llvm.org
Tue Jun 30 11:33:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d54e4dded7b08444ce16058dad3d6748e501092d
      https://github.com/llvm/llvm-project/commit/d54e4dded7b08444ce16058dad3d6748e501092d
  Author: Francesco Petrogalli <francesco.petrogalli at arm.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/lib/Basic/Targets/AArch64.h
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_bfdot.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_bfmlalb.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_bfmlalt.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_bfmmla.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_clasta-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_clastb-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cnt-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create3-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create4-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cvt-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cvtnt.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_dup-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_dupq-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ext-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_insr-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_lasta-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_lastb-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1ro-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1ro.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1rq-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld3-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld4-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ldff1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ldnf1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ldnt1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_len-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_matmul_fp32.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_matmul_fp64.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_mmla.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_reinterpret-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_rev-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_sel-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set3-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set4-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_splice-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st3-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_st4-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_stnt1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_sudot.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_tbl-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_trn1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_trn1-fp64-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_trn1-fp64.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_trn2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_trn2-fp64-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_trn2-fp64.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef3-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef4-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_usdot.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_uzp1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_uzp1-fp64-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_uzp1-fp64.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_uzp2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_uzp2-fp64-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_uzp2-fp64.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_zip1-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_zip1-fp64-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_zip1-fp64.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_zip2-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_zip2-fp64-bfloat.c
    M clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_zip2-fp64.c
    M clang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_tbl2-bfloat.c
    M clang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_tbx-bfloat.c
    M clang/test/Preprocessor/aarch64-target-features.c

  Log Message:
  -----------
  [sve][acle] Enable feature macros for SVE ACLE extensions.

Summary:
The following feature macros have been added:

__ARM_FEATURE_SVE_BF16

__ARM_FEATURE_SVE_MATMUL_INT8

__ARM_FEATURE_SVE_MATMUL_FP32

__ARM_FEATURE_SVE_MATMUL_FP64

The driver has been updated to enable them accordingly to the value of
the target feature passed at command line.

The SVE ACLE tests using the macros have been modified to work with
the target feature instead of passing the macro at command line.

Reviewers: sdesmalen, efriedma, c-rhodes, kmclaughlin, SjoerdMeijer, rengolin

Subscribers: tschuett, kristof.beyls, rkruppe, psnobl, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list