[PowerPC] Enable paired vector type and intrinsics when MMA is disabled
authorBaptiste Saleil <baptiste.saleil@ibm.com>
Tue, 15 Dec 2020 21:08:09 +0000 (15:08 -0600)
committerBaptiste Saleil <baptiste.saleil@ibm.com>
Tue, 15 Dec 2020 21:14:11 +0000 (15:14 -0600)
commit57d83c3a90c427ad0975803feb5b348d1ad34e29
tree718c5a10a5336d5cb705f65e97475a4bd1b5bbae
parentdfac97d557690dd4b1f2fab798680234b238d11f
[PowerPC] Enable paired vector type and intrinsics when MMA is disabled

This patch enables the Clang type __vector_pair and its associated LLVM
intrinsics even when MMA is disabled. With this patch, the type is now controlled
by the PPC paired-vector-memops option. The builtins and intrinsics will be
renamed to drop the mma prefix in another patch.

Differential Revision: https://reviews.llvm.org/D91819
27 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
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/SemaChecking.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Serialization/ASTCommon.cpp
clang/lib/Serialization/ASTReader.cpp
clang/test/AST/ast-dump-ppc-types.c [moved from clang/test/AST/ast-dump-ppc-mma-types.c with 77% similarity]
clang/tools/libclang/CIndex.cpp
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/paired-vector-intrinsics-without-mma.ll [new file with mode: 0644]