[clang] d6d2f78 - [SVE ACLE] Remove redundant bool_t typedef.
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 6 05:45:34 PDT 2020
Author: Paul Walker
Date: 2020-06-06T12:31:38Z
New Revision: d6d2f78fe504fb7b749b08c10558f42180d83d73
URL: https://github.com/llvm/llvm-project/commit/d6d2f78fe504fb7b749b08c10558f42180d83d73
DIFF: https://github.com/llvm/llvm-project/commit/d6d2f78fe504fb7b749b08c10558f42180d83d73.diff
LOG: [SVE ACLE] Remove redundant bool_t typedef.
Subscribers: tschuett, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D81252
Added:
Modified:
clang/utils/TableGen/SveEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/SveEmitter.cpp b/clang/utils/TableGen/SveEmitter.cpp
index 7d99e39f9d03..be0e91d8b1d5 100644
--- a/clang/utils/TableGen/SveEmitter.cpp
+++ b/clang/utils/TableGen/SveEmitter.cpp
@@ -437,7 +437,8 @@ std::string SVEType::str() const {
S += "x" + utostr(getNumElements());
if (NumVectors > 1)
S += "x" + utostr(NumVectors);
- S += "_t";
+ if (!isScalarPredicate())
+ S += "_t";
}
if (Constant)
@@ -1058,7 +1059,6 @@ void SVEEmitter::createHeader(raw_ostream &OS) {
OS << "typedef __fp16 float16_t;\n";
OS << "typedef float float32_t;\n";
OS << "typedef double float64_t;\n";
- OS << "typedef bool bool_t;\n\n";
OS << "typedef __SVInt8_t svint8_t;\n";
OS << "typedef __SVInt16_t svint16_t;\n";
More information about the cfe-commits
mailing list