/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineObjC.cpp | 23 ExplodedNode *Pred, in VisitLvalObjCIvarRefExpr() argument 25 ProgramStateRef state = Pred->getState(); in VisitLvalObjCIvarRefExpr() 26 const LocationContext *LCtx = Pred->getLocationContext(); in VisitLvalObjCIvarRefExpr() 31 StmtNodeBuilder Bldr(Pred, dstIvar, *currBldrCtx); in VisitLvalObjCIvarRefExpr() 32 Bldr.generateNode(Ex, Pred, state->BindExpr(Ex, LCtx, location)); in VisitLvalObjCIvarRefExpr() 40 ExplodedNode *Pred, in VisitObjCAtSynchronizedStmt() argument 42 getCheckerManager().runCheckersForPreStmt(Dst, Pred, S, *this); in VisitObjCAtSynchronizedStmt() 46 ExplodedNode *Pred, in VisitObjCForCollectionStmt() argument 75 ProgramStateRef state = Pred->getState(); in VisitObjCForCollectionStmt() 81 elementV = state->getLValue(elemD, Pred->getLocationContext()); in VisitObjCForCollectionStmt() [all …]
|
D | ExprEngine.cpp | 289 void ExprEngine::processCFGElement(const CFGElement E, ExplodedNode *Pred, in processCFGElement() argument 291 PrettyStackTraceLocationContext CrashInfo(Pred->getLocationContext()); in processCFGElement() 297 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement() 300 ProcessInitializer(E.castAs<CFGInitializer>().getInitializer(), Pred); in processCFGElement() 304 Pred); in processCFGElement() 311 ProcessImplicitDtor(E.castAs<CFGImplicitDtor>(), Pred); in processCFGElement() 318 const ExplodedNode *Pred, in shouldRemoveDeadBindings() argument 326 if (Pred->getLocation().getAs<BlockEntrance>()) in shouldRemoveDeadBindings() 343 void ExprEngine::removeDead(ExplodedNode *Pred, ExplodedNodeSet &Out, in removeDead() argument 359 ProgramStateRef CleanedState = Pred->getState(); in removeDead() [all …]
|
D | CoreEngine.cpp | 242 void CoreEngine::dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc, in dispatchWorkItem() argument 247 HandleBlockEdge(Loc.castAs<BlockEdge>(), Pred); in dispatchWorkItem() 251 HandleBlockEntrance(Loc.castAs<BlockEntrance>(), Pred); in dispatchWorkItem() 259 HandleCallEnter(Loc.castAs<CallEnter>(), Pred); in dispatchWorkItem() 264 SubEng.processCallExit(Pred); in dispatchWorkItem() 268 assert(Pred->hasSinglePred() && in dispatchWorkItem() 270 ExplodedNode *PNode = Pred->getFirstPred(); in dispatchWorkItem() 271 dispatchWorkItem(Pred, PNode->getLocation(), WU); in dispatchWorkItem() 279 HandlePostStmt(WU.getBlock(), WU.getIndex(), Pred); in dispatchWorkItem() 296 void CoreEngine::HandleBlockEdge(const BlockEdge &L, ExplodedNode *Pred) { in HandleBlockEdge() argument [all …]
|
D | ExprEngineCXX.cpp | 26 ExplodedNode *Pred, in CreateCXXTemporaryObject() argument 28 StmtNodeBuilder Bldr(Pred, Dst, *currBldrCtx); in CreateCXXTemporaryObject() 30 ProgramStateRef state = Pred->getState(); in CreateCXXTemporaryObject() 31 const LocationContext *LCtx = Pred->getLocationContext(); in CreateCXXTemporaryObject() 34 Bldr.generateNode(ME, Pred, state); in CreateCXXTemporaryObject() 39 void ExprEngine::performTrivialCopy(NodeBuilder &Bldr, ExplodedNode *Pred, in performTrivialCopy() argument 56 const LocationContext *LCtx = Pred->getLocationContext(); in performTrivialCopy() 59 Bldr.takeNodes(Pred); in performTrivialCopy() 66 V = Pred->getState()->getSVal(*L); in performTrivialCopy() 71 evalBind(Dst, CallExpr, Pred, ThisVal, V, true); in performTrivialCopy() [all …]
|
D | ExprEngineC.cpp | 23 ExplodedNode *Pred, in VisitBinaryOperator() argument 32 getCheckerManager().runCheckersForPreStmt(CheckedSet, Pred, B, *this); in VisitBinaryOperator() 187 void ExprEngine::VisitBlockExpr(const BlockExpr *BE, ExplodedNode *Pred, in VisitBlockExpr() argument 195 Pred->getLocationContext(), in VisitBlockExpr() 198 ProgramStateRef State = Pred->getState(); in VisitBlockExpr() 230 originalV = State->getSVal(copyExpr, Pred->getLocationContext()); in VisitBlockExpr() 240 StmtNodeBuilder Bldr(Pred, Tmp, *currBldrCtx); in VisitBlockExpr() 241 Bldr.generateNode(BE, Pred, in VisitBlockExpr() 242 State->BindExpr(BE, Pred->getLocationContext(), V), in VisitBlockExpr() 250 ExplodedNode *Pred, ExplodedNodeSet &Dst) { in VisitCast() argument [all …]
|
D | ExprEngineCallAndReturn.cpp | 41 ExplodedNode *Pred) { in processCallEnter() argument 57 ProgramStateRef state = Pred->getState(); in processCallEnter() 63 Node->addPredecessor(Pred, G); in processCallEnter() 163 ExplodedNode *Pred, in removeDeadOnEndOfFunction() argument 168 std::tie(LastSt, Blk) = getLastStmt(Pred); in removeDeadOnEndOfFunction() 170 Dst.Add(Pred); in removeDeadOnEndOfFunction() 180 const LocationContext *LCtx = Pred->getLocationContext(); in removeDeadOnEndOfFunction() 181 removeDead(Pred, Dst, dyn_cast<ReturnStmt>(LastSt), LCtx, in removeDeadOnEndOfFunction() 405 NodeBuilder &Bldr, ExplodedNode *Pred, in REGISTER_TRAIT_WITH_PROGRAMSTATE() 409 const LocationContext *CurLC = Pred->getLocationContext(); in REGISTER_TRAIT_WITH_PROGRAMSTATE() [all …]
|
D | CheckerManager.cpp | 153 NodeBuilder &Bldr, ExplodedNode *Pred) { in runChecker() 158 Pred->getLocationContext(), checkFn.Checker); in runChecker() 159 CheckerContext C(Bldr, Eng, Pred, L, WasInlined); in runChecker() 198 NodeBuilder &Bldr, ExplodedNode *Pred) { in runChecker() 213 CheckerContext C(Bldr, Eng, Pred, L, WasInlined); in runChecker() 215 checkFn(*Msg.cloneWithState<ObjCMethodCall>(Pred->getState()), C); in runChecker() 265 NodeBuilder &Bldr, ExplodedNode *Pred) { in runChecker() 267 CheckerContext C(Bldr, Eng, Pred, L, WasInlined); in runChecker() 269 checkFn(*Call.cloneWithState(Pred->getState()), C); in runChecker() 309 NodeBuilder &Bldr, ExplodedNode *Pred) { in runChecker() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 194 void processCFGElement(const CFGElement E, ExplodedNode *Pred, 197 void ProcessStmt(const CFGStmt S, ExplodedNode *Pred); 199 void ProcessInitializer(const CFGInitializer I, ExplodedNode *Pred); 201 void ProcessImplicitDtor(const CFGImplicitDtor D, ExplodedNode *Pred); 203 void ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred); 206 ExplodedNode *Pred, ExplodedNodeSet &Dst); 208 ExplodedNode *Pred, ExplodedNodeSet &Dst); 210 ExplodedNode *Pred, ExplodedNodeSet &Dst); 212 ExplodedNode *Pred, ExplodedNodeSet &Dst); 214 ExplodedNode *Pred, ExplodedNodeSet &Dst); [all …]
|
D | CoreEngine.h | 89 ExplodedNode *Pred); 91 void HandleBlockEdge(const BlockEdge &E, ExplodedNode *Pred); 92 void HandleBlockEntrance(const BlockEntrance &E, ExplodedNode *Pred); 93 void HandleBlockExit(const CFGBlock *B, ExplodedNode *Pred); 95 void HandleCallEnter(const CallEnter &CE, ExplodedNode *Pred); 97 void HandlePostStmt(const CFGBlock *B, unsigned StmtIdx, ExplodedNode *Pred); 100 ExplodedNode *Pred); 102 const CFGBlock *B, ExplodedNode *Pred); 106 ExplodedNode *Pred); 135 void dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc, [all …]
|
D | CheckerContext.h | 73 ExplodedNode *Pred; variable 93 Pred(pred), in Eng() 98 assert(Pred->getState() && in Eng() 117 ExplodedNode *getPredecessor() { return Pred; } in getPredecessor() 118 const ProgramStateRef &getState() const { return Pred->getState(); } in getState() 139 return Pred->getLocationContext(); in getLocationContext() 143 return Pred->getStackFrame(); in getStackFrame() 174 return Pred->getLocationContext()->getAnalysisDeclContext(); in getCurrentAnalysisDeclContext() 221 ExplodedNode *Pred, 223 return addTransitionImpl(State, false, Pred, Tag); [all …]
|
D | SubEngine.h | 56 virtual void processCFGElement(const CFGElement E, ExplodedNode* Pred, 64 ExplodedNode *Pred) = 0; 70 ExplodedNode *Pred, 80 ExplodedNode *Pred, 89 ExplodedNode *Pred, 105 ExplodedNode *Pred, 112 ExplodedNode *Pred) = 0; 116 ExplodedNode *Pred) = 0; 119 virtual void processCallExit(ExplodedNode *Pred) = 0;
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringARM32.h | 335 CondARM32::Cond Pred = CondARM32::AL) { 336 Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred); 339 CondARM32::Cond Pred = CondARM32::AL) { 341 Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred, SetFlags); 347 CondARM32::Cond Pred = CondARM32::AL) { 348 Context.insert<InstARM32Adc>(Dest, Src0, Src1, Pred); 351 CondARM32::Cond Pred = CondARM32::AL) { 352 Context.insert<InstARM32And>(Dest, Src0, Src1, Pred); 355 CondARM32::Cond Pred = CondARM32::AL) { 356 Context.insert<InstARM32Asr>(Dest, Src0, Src1, Pred); [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | BlockFrequencyImpl.h | 163 BlockT *Pred = *PI; in getSingleBlockPred() local 169 return Pred; in getSingleBlockPred() 183 if(BlockT *Pred = getSingleBlockPred(BB)) { in doBlock() local 184 if (BlocksInLoop.count(Pred)) in doBlock() 185 setBlockFreq(BB, getEdgeFreq(Pred, BB)); in doBlock() 197 BlockT *Pred = *PI; in doBlock() local 199 if (isReachable(Pred) && isBackedge(Pred, BB)) { in doBlock() 201 } else if (BlocksInLoop.count(Pred)) { in doBlock() 202 incBlockFreq(BB, getEdgeFreq(Pred, BB)); in doBlock() 241 BlockT *Pred = *PI; in doLoop() local [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 117 BlkT *Pred = Preds[p]; in BuildBlockList() local 120 BBMap.FindAndConstruct(Pred); in BuildBlockList() 127 ValT PredVal = AvailableVals->lookup(Pred); in BuildBlockList() 128 BBInfo *PredInfo = new (Allocator) BBInfo(Pred, PredVal); in BuildBlockList() 230 BBInfo *Pred = Info->Preds[p]; in FindDominators() local 233 if (Pred->BlkNum == 0) { in FindDominators() 234 Pred->AvailableVal = Traits::GetUndefVal(Pred->BB, Updater); in FindDominators() 235 (*AvailableVals)[Pred->BB] = Pred->AvailableVal; in FindDominators() 236 Pred->DefBB = Pred; in FindDominators() 237 Pred->BlkNum = PseudoEntry->BlkNum; in FindDominators() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 128 BlkT *Pred = Preds[p]; in BuildBlockList() local 131 BBMap.FindAndConstruct(Pred); in BuildBlockList() 138 ValT PredVal = AvailableVals->lookup(Pred); in BuildBlockList() 139 BBInfo *PredInfo = new (Allocator) BBInfo(Pred, PredVal); in BuildBlockList() 241 BBInfo *Pred = Info->Preds[p]; in FindDominators() local 244 if (Pred->BlkNum == 0) { in FindDominators() 245 Pred->AvailableVal = Traits::GetUndefVal(Pred->BB, Updater); in FindDominators() 246 (*AvailableVals)[Pred->BB] = Pred->AvailableVal; in FindDominators() 247 Pred->DefBB = Pred; in FindDominators() 248 Pred->BlkNum = PseudoEntry->BlkNum; in FindDominators() [all …]
|
/external/libchrome/base/containers/ |
D | hash_tables.h | 47 class Pred = std::equal_to<Key>, 49 using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>; 55 class Pred = std::equal_to<Key>, 57 using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>; 62 class Pred = std::equal_to<Key>, 64 using hash_multiset = std::unordered_multiset<Key, Hash, Pred, Alloc>; 69 class Pred = std::equal_to<Key>, 71 using hash_set = std::unordered_set<Key, Hash, Pred, Alloc>;
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTDC.cpp | 125 auto Pred = I.getPredicate(); in convertFCmp() local 144 if ((Pred & CmpInst::FCMP_OGE) != CmpInst::FCMP_OGE && in convertFCmp() 145 (Pred & CmpInst::FCMP_OGE) != 0) in convertFCmp() 150 if ((Pred & CmpInst::FCMP_OLE) != CmpInst::FCMP_OLE && in convertFCmp() 151 (Pred & CmpInst::FCMP_OLE) != 0) in convertFCmp() 205 if (Pred & CmpInst::FCMP_OEQ) in convertFCmp() 207 if (Pred & CmpInst::FCMP_OGT) in convertFCmp() 209 if (Pred & CmpInst::FCMP_OLT) in convertFCmp() 211 if (Pred & CmpInst::FCMP_UNO) in convertFCmp() 235 auto Pred = I.getPredicate(); in convertICmp() local [all …]
|
/external/v8/src/compiler/ |
D | node-cache.cc | 24 template <typename Key, typename Hash, typename Pred> 25 struct NodeCache<Key, Hash, Pred>::Entry { 31 template <typename Key, typename Hash, typename Pred> 32 bool NodeCache<Key, Hash, Pred>::Resize(Zone* zone) { in Resize() 64 template <typename Key, typename Hash, typename Pred> 65 Node** NodeCache<Key, Hash, Pred>::Find(Zone* zone, Key key) { in Find() 102 template <typename Key, typename Hash, typename Pred> 103 void NodeCache<Key, Hash, Pred>::GetCachedNodes(ZoneVector<Node*>* nodes) { in GetCachedNodes()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 91 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, in isSameCompare() argument 98 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare() 100 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare() 369 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS, in ThreadCmpOverSelect() argument 379 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverSelect() 389 Value *TCmp = SimplifyCmpInst(Pred, TV, RHS, Q, MaxRecurse); in ThreadCmpOverSelect() 397 if (!isSameCompare(Cond, Pred, TV, RHS)) in ThreadCmpOverSelect() 403 Value *FCmp = SimplifyCmpInst(Pred, FV, RHS, Q, MaxRecurse); in ThreadCmpOverSelect() 411 if (!isSameCompare(Cond, Pred, FV, RHS)) in ThreadCmpOverSelect() 493 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, in ThreadCmpOverPHI() argument [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopSimplifyCFG.cpp | 52 BasicBlock *Pred = Succ->getSinglePredecessor(); in simplifyLoopCFG() local 53 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in simplifyLoopCFG() 57 if (L.getHeader() == Pred) in simplifyLoopCFG() 59 LI.removeBlock(Pred); in simplifyLoopCFG()
|
/external/libbrillo/brillo/ |
D | value_conversion.h | 65 template <typename T, typename Pred, typename Alloc> 67 std::map<std::string, T, Pred, Alloc>* out_value); 85 template <typename T, typename Pred, typename Alloc> 87 std::map<std::string, T, Pred, Alloc>* out_value) { in FromValue() argument 114 template <typename T, typename Pred, typename Alloc> 116 const std::map<std::string, T, Pred, Alloc>& dictionary); 126 template <typename T, typename Pred, typename Alloc> 128 const std::map<std::string, T, Pred, Alloc>& dictionary) { in ToValue() argument
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 404 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS, in ThreadCmpOverSelect() argument 415 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverSelect() 422 if (Value *TCmp = SimplifyCmpInst(Pred, SI->getTrueValue(), RHS, TD, DT, in ThreadCmpOverSelect() 425 if (Value *FCmp = SimplifyCmpInst(Pred, SI->getFalseValue(), RHS, TD, DT, in ThreadCmpOverSelect() 504 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, in ThreadCmpOverPHI() argument 514 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverPHI() 529 Value *V = SimplifyCmpInst(Pred, Incoming, RHS, TD, DT, MaxRecurse); in ThreadCmpOverPHI() 1402 static Value *ExtractEquivalentCondition(Value *V, CmpInst::Predicate Pred, in ExtractEquivalentCondition() argument 1411 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition() 1413 if (Pred == CmpInst::getSwappedPredicate(Cmp->getPredicate()) && in ExtractEquivalentCondition() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineBlockPlacement.cpp | 503 for (MachineBasicBlock *Pred : Succ->predecessors()) { in shouldPredBlockBeOutlined() 505 if (Pred == Succ || (BlockFilter && !BlockFilter->count(Pred)) || in shouldPredBlockBeOutlined() 506 BlockToChain[Pred] == &Chain) in shouldPredBlockBeOutlined() 509 if (Pred->pred_size() > 1 || *Pred->pred_begin() != BB) in shouldPredBlockBeOutlined() 512 if (Pred->size() < OutlineOptionalThreshold) in shouldPredBlockBeOutlined() 624 for (MachineBasicBlock *Pred : Succ->predecessors()) { in hasBetterLayoutPredecessor() 625 if (Pred == Succ || BlockToChain[Pred] == &SuccChain || in hasBetterLayoutPredecessor() 626 (BlockFilter && !BlockFilter->count(Pred)) || in hasBetterLayoutPredecessor() 627 BlockToChain[Pred] == &Chain) in hasBetterLayoutPredecessor() 643 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 129 static bool isSignBitCheck(ICmpInst::Predicate Pred, ConstantInt *RHS, in isSignBitCheck() argument 131 switch (Pred) { in isSignBitCheck() 157 static bool isSignTest(ICmpInst::Predicate &Pred, const ConstantInt *RHS) { in isSignTest() argument 158 if (!ICmpInst::isSigned(Pred)) in isSignTest() 162 return ICmpInst::isRelational(Pred); in isSignTest() 165 if (Pred == ICmpInst::ICMP_SLT) { in isSignTest() 166 Pred = ICmpInst::ICMP_SLE; in isSignTest() 170 if (Pred == ICmpInst::ICMP_SGT) { in isSignTest() 171 Pred = ICmpInst::ICMP_SGE; in isSignTest() 1139 ICmpInst::Predicate Pred) { in FoldICmpAddOpCst() argument [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | ArrayRef.h | 193 template <class PredicateT> ArrayRef<T> drop_while(PredicateT Pred) const { in drop_while() argument 194 return ArrayRef<T>(find_if_not(*this, Pred), end()); in drop_while() 199 template <class PredicateT> ArrayRef<T> drop_until(PredicateT Pred) const { in drop_until() argument 200 return ArrayRef<T>(find_if(*this, Pred), end()); in drop_until() 219 template <class PredicateT> ArrayRef<T> take_while(PredicateT Pred) const { in take_while() argument 220 return ArrayRef<T>(begin(), find_if_not(*this, Pred)); in take_while() 225 template <class PredicateT> ArrayRef<T> take_until(PredicateT Pred) const { in take_until() argument 226 return ArrayRef<T>(begin(), find_if(*this, Pred)); in take_until() 368 MutableArrayRef<T> drop_while(PredicateT Pred) const { in drop_while() argument 369 return MutableArrayRef<T>(find_if_not(*this, Pred), end()); in drop_while() [all …]
|