llvm-tblgen: Reformat
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 18 Feb 2023 14:15:23 +0000 (23:15 +0900)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 18 Feb 2023 18:06:31 +0000 (03:06 +0900)
12 files changed:
llvm/utils/TableGen/Attributes.cpp
llvm/utils/TableGen/CTagsEmitter.cpp
llvm/utils/TableGen/CallingConvEmitter.cpp
llvm/utils/TableGen/DAGISelEmitter.cpp
llvm/utils/TableGen/FastISelEmitter.cpp
llvm/utils/TableGen/GlobalISelEmitter.cpp
llvm/utils/TableGen/InstrInfoEmitter.cpp
llvm/utils/TableGen/PseudoLoweringEmitter.cpp
llvm/utils/TableGen/SearchableTableEmitter.cpp
llvm/utils/TableGen/SubtargetEmitter.cpp
llvm/utils/TableGen/TableGen.cpp
llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp

index 735c53d..f43a1b2 100644 (file)
@@ -135,4 +135,4 @@ void EmitAttributes(RecordKeeper &RK, raw_ostream &OS) {
   Attributes(RK).emit(OS);
 }
 
-} // End llvm namespace.
+} // namespace llvm
index b4ffbfa..d262901 100644 (file)
@@ -12,8 +12,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/SourceMgr.h"
 #include "llvm/TableGen/Error.h"
 #include "llvm/TableGen/Record.h"
 #include <algorithm>
@@ -89,4 +89,4 @@ namespace llvm {
 
 void EmitCTags(RecordKeeper &RK, raw_ostream &OS) { CTagsEmitter(RK).run(OS); }
 
-} // End llvm namespace.
+} // namespace llvm
index e8ec90e..84da4f8 100644 (file)
@@ -41,7 +41,7 @@ private:
 } // End anonymous namespace
 
 void CallingConvEmitter::run(raw_ostream &O) {
-  std::vector<Record*> CCs = Records.getAllDerivedDefinitions("CallingConv");
+  std::vector<Record *> CCs = Records.getAllDerivedDefinitions("CallingConv");
 
   // Emit prototypes for all of the non-custom CC's so that they can forward ref
   // each other.
@@ -433,4 +433,4 @@ void EmitCallingConv(RecordKeeper &RK, raw_ostream &OS) {
   CallingConvEmitter(RK).run(OS);
 }
 
-} // End llvm namespace
+} // namespace llvm
index 70738c7..6e577e5 100644 (file)
@@ -193,4 +193,4 @@ void EmitDAGISel(RecordKeeper &RK, raw_ostream &OS) {
   DAGISelEmitter(RK).run(OS);
 }
 
-} // End llvm namespace
+} // namespace llvm
index ef501f8..f0808d8 100644 (file)
@@ -875,4 +875,4 @@ void EmitFastISel(RecordKeeper &RK, raw_ostream &OS) {
   F.printFunctionDefinitions(OS);
 }
 
-} // End llvm namespace
+} // namespace llvm
index 9119267..83469dd 100644 (file)
@@ -6366,4 +6366,4 @@ namespace llvm {
 void EmitGlobalISel(RecordKeeper &RK, raw_ostream &OS) {
   GlobalISelEmitter(RK).run(OS);
 }
-} // End llvm namespace
+} // namespace llvm
index 564c3ed..14ee24c 100644 (file)
@@ -114,8 +114,8 @@ private:
 
 } // end anonymous namespace
 
-static void PrintDefList(const std::vector<Record*> &Uses,
-                         unsigned Num, raw_ostream &OS) {
+static void PrintDefList(const std::vector<Record *> &Uses, unsigned Num,
+                         raw_ostream &OS) {
   OS << "static const MCPhysReg ImplicitList" << Num << "[] = { ";
   for (auto [Idx, U] : enumerate(Uses))
     OS << (Idx ? ", " : "") << getQualifiedName(U);
index 6a1e133..31f5369 100644 (file)
@@ -319,4 +319,4 @@ void EmitPseudoLowering(RecordKeeper &RK, raw_ostream &OS) {
   PseudoLoweringEmitter(RK).run(OS);
 }
 
-} // End llvm namespace
+} // namespace llvm
index c88a2db..978a2cd 100644 (file)
@@ -828,4 +828,4 @@ void EmitSearchableTables(RecordKeeper &RK, raw_ostream &OS) {
   SearchableTableEmitter(RK).run(OS);
 }
 
-} // End llvm namespace.
+} // namespace llvm
index ec26e1c..4226492 100644 (file)
@@ -14,8 +14,8 @@
 #include "CodeGenSchedule.h"
 #include "CodeGenTarget.h"
 #include "PredicateExpander.h"
-#include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/MC/MCInstrItineraries.h"
index 4117ed5..fd8612c 100644 (file)
@@ -221,8 +221,7 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
   case GenOptRST:
     EmitOptRST(Records, OS);
     break;
-  case PrintEnums:
-  {
+  case PrintEnums: {
     for (Record *Rec : Records.getAllDerivedDefinitions(Class))
       OS << Rec->getName() << ", ";
     OS << "\n";
index b42ffa2..a2bbf12 100644 (file)
@@ -238,10 +238,10 @@ void X86EVEX2VEXTablesEmitter::run(raw_ostream &OS) {
   // Print CheckVEXInstPredicate function.
   printCheckPredicate(EVEX2VEXPredicates, OS);
 }
-}
+} // namespace
 
 namespace llvm {
 void EmitX86EVEX2VEXTables(RecordKeeper &RK, raw_ostream &OS) {
   X86EVEX2VEXTablesEmitter(RK).run(OS);
 }
-}
+} // namespace llvm