[llvm] 0bc3336 - [Attributor][NFC] Clang format the Attributor

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 19:06:05 PST 2019


Author: Johannes Doerfert
Date: 2019-12-16T21:03:18-06:00
New Revision: 0bc3336ac168f52b6a6e3297a9cc3eb579f047f4

URL: https://github.com/llvm/llvm-project/commit/0bc3336ac168f52b6a6e3297a9cc3eb579f047f4
DIFF: https://github.com/llvm/llvm-project/commit/0bc3336ac168f52b6a6e3297a9cc3eb579f047f4.diff

LOG: [Attributor][NFC] Clang format the Attributor

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.

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/Attributor.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 11f2f5c2eb24..846af427ffa7 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -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);
 }


        


More information about the llvm-commits mailing list