[Attributor][NFC] Clang format the Attributor
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 17 Dec 2019 03:03:18 +0000 (21:03 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 17 Dec 2019 03:03:18 +0000 (21:03 -0600)
The Attributor is always kept formatted so diffs are cleaner.

Sometime we get out of sync for various reasons so we need to format the
file once in a while.

llvm/lib/Transforms/IPO/Attributor.cpp

index 11f2f5c..846af42 100644 (file)
@@ -2098,9 +2098,7 @@ struct AAReachabilityImpl : AAReachability {
   }
 
   /// See AbstractAttribute::initialize(...).
-  void initialize(Attributor &A) override {
-    indicatePessimisticFixpoint();
-  }
+  void initialize(Attributor &A) override { indicatePessimisticFixpoint(); }
 
   /// See AbstractAttribute::updateImpl(...).
   ChangeStatus updateImpl(Attributor &A) override {
@@ -2579,12 +2577,14 @@ struct AAIsDeadFunction : public AAIsDead {
               CI->takeName(II);
               replaceAllInstructionUsesWith(*II, *CI);
 
-              // If this is a nounwind + mayreturn invoke we only remove the unwind edge.
-              // This is done by moving the invoke into a new and dead block and connecting
-              // the normal destination of the invoke with a branch that follows the call
-              // replacement we created above.
+              // If this is a nounwind + mayreturn invoke we only remove the
+              // unwind edge. This is done by moving the invoke into a new and
+              // dead block and connecting the normal destination of the invoke
+              // with a branch that follows the call replacement we created
+              // above.
               if (MayReturn) {
-                BasicBlock *NewDeadBB = SplitBlock(BB, II, nullptr, nullptr, nullptr, ".i2c");
+                BasicBlock *NewDeadBB =
+                    SplitBlock(BB, II, nullptr, nullptr, nullptr, ".i2c");
                 assert(isa<BranchInst>(BB->getTerminator()) &&
                        BB->getTerminator()->getNumSuccessors() == 1 &&
                        BB->getTerminator()->getSuccessor(0) == NewDeadBB);
@@ -5717,9 +5717,9 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const IRPosition &Pos) {
 }
 
 template <typename base_ty, base_ty BestState, base_ty WorstState>
-raw_ostream &llvm::
-operator<<(raw_ostream &OS,
-           const IntegerStateBase<base_ty, BestState, WorstState> &S) {
+raw_ostream &
+llvm::operator<<(raw_ostream &OS,
+                 const IntegerStateBase<base_ty, BestState, WorstState> &S) {
   return OS << "(" << S.getKnown() << "-" << S.getAssumed() << ")"
             << static_cast<const AbstractState &>(S);
 }