[SVE ACLE] Remove redundant bool_t typedef.
authorPaul Walker <paul.walker@arm.com>
Fri, 5 Jun 2020 11:49:44 +0000 (11:49 +0000)
committerPaul Walker <paul.walker@arm.com>
Sat, 6 Jun 2020 12:31:38 +0000 (12:31 +0000)
Subscribers: tschuett, cfe-commits

Tags: #clang

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

clang/utils/TableGen/SveEmitter.cpp

index 7d99e39..be0e91d 100644 (file)
@@ -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";