[all-commits] [llvm/llvm-project] f976ba: [PowerPC] Add Sema checks for MMA types

bsaleil via All-commits all-commits at lists.llvm.org
Wed Nov 4 15:02:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f976ba61395811732b4605b6fb9b6ba5cd489372
      https://github.com/llvm/llvm-project/commit/f976ba61395811732b4605b6fb9b6ba5cd489372
  Author: Baptiste Saleil <baptiste.saleil at ibm.com>
  Date:   2020-11-04 (Wed, 04 Nov 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    A clang/test/Sema/ppc-mma-types.c
    A clang/test/SemaCXX/ppc-mma-types.cpp

  Log Message:
  -----------
  [PowerPC] Add Sema checks for MMA types

The use of the new types introduced for PowerPC MMA instructions needs to be restricted.
We add a PowerPC function checking that the given type is valid in a context in which we don't allow MMA types.
This function is called from various places in Sema where we want to prevent the use of these types.

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




More information about the All-commits mailing list