[Attributor][NFC] Clang format
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 22 Jul 2021 03:01:02 +0000 (22:01 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 22 Jul 2021 03:51:05 +0000 (22:51 -0500)
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp

index 2d0eab8..234a384 100644 (file)
@@ -998,9 +998,9 @@ struct InformationCache {
     const Function &F = *From.getFunction();
     bool Result = true;
     if (From.getFunction() == To.getFunction())
-      Result = isPotentiallyReachable(
-        &From, &To, nullptr, AG.getAnalysis<DominatorTreeAnalysis>(F),
-        AG.getAnalysis<LoopAnalysis>(F));
+      Result = isPotentiallyReachable(&From, &To, nullptr,
+                                      AG.getAnalysis<DominatorTreeAnalysis>(F),
+                                      AG.getAnalysis<LoopAnalysis>(F));
     PotentiallyReachableMap.insert(std::make_pair(KeyPair, Result));
     return Result;
   }
index f91d56e..87c7721 100644 (file)
@@ -880,8 +880,7 @@ bool Attributor::isAssumedDead(const IRPosition &IRP,
 
 bool Attributor::checkForAllUses(function_ref<bool(const Use &, bool &)> Pred,
                                  const AbstractAttribute &QueryingAA,
-                                 const Value &V,
-                                 bool CheckBBLivenessOnly,
+                                 const Value &V, bool CheckBBLivenessOnly,
                                  DepClassTy LivenessDepClass) {
 
   // Check the trivial case first as it catches void values.
@@ -2583,8 +2582,9 @@ void AbstractAttribute::printWithDeps(raw_ostream &OS) const {
   OS << '\n';
 }
 
-raw_ostream &llvm::operator<<(raw_ostream &OS, const AAPointerInfo::Access &Acc) {
-  OS << " ["<< Acc.getKind() << "] " << *Acc.getRemoteInst();
+raw_ostream &llvm::operator<<(raw_ostream &OS,
+                              const AAPointerInfo::Access &Acc) {
+  OS << " [" << Acc.getKind() << "] " << *Acc.getRemoteInst();
   if (Acc.getLocalInst() != Acc.getRemoteInst())
     OS << " via " << *Acc.getLocalInst() << "\n";
   return OS;
index 0c4258a..6e7694a 100644 (file)
@@ -9163,9 +9163,9 @@ struct AACallEdgesFunction : public AACallEdges {
 
     // Process any value that we might call.
     auto ProcessCalledOperand = [&](Value *V, Instruction *Ctx) {
-      if (!genericValueTraversal<bool>(
-              A, IRPosition::value(*V), *this, HasUnknownCallee, VisitValue,
-              nullptr, false)) {
+      if (!genericValueTraversal<bool>(A, IRPosition::value(*V), *this,
+                                       HasUnknownCallee, VisitValue, nullptr,
+                                       false)) {
         // If we haven't gone through all values, assume that there are unknown
         // callees.
         HasUnknownCallee = true;