[mlir] clang-format

Mostly whitespace changes, but this makes these files clang-format clean.

PiperOrigin-RevId: 205697599
diff --git a/lib/IR/AsmPrinter.cpp b/lib/IR/AsmPrinter.cpp
index 64b5a2c..55cc98c 100644
--- a/lib/IR/AsmPrinter.cpp
+++ b/lib/IR/AsmPrinter.cpp
@@ -86,8 +86,7 @@
   DenseMap<const AffineMap *, int> affineMapIds;
   int nextAffineMapId = 0;
 };
-}  // end anonymous namespace
-
+} // end anonymous namespace
 
 // TODO Support visiting other types/instructions when implemented.
 void ModuleState::visitType(const Type *type) {
@@ -235,7 +234,8 @@
     mapAndId.first->print(os);
     os << '\n';
   }
-  for (auto *fn : module->functionList) print(fn);
+  for (auto *fn : module->functionList)
+    print(fn);
 }
 
 void ModulePrinter::print(const Attribute *attr) const {
@@ -308,7 +308,8 @@
   case Type::Kind::Vector: {
     auto *v = cast<VectorType>(type);
     os << "vector<";
-    for (auto dim : v->getShape()) os << dim << 'x';
+    for (auto dim : v->getShape())
+      os << dim << 'x';
     os << *v->getElementType() << '>';
     return;
   }
@@ -549,7 +550,7 @@
   DenseMap<const SSAValue *, unsigned> valueIDs;
   unsigned nextValueID = 0;
 };
-}  // end anonymous namespace
+} // end anonymous namespace
 
 void FunctionState::printOperation(const Operation *op) {
   os << "  ";
@@ -632,7 +633,7 @@
 
   void numberValuesInBlock(const BasicBlock *block);
 };
-}  // end anonymous namespace
+} // end anonymous namespace
 
 CFGFunctionPrinter::CFGFunctionPrinter(const CFGFunction *function,
                                        const ModulePrinter &other)
@@ -665,7 +666,8 @@
   printFunctionSignature(getFunction());
   os << " {\n";
 
-  for (auto &block : *function) print(&block);
+  for (auto &block : *function)
+    print(&block);
   os << "}\n\n";
 }
 
@@ -768,7 +770,7 @@
   const MLFunction *function;
   int numSpaces;
 };
-}  // end anonymous namespace
+} // end anonymous namespace
 
 MLFunctionPrinter::MLFunctionPrinter(const MLFunction *function,
                                      const ModulePrinter &other)
@@ -843,9 +845,7 @@
   ModulePrinter(os, state).print(this);
 }
 
-void Attribute::dump() const {
-  print(llvm::errs());
-}
+void Attribute::dump() const { print(llvm::errs()); }
 
 void Type::print(raw_ostream &os) const {
   ModuleState state(getContext());