Home
last modified time | relevance | path

Searched refs:Phi (Results 1 – 25 of 147) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DIVDescriptors.cpp86 static Instruction *lookThroughAnd(PHINode *Phi, Type *&RT, in lookThroughAnd() argument
89 if (!Phi->hasOneUse()) in lookThroughAnd()
90 return Phi; in lookThroughAnd()
93 Instruction *I, *J = cast<Instruction>(Phi->use_begin()->getUser()); in lookThroughAnd()
100 RT = IntegerType::get(Phi->getContext(), Bits); in lookThroughAnd()
101 Visited.insert(Phi); in lookThroughAnd()
106 return Phi; in lookThroughAnd()
189 bool RecurrenceDescriptor::AddReductionVar(PHINode *Phi, RecurrenceKind Kind, in AddReductionVar() argument
195 if (Phi->getNumIncomingValues() != 2) in AddReductionVar()
199 if (Phi->getParent() != TheLoop->getHeader()) in AddReductionVar()
[all …]
DDivergenceAnalysis.cpp153 bool DivergenceAnalysis::updatePHINode(const PHINode &Phi) const { in updatePHINode()
155 if (!Phi.hasConstantOrUndefValue() && isJoinDivergent(*Phi.getParent())) { in updatePHINode()
169 for (size_t i = 0; i < Phi.getNumIncomingValues(); ++i) { in updatePHINode()
170 const auto *InVal = Phi.getIncomingValue(i); in updatePHINode()
171 if (isDivergent(*Phi.getIncomingValue(i)) || in updatePHINode()
172 isTemporalDivergent(*Phi.getParent(), *InVal)) { in updatePHINode()
218 for (auto &Phi : UserBlock->phis()) { in taintLoopLiveOuts() local
219 Worklist.push_back(&Phi); in taintLoopLiveOuts()
254 for (const auto &Phi : Block.phis()) { in pushPHINodes() local
255 if (isDivergent(Phi)) in pushPHINodes()
[all …]
DMemorySSAUpdater.cpp94 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB)); in getPreviousDefRecursive() local
97 auto *Result = tryRemoveTrivialPhi(Phi, PhiOps); in getPreviousDefRecursive()
99 if (Result == Phi && UniqueIncomingAccess && SingleAccess) { in getPreviousDefRecursive()
101 if (Phi) { in getPreviousDefRecursive()
102 assert(Phi->operands().empty() && "Expected empty Phi"); in getPreviousDefRecursive()
103 Phi->replaceAllUsesWith(SingleAccess); in getPreviousDefRecursive()
104 removeMemoryAccess(Phi); in getPreviousDefRecursive()
107 } else if (Result == Phi && !(UniqueIncomingAccess && SingleAccess)) { in getPreviousDefRecursive()
108 if (!Phi) in getPreviousDefRecursive()
109 Phi = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
[all …]
DPhiValues.cpp50 void PhiValues::processPhi(const PHINode *Phi, in processPhi() argument
53 assert(DepthMap.lookup(Phi) == 0); in processPhi()
56 DepthMap[Phi] = RootDepthNumber; in processPhi()
59 TrackedValues.insert(PhiValuesCallbackVH(const_cast<PHINode *>(Phi), this)); in processPhi()
60 for (Value *PhiOp : Phi->incoming_values()) { in processPhi()
72 DepthMap[Phi] = std::min(DepthMap[Phi], OpDepthNumber); in processPhi()
79 Stack.push_back(Phi); in processPhi()
83 if (DepthMap[Phi] == RootDepthNumber) { in processPhi()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIcePhiLoweringImpl.h35 auto *Phi = llvm::dyn_cast<InstPhi>(&I); in prelowerPhis32Bit() local
36 if (Phi->isDeleted()) in prelowerPhis32Bit()
38 Variable *Dest = Phi->getDest(); in prelowerPhis32Bit()
43 auto *PhiLo = InstPhi::create(Func, Phi->getSrcSize(), DestLo); in prelowerPhis32Bit()
44 auto *PhiHi = InstPhi::create(Func, Phi->getSrcSize(), DestHi); in prelowerPhis32Bit()
45 for (SizeT I = 0; I < Phi->getSrcSize(); ++I) { in prelowerPhis32Bit()
46 Operand *Src = Phi->getSrc(I); in prelowerPhis32Bit()
47 CfgNode *Label = Phi->getLabel(I); in prelowerPhis32Bit()
54 Phi->setDeleted(); in prelowerPhis32Bit()
60 auto *PhiElem = InstPhi::create(Func, Phi->getSrcSize(), DestElem); in prelowerPhis32Bit()
[all …]
DIceCfgNode.cpp43 if (auto *Phi = llvm::dyn_cast<InstPhi>(Instr)) { in appendInst() local
48 Phis.push_back(Phi); in appendInst()
61 auto &Phi = llvm::cast<InstPhi>(Inst); in replaceInEdge() local
62 for (SizeT i = 0; i < Phi.getSrcSize(); ++i) { in replaceInEdge()
63 if (Phi.getLabel(i) == Old) { in replaceInEdge()
64 Phi.setLabel(i, New); in replaceInEdge()
117 auto *Phi = llvm::cast<InstPhi>(&Instr); in enforcePhiConsistency() local
124 for (SizeT i = 0; i < Phi->getSrcSize(); ++i) { in enforcePhiConsistency()
125 CfgNode *Label = Phi->getLabel(i); in enforcePhiConsistency()
136 Phi->clearOperandForTarget(Label); in enforcePhiConsistency()
[all …]
/third_party/boost/boost/geometry/srs/projections/impl/
Dpj_phi2.hpp55 T eccnth, Phi, con, dphi; in pj_phi2() local
59 Phi = geometry::math::half_pi<T>() - 2. * atan (ts); in pj_phi2()
62 con = e * sin (Phi); in pj_phi2()
64 (T(1) + con), eccnth)) - Phi; in pj_phi2()
65 Phi += dphi; in pj_phi2()
69 return Phi; in pj_phi2()
/third_party/boost/libs/math/example/
Dautodiff_black_scholes.cpp24 X Phi(X const& x) { in Phi() function
43 return S * Phi(d1) - exp(-r * tau) * K * Phi(d2); in black_scholes_option_price()
45 return exp(-r * tau) * K * Phi(-d2) - S * Phi(-d1); in black_scholes_option_price()
63 double const formula_call_delta = +Phi(+d1); in main()
64 double const formula_put_delta = -Phi(-d1); in main()
67 … static_cast<double>(-S * phi(d1) * sigma / (2 * sqrt(tau)) - r * K * exp(-r * tau) * Phi(+d2)); in main()
69 … static_cast<double>(-S * phi(d1) * sigma / (2 * sqrt(tau)) + r * K * exp(-r * tau) * Phi(-d2)); in main()
70 double const formula_call_rho = static_cast<double>(+K * tau * exp(-r * tau) * Phi(+d2)); in main()
71 double const formula_put_rho = static_cast<double>(-K * tau * exp(-r * tau) * Phi(-d2)); in main()
Dautodiff_black_scholes_brief.cpp18 X Phi(X const& x) { in Phi() function
37 return S * Phi(d1) - exp(-r * tau) * K * Phi(d2); in black_scholes_option_price()
39 return exp(-r * tau) * K * Phi(-d2) - S * Phi(-d1); in black_scholes_option_price()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp90 bool isElse(PHINode *Phi);
92 void eraseIfUnused(PHINode *Phi);
185 bool SIAnnotateControlFlow::isElse(PHINode *Phi) { in isElse() argument
186 BasicBlock *IDom = DT->getNode(Phi->getParent())->getIDom()->getBlock(); in isElse()
187 for (unsigned i = 0, e = Phi->getNumIncomingValues(); i != e; ++i) { in isElse()
188 if (Phi->getIncomingBlock(i) == IDom) { in isElse()
190 if (Phi->getIncomingValue(i) != BoolTrue) in isElse()
194 if (Phi->getIncomingValue(i) != BoolFalse) in isElse()
203 void SIAnnotateControlFlow::eraseIfUnused(PHINode *Phi) { in eraseIfUnused() argument
204 if (RecursivelyDeleteDeadPHINode(Phi)) { in eraseIfUnused()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp360 for (PHINode &Phi : BB->phis()) { in canIfConvertPHINodes()
361 for (Value *V : Phi.incoming_values()) in canIfConvertPHINodes()
492 PHINode *Phi, const InductionDescriptor &ID, in addInductionPhi() argument
494 Inductions[Phi] = ID; in addInductionPhi()
504 Type *PhiTy = Phi->getType(); in addInductionPhi()
505 const DataLayout &DL = Phi->getModule()->getDataLayout(); in addInductionPhi()
526 PrimaryInduction = Phi; in addInductionPhi()
536 AllowedExit.insert(Phi); in addInductionPhi()
537 AllowedExit.insert(Phi->getIncomingValueForBlock(TheLoop->getLoopLatch())); in addInductionPhi()
547 auto isSupportedPhi = [&](PHINode &Phi) -> bool { in setupOuterLoopInductions() argument
[all …]
DVPlanTransforms.cpp62 else if (PHINode *Phi = dyn_cast<PHINode>(Inst)) { in VPInstructionsToVPRecipes() local
63 InductionDescriptor II = Inductions->lookup(Phi); in VPInstructionsToVPRecipes()
66 NewRecipe = new VPWidenIntOrFpInductionRecipe(Phi); in VPInstructionsToVPRecipes()
68 NewRecipe = new VPWidenPHIRecipe(Phi); in VPInstructionsToVPRecipes()
DVPlanHCFGBuilder.cpp94 for (auto *Phi : PhisToFix) { in fixPhiNodes() local
95 assert(IRDef2VPValue.count(Phi) && "Missing VPInstruction for PHINode."); in fixPhiNodes()
96 VPValue *VPVal = IRDef2VPValue[Phi]; in fixPhiNodes()
102 for (Value *Op : Phi->operands()) in fixPhiNodes()
214 if (auto *Phi = dyn_cast<PHINode>(Inst)) { in createVPInstructionsForVPBB() local
220 PhisToFix.push_back(Phi); in createVPInstructionsForVPBB()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp49 for (PHINode &Phi : Invoke->getNormalDest()->phis()) { in fixupPHINodeForNormalDest()
50 int Idx = Phi.getBasicBlockIndex(OrigBlock); in fixupPHINodeForNormalDest()
53 Phi.setIncomingBlock(Idx, MergeBlock); in fixupPHINodeForNormalDest()
81 for (PHINode &Phi : Invoke->getUnwindDest()->phis()) { in fixupPHINodeForUnwindDest()
82 int Idx = Phi.getBasicBlockIndex(OrigBlock); in fixupPHINodeForUnwindDest()
85 auto *V = Phi.getIncomingValue(Idx); in fixupPHINodeForUnwindDest()
86 Phi.setIncomingBlock(Idx, ThenBlock); in fixupPHINodeForUnwindDest()
87 Phi.addIncoming(V, ElseBlock); in fixupPHINodeForUnwindDest()
111 PHINode *Phi = Builder.CreatePHI(OrigInst->getType(), 0); in createRetPHINode() local
116 U->replaceUsesOfWith(OrigInst, Phi); in createRetPHINode()
[all …]
DLoopUnrollAndJam.cpp94 for (auto &Phi : Header->phis()) { in processHeaderPhiOperands() local
95 Value *V = Phi.getIncomingValueForBlock(Latch); in processHeaderPhiOperands()
393 for (PHINode &Phi : ForeBlocksFirst[It]->phis()) { in UnrollAndJamLoop()
394 Value *OldValue = Phi.getIncomingValueForBlock(AftBlocksLast[It]); in UnrollAndJamLoop()
400 assert(Phi.getNumOperands() == 2); in UnrollAndJamLoop()
401 Phi.setIncomingBlock(0, ForeBlocksLast[It - 1]); in UnrollAndJamLoop()
402 Phi.setIncomingValue(0, NewValue); in UnrollAndJamLoop()
403 Phi.removeIncomingValue(1); in UnrollAndJamLoop()
414 for (PHINode &Phi : BB->phis()) { in UnrollAndJamLoop()
415 int I = Phi.getBasicBlockIndex(OldBB); in UnrollAndJamLoop()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DMergeICmps.cpp409 BCECmpChain(const std::vector<BasicBlock *> &Blocks, PHINode &Phi,
436 BCECmpChain::BCECmpChain(const std::vector<BasicBlock *> &Blocks, PHINode &Phi, in BCECmpChain() argument
438 : Phi_(Phi) { in BCECmpChain()
446 BCECmpBlock Comparison = visitCmpBlock(Phi.getIncomingValueForBlock(Block), in BCECmpChain()
447 Block, Phi.getParent(), BaseId); in BCECmpChain()
609 PHINode &Phi, const TargetLibraryInfo &TLI, in mergeComparisons() argument
652 const auto &DL = Phi.getModule()->getDataLayout(); in mergeComparisons()
661 BasicBlock *const PhiBB = Phi.getParent(); in mergeComparisons()
666 Phi.addIncoming(IsEqual, BB); in mergeComparisons()
671 Phi.addIncoming(ConstantInt::getFalse(Context), BB); in mergeComparisons()
[all …]
DIndVarSimplify.cpp706 for (const RewritePhi &Phi : RewritePhiSet) { in rewriteLoopExitValues() local
707 PHINode *PN = Phi.PN; in rewriteLoopExitValues()
708 Value *ExitVal = Phi.Val; in rewriteLoopExitValues()
712 if (ReplaceExitValue == OnlyCheapRepl && !LoopCanBeDel && Phi.HighCost) { in rewriteLoopExitValues()
719 Instruction *Inst = cast<Instruction>(PN->getIncomingValue(Phi.Ith)); in rewriteLoopExitValues()
720 PN->setIncomingValue(Phi.Ith, ExitVal); in rewriteLoopExitValues()
846 for (const RewritePhi &Phi : RewritePhiSet) { in canLoopBeDeleted() local
847 unsigned i = Phi.Ith; in canLoopBeDeleted()
848 if (Phi.PN == P && (Phi.PN)->getIncomingValue(i) == Incoming) { in canLoopBeDeleted()
2039 PHINode *Phi = dyn_cast<PHINode>(IncI->getOperand(0)); in getLoopPhiForCounter() local
[all …]
DPartiallyInlineLibCalls.cpp59 PHINode *Phi = Builder.CreatePHI(Ty, 2); in optimizeSQRT() local
60 Call->replaceAllUsesWith(Phi); in optimizeSQRT()
83 Phi->addIncoming(Call, &CurrBB); in optimizeSQRT()
84 Phi->addIncoming(LibCall, LibCallBB); in optimizeSQRT()
DStructurizeCFG.cpp587 for (PHINode &Phi : To->phis()) { in delPhiValues()
588 while (Phi.getBasicBlockIndex(From) != -1) { in delPhiValues()
589 Value *Deleted = Phi.removeIncomingValue(From, false); in delPhiValues()
590 Map[&Phi].push_back(std::make_pair(From, Deleted)); in delPhiValues()
597 for (PHINode &Phi : To->phis()) { in addPhiValues()
598 Value *Undef = UndefValue::get(Phi.getType()); in addPhiValues()
599 Phi.addIncoming(Undef, From); in addPhiValues()
617 PHINode *Phi = PI.first; in setPhiValues() local
618 Value *Undef = UndefValue::get(Phi->getType()); in setPhiValues()
619 Updater.Initialize(Phi->getType(), ""); in setPhiValues()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp107 PHINode &Phi = cast<PHINode>(I); in foldGuardedRotateToFunnelShift() local
108 Value *P0 = Phi.getOperand(0), *P1 = Phi.getOperand(1); in foldGuardedRotateToFunnelShift()
122 BasicBlock *GuardBB = Phi.getIncomingBlock(RotSrc == P1); in foldGuardedRotateToFunnelShift()
123 BasicBlock *RotBB = Phi.getIncomingBlock(RotSrc != P1); in foldGuardedRotateToFunnelShift()
126 BasicBlock *PhiBB = Phi.getParent(); in foldGuardedRotateToFunnelShift()
149 Function *F = Intrinsic::getDeclaration(Phi.getModule(), IID, Phi.getType()); in foldGuardedRotateToFunnelShift()
150 Phi.replaceAllUsesWith(Builder.CreateCall(F, {RotSrc, RotSrc, RotAmt})); in foldGuardedRotateToFunnelShift()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DIVDescriptors.h170 static bool AddReductionVar(PHINode *Phi, RecurrenceKind Kind, Loop *TheLoop,
181 static bool isReductionPHI(PHINode *Phi, Loop *TheLoop,
195 isFirstOrderRecurrence(PHINode *Phi, Loop *TheLoop,
294 isInductionPHI(PHINode *Phi, const Loop *L, ScalarEvolution *SE,
301 static bool isFPInductionPHI(PHINode *Phi, const Loop *L, ScalarEvolution *SE,
310 static bool isInductionPHI(PHINode *Phi, const Loop *L,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DModuloSchedule.cpp36 static void getPhiRegs(MachineInstr &Phi, MachineBasicBlock *Loop, in getPhiRegs() argument
38 assert(Phi.isPHI() && "Expecting a Phi."); in getPhiRegs()
42 for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2) in getPhiRegs()
43 if (Phi.getOperand(i + 1).getMBB() != Loop) in getPhiRegs()
44 InitVal = Phi.getOperand(i).getReg(); in getPhiRegs()
46 LoopVal = Phi.getOperand(i).getReg(); in getPhiRegs()
52 static unsigned getInitPhiReg(MachineInstr &Phi, MachineBasicBlock *LoopBB) { in getInitPhiReg() argument
53 for (unsigned i = 1, e = Phi.getNumOperands(); i != e; i += 2) in getInitPhiReg()
54 if (Phi.getOperand(i + 1).getMBB() != LoopBB) in getInitPhiReg()
55 return Phi.getOperand(i).getReg(); in getInitPhiReg()
[all …]
/third_party/boost/boost/geometry/srs/projections/proj/
Daea.hpp99 T Phi, sinpi, cospi, con, com, dphi; in phi1_() local
101 Phi = asin (.5 * qs); in phi1_()
103 return( Phi ); in phi1_()
106 sinpi = sin (Phi); in phi1_()
107 cospi = cos (Phi); in phi1_()
113 Phi += dphi; in phi1_()
115 return( i ? Phi : HUGE_VAL ); in phi1_()
/third_party/skia/third_party/externals/icu/source/data/region/
Dvi.txt7 002{"Châu Phi"}
11 011{"Tây Phi"}
13 014{"Đông Phi"}
14 015{"Bắc Phi"}
15 017{"Trung Phi"}
16 018{"Miền Nam Châu Phi"}
35 202{"Châu Phi hạ Sahara"}
78 CF{"Cộng hòa Trung Phi"}
296 ZA{"Nam Phi"}
/third_party/flutter/skia/third_party/externals/icu/source/data/region/
Dvi.txt6 002{"Châu Phi"}
10 011{"Tây Phi"}
12 014{"Đông Phi"}
13 015{"Bắc Phi"}
14 017{"Trung Phi"}
15 018{"Miền Nam Châu Phi"}
34 202{"Châu Phi hạ Sahara"}
77 CF{"Cộng hòa Trung Phi"}
293 ZA{"Nam Phi"}

123456