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:
parent
7d4933eff2
commit
59bc220605
@ -998,9 +998,9 @@ struct InformationCache {
|
|||||||
const Function &F = *From.getFunction();
|
const Function &F = *From.getFunction();
|
||||||
bool Result = true;
|
bool Result = true;
|
||||||
if (From.getFunction() == To.getFunction())
|
if (From.getFunction() == To.getFunction())
|
||||||
Result = isPotentiallyReachable(
|
Result = isPotentiallyReachable(&From, &To, nullptr,
|
||||||
&From, &To, nullptr, AG.getAnalysis<DominatorTreeAnalysis>(F),
|
AG.getAnalysis<DominatorTreeAnalysis>(F),
|
||||||
AG.getAnalysis<LoopAnalysis>(F));
|
AG.getAnalysis<LoopAnalysis>(F));
|
||||||
PotentiallyReachableMap.insert(std::make_pair(KeyPair, Result));
|
PotentiallyReachableMap.insert(std::make_pair(KeyPair, Result));
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
@ -880,8 +880,7 @@ bool Attributor::isAssumedDead(const IRPosition &IRP,
|
|||||||
|
|
||||||
bool Attributor::checkForAllUses(function_ref<bool(const Use &, bool &)> Pred,
|
bool Attributor::checkForAllUses(function_ref<bool(const Use &, bool &)> Pred,
|
||||||
const AbstractAttribute &QueryingAA,
|
const AbstractAttribute &QueryingAA,
|
||||||
const Value &V,
|
const Value &V, bool CheckBBLivenessOnly,
|
||||||
bool CheckBBLivenessOnly,
|
|
||||||
DepClassTy LivenessDepClass) {
|
DepClassTy LivenessDepClass) {
|
||||||
|
|
||||||
// Check the trivial case first as it catches void values.
|
// Check the trivial case first as it catches void values.
|
||||||
@ -2583,8 +2582,9 @@ void AbstractAttribute::printWithDeps(raw_ostream &OS) const {
|
|||||||
OS << '\n';
|
OS << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
raw_ostream &llvm::operator<<(raw_ostream &OS, const AAPointerInfo::Access &Acc) {
|
raw_ostream &llvm::operator<<(raw_ostream &OS,
|
||||||
OS << " ["<< Acc.getKind() << "] " << *Acc.getRemoteInst();
|
const AAPointerInfo::Access &Acc) {
|
||||||
|
OS << " [" << Acc.getKind() << "] " << *Acc.getRemoteInst();
|
||||||
if (Acc.getLocalInst() != Acc.getRemoteInst())
|
if (Acc.getLocalInst() != Acc.getRemoteInst())
|
||||||
OS << " via " << *Acc.getLocalInst() << "\n";
|
OS << " via " << *Acc.getLocalInst() << "\n";
|
||||||
return OS;
|
return OS;
|
||||||
|
@ -9163,9 +9163,9 @@ struct AACallEdgesFunction : public AACallEdges {
|
|||||||
|
|
||||||
// Process any value that we might call.
|
// Process any value that we might call.
|
||||||
auto ProcessCalledOperand = [&](Value *V, Instruction *Ctx) {
|
auto ProcessCalledOperand = [&](Value *V, Instruction *Ctx) {
|
||||||
if (!genericValueTraversal<bool>(
|
if (!genericValueTraversal<bool>(A, IRPosition::value(*V), *this,
|
||||||
A, IRPosition::value(*V), *this, HasUnknownCallee, VisitValue,
|
HasUnknownCallee, VisitValue, nullptr,
|
||||||
nullptr, false)) {
|
false)) {
|
||||||
// If we haven't gone through all values, assume that there are unknown
|
// If we haven't gone through all values, assume that there are unknown
|
||||||
// callees.
|
// callees.
|
||||||
HasUnknownCallee = true;
|
HasUnknownCallee = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user