[all-commits] [llvm/llvm-project] dd5aa6: [PowerPC] Implement vector bool/pixel initializati...

Amy Kwan via All-commits all-commits at lists.llvm.org
Mon Jul 19 07:12:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd5aa657a520adcff84bb6149dd20cd8a2c8c6c6
      https://github.com/llvm/llvm-project/commit/dd5aa657a520adcff84bb6149dd20cd8a2c8c6c6
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaCast.cpp
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/CodeGen/vector-bool-pixel-altivec-init-no-parentheses.c
    A clang/test/CodeGen/vector-bool-pixel-altivec-init.c

  Log Message:
  -----------
  [PowerPC] Implement vector bool/pixel initialization under -faltivec-src-compat=xl

This patch implements the initialization of vectors under the
-faltivec-src-compat=xl option introduced in https://reviews.llvm.org/D103615.

Under this option, the initialization of scalar vectors, vector bool, and vector
pixel are treated the same, where the initialization value is splatted across
the whole vector.

This patch does not change the behaviour of the -faltivec-src-compat=mixed option,
which is the current default for Clang.

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




More information about the All-commits mailing list