[llvm] r260500 - [TableGen] Whitespace cleanup in output file. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 23:39:25 PST 2016


Author: ctopper
Date: Thu Feb 11 01:39:25 2016
New Revision: 260500

URL: http://llvm.org/viewvc/llvm-project?rev=260500&view=rev
Log:
[TableGen] Whitespace cleanup in output file. NFC

Modified:
    llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp

Modified: llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp?rev=260500&r1=260499&r2=260500&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp Thu Feb 11 01:39:25 2016
@@ -249,7 +249,7 @@ void InstrInfoEmitter::emitOperandNameMa
   OS << "#undef GET_INSTRINFO_OPERAND_ENUM\n";
   OS << "namespace llvm {\n";
   OS << "namespace " << Namespace << " {\n";
-  OS << "namespace " << OpNameNS << " { \n";
+  OS << "namespace " << OpNameNS << " {\n";
   OS << "enum {\n";
   for (const auto &Op : Operands)
     OS << "  " << Op.first << " = " << Op.second << ",\n";
@@ -259,7 +259,7 @@ void InstrInfoEmitter::emitOperandNameMa
   OS << "} // end namespace OpName\n";
   OS << "} // end namespace " << Namespace << "\n";
   OS << "} // end namespace llvm\n";
-  OS << "#endif //GET_INSTRINFO_OPERAND_ENUM\n";
+  OS << "#endif //GET_INSTRINFO_OPERAND_ENUM\n\n";
 
   OS << "#ifdef GET_INSTRINFO_NAMED_OPS\n";
   OS << "#undef GET_INSTRINFO_NAMED_OPS\n";
@@ -299,7 +299,7 @@ void InstrInfoEmitter::emitOperandNameMa
   OS << "}\n";
   OS << "} // end namespace " << Namespace << "\n";
   OS << "} // end namespace llvm\n";
-  OS << "#endif //GET_INSTRINFO_NAMED_OPS\n";
+  OS << "#endif //GET_INSTRINFO_NAMED_OPS\n\n";
 
 }
 
@@ -312,11 +312,11 @@ void InstrInfoEmitter::emitOperandTypesE
   const std::string &Namespace = Target.getInstNamespace();
   std::vector<Record *> Operands = Records.getAllDerivedDefinitions("Operand");
 
-  OS << "\n#ifdef GET_INSTRINFO_OPERAND_TYPES_ENUM\n";
+  OS << "#ifdef GET_INSTRINFO_OPERAND_TYPES_ENUM\n";
   OS << "#undef GET_INSTRINFO_OPERAND_TYPES_ENUM\n";
   OS << "namespace llvm {\n";
   OS << "namespace " << Namespace << " {\n";
-  OS << "namespace OpTypes { \n";
+  OS << "namespace OpTypes {\n";
   OS << "enum OperandType {\n";
 
   unsigned EnumVal = 0;
@@ -330,7 +330,7 @@ void InstrInfoEmitter::emitOperandTypesE
   OS << "} // end namespace OpTypes\n";
   OS << "} // end namespace " << Namespace << "\n";
   OS << "} // end namespace llvm\n";
-  OS << "#endif // GET_INSTRINFO_OPERAND_TYPES_ENUM\n";
+  OS << "#endif // GET_INSTRINFO_OPERAND_TYPES_ENUM\n\n";
 }
 
 //===----------------------------------------------------------------------===//
@@ -344,7 +344,7 @@ void InstrInfoEmitter::run(raw_ostream &
 
   emitSourceFileHeader("Target Instruction Descriptors", OS);
 
-  OS << "\n#ifdef GET_INSTRINFO_MC_DESC\n";
+  OS << "#ifdef GET_INSTRINFO_MC_DESC\n";
   OS << "#undef GET_INSTRINFO_MC_DESC\n";
 
   OS << "namespace llvm {\n\n";
@@ -418,12 +418,12 @@ void InstrInfoEmitter::run(raw_ostream &
      << TargetName << "InstrNameIndices, " << TargetName << "InstrNameData, "
      << NumberedInstructions.size() << ");\n}\n\n";
 
-  OS << "} // end llvm namespace \n";
+  OS << "} // end llvm namespace\n";
 
   OS << "#endif // GET_INSTRINFO_MC_DESC\n\n";
 
   // Create a TargetInstrInfo subclass to hide the MC layer initialization.
-  OS << "\n#ifdef GET_INSTRINFO_HEADER\n";
+  OS << "#ifdef GET_INSTRINFO_HEADER\n";
   OS << "#undef GET_INSTRINFO_HEADER\n";
 
   std::string ClassName = TargetName + "GenInstrInfo";
@@ -433,11 +433,11 @@ void InstrInfoEmitter::run(raw_ostream &
      << "(int CFSetupOpcode = -1, int CFDestroyOpcode = -1, int CatchRetOpcode = -1);\n"
      << "  ~" << ClassName << "() override {}\n"
      << "};\n";
-  OS << "} // end llvm namespace \n";
+  OS << "} // end llvm namespace\n";
 
   OS << "#endif // GET_INSTRINFO_HEADER\n\n";
 
-  OS << "\n#ifdef GET_INSTRINFO_CTOR_DTOR\n";
+  OS << "#ifdef GET_INSTRINFO_CTOR_DTOR\n";
   OS << "#undef GET_INSTRINFO_CTOR_DTOR\n";
 
   OS << "namespace llvm {\n";
@@ -450,7 +450,7 @@ void InstrInfoEmitter::run(raw_ostream &
      << "  InitMCInstrInfo(" << TargetName << "Insts, " << TargetName
      << "InstrNameIndices, " << TargetName << "InstrNameData, "
      << NumberedInstructions.size() << ");\n}\n";
-  OS << "} // end llvm namespace \n";
+  OS << "} // end llvm namespace\n";
 
   OS << "#endif // GET_INSTRINFO_CTOR_DTOR\n\n";
 
@@ -564,7 +564,7 @@ void InstrInfoEmitter::emitRecord(const
 // emitEnums - Print out enum values for all of the instructions.
 void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
 
-  OS << "\n#ifdef GET_INSTRINFO_ENUM\n";
+  OS << "#ifdef GET_INSTRINFO_ENUM\n";
   OS << "#undef GET_INSTRINFO_ENUM\n";
 
   OS << "namespace llvm {\n\n";
@@ -593,7 +593,7 @@ void InstrInfoEmitter::emitEnums(raw_ost
   OS << "  };\n";
   OS << "} // end Sched namespace\n";
   OS << "} // end " << Namespace << " namespace\n";
-  OS << "} // end llvm namespace \n";
+  OS << "} // end llvm namespace\n";
 
   OS << "#endif // GET_INSTRINFO_ENUM\n\n";
 }




More information about the llvm-commits mailing list