[Clang][PowerPC] Add __vector_pair and __vector_quad types
authorBaptiste Saleil <baptiste.saleil@ibm.com>
Wed, 28 Oct 2020 18:14:48 +0000 (13:14 -0500)
committerBaptiste Saleil <baptiste.saleil@ibm.com>
Wed, 28 Oct 2020 18:19:20 +0000 (13:19 -0500)
commit40dd4d5233d9f81705a24d91b48d2620e487b89d
tree166acb0209a30f3bbeb22d3cc7991d7cb3285857
parent9df32c9044aa051bb12277388956ac7a828d4ff8
[Clang][PowerPC] Add __vector_pair and __vector_quad types

Define the __vector_pair and __vector_quad types that are used to manipulate
the new accumulator registers introduced by MMA on PowerPC. Because these two
types are specific to PowerPC, they are defined in a separate new file so it
will be easier to add other PowerPC specific types if we need to in the future.

Differential Revision: https://reviews.llvm.org/D81508
26 files changed:
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/Type.h
clang/include/clang/AST/TypeProperties.td
clang/include/clang/Basic/PPCTypes.def [new file with mode: 0644]
clang/include/clang/Serialization/ASTBitCodes.h
clang/lib/AST/ASTContext.cpp
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/ExprConstant.cpp
clang/lib/AST/ItaniumMangle.cpp
clang/lib/AST/MicrosoftMangle.cpp
clang/lib/AST/NSAPI.cpp
clang/lib/AST/PrintfFormatString.cpp
clang/lib/AST/Type.cpp
clang/lib/AST/TypeLoc.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/Index/USRGeneration.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Serialization/ASTCommon.cpp
clang/lib/Serialization/ASTReader.cpp
clang/test/AST/ast-dump-ppc-mma-types.c [new file with mode: 0644]
clang/test/CodeGen/ppc-mma-types.c [new file with mode: 0644]
clang/test/CodeGenCXX/ppc-mangle-mma-types.cpp [new file with mode: 0644]
clang/tools/libclang/CIndex.cpp