From: Johannes Doerfert Date: Tue, 17 Dec 2019 03:03:18 +0000 (-0600) Subject: [Attributor][NFC] Clang format the Attributor X-Git-Tag: llvmorg-11-init~1986 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bc3336ac168f52b6a6e3297a9cc3eb579f047f4;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 11f2f5c..846af42 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(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 -raw_ostream &llvm:: -operator<<(raw_ostream &OS, - const IntegerStateBase &S) { +raw_ostream & +llvm::operator<<(raw_ostream &OS, + const IntegerStateBase &S) { return OS << "(" << S.getKnown() << "-" << S.getAssumed() << ")" << static_cast(S); }