[all-commits] [llvm/llvm-project] 5ea611: [PowerPC] Emit error for Altivec vector initializa...

Amy Kwan via All-commits all-commits at lists.llvm.org
Fri Jul 30 07:36:16 PDT 2021


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

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

  Log Message:
  -----------
  [PowerPC] Emit error for Altivec vector initializations when -faltivec-src-compat=gcc is specified

Under the -faltivec-src-compat=gcc option, AltiVec vector initialization should
be treated as if they were compiled with gcc - which is, to emit an error when
the vectors are initialized in the parenthesized or non-parenthesized manner.
This patch implements this behaviour.

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




More information about the All-commits mailing list