1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[Attributor][NFC] Clang format

This commit is contained in:
Johannes Doerfert 2021-07-21 22:01:02 -05:00
parent 7d4933eff2
commit 59bc220605
3 changed files with 10 additions and 10 deletions

View 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;
}

View 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;

View 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;