[llvm] bd5d0a2 - Reformat
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 00:22:21 PDT 2023
Author: NAKAMURA Takumi
Date: 2023-03-21T16:10:12+09:00
New Revision: bd5d0a20d44456b2ee53feb229ed97bb8937b2d3
URL: https://github.com/llvm/llvm-project/commit/bd5d0a20d44456b2ee53feb229ed97bb8937b2d3
DIFF: https://github.com/llvm/llvm-project/commit/bd5d0a20d44456b2ee53feb229ed97bb8937b2d3.diff
LOG: Reformat
Added:
Modified:
llvm/utils/TableGen/TableGen.cpp
llvm/utils/TableGen/TableGenBackends.h
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index fd8612cd87d28..2ec3deb8ae258 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/utils/TableGen/TableGen.cpp
@@ -157,12 +157,12 @@ cl::opt<std::string> Class("class", cl::desc("Print Enum list for this class"),
bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
switch (Action) {
case PrintRecords:
- OS << Records; // No argument, dump all contents
+ OS << Records; // No argument, dump all contents
break;
case PrintDetailedRecords:
EmitDetailedRecords(Records, OS);
break;
- case NullBackend: // No backend at all.
+ case NullBackend: // No backend at all.
break;
case DumpJSON:
EmitJSON(Records, OS);
@@ -227,13 +227,12 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
OS << "\n";
break;
}
- case PrintSets:
- {
+ case PrintSets: {
SetTheory Sets;
Sets.addFieldExpander("Set", "Elements");
for (Record *Rec : Records.getAllDerivedDefinitions("Set")) {
OS << Rec->getName() << " = [";
- const std::vector<Record*> *Elts = Sets.expand(Rec);
+ const std::vector<Record *> *Elts = Sets.expand(Rec);
assert(Elts && "Couldn't expand Set instance");
for (Record *Elt : *Elts)
OS << ' ' << Elt->getName();
@@ -290,7 +289,7 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
return false;
}
-}
+} // namespace
int main(int argc, char **argv) {
InitLLVM X(argc, argv);
diff --git a/llvm/utils/TableGen/TableGenBackends.h b/llvm/utils/TableGen/TableGenBackends.h
index ac44babb12610..12ea753cf9531 100644
--- a/llvm/utils/TableGen/TableGenBackends.h
+++ b/llvm/utils/TableGen/TableGenBackends.h
@@ -96,6 +96,6 @@ void EmitDirectivesImpl(RecordKeeper &RK, raw_ostream &OS);
void EmitDXILOperation(RecordKeeper &RK, raw_ostream &OS);
void EmitRISCVTargetDef(const RecordKeeper &RK, raw_ostream &OS);
-} // End llvm namespace
+} // namespace llvm
#endif
More information about the llvm-commits
mailing list