Searched defs:Pred (Results 76 - 100 of 113) sorted by relevance

12345

/external/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp365 BBPredicates &Pred = Predicates[BB]; local
391 !Pred.count(Other) && !Pred.count(*PI)) {
393 Pred[Other] = BoolFalse;
394 Pred[*PI] = BoolTrue;
398 Pred[*PI] = buildCondition(Term, i, false);
418 Pred[Entry] = BoolTrue;
H A DScalarReplAggregates.cpp1210 BasicBlock *Pred = PN->getIncomingBlock(i); local
1215 if (Pred->getTerminator()->mayHaveSideEffects())
1220 if (Pred->getTerminator() == InVal)
1224 if (Pred->getTerminator()->getNumSuccessors() == 1)
1230 isSafeToLoadUnconditionally(InVal, Pred->getTerminator(), MaxAlign, DL))
1385 BasicBlock *Pred = PN->getIncomingBlock(i); local
1386 LoadInst *&Load = InsertedLoads[Pred];
1389 PN->getName() + "." + Pred->getName(),
1390 Pred->getTerminator());
1395 NewPN->addIncoming(Load, Pred);
[all...]
/external/llvm/lib/Transforms/Utils/
H A DLocal.cpp439 /// method is called when we're about to delete Pred as a predecessor of BB. If
440 /// BB contains any PHI nodes, this drops the entries in the PHI nodes for Pred.
449 void llvm::RemovePredecessorAndSimplify(BasicBlock *BB, BasicBlock *Pred, argument
455 // Remove the entries for Pred from the PHI nodes in BB, but do not simplify
458 BB->removePredecessor(Pred, true);
674 assert(OldVal && "No entry in PHI for Pred BB!");
/external/llvm/include/llvm/IR/
H A DPatternMatch.h666 CmpClass_match(PredicateTy &Pred, const LHS_t &LHS, const RHS_t &RHS) argument
667 : Predicate(Pred), L(LHS), R(RHS) {}
682 m_ICmp(ICmpInst::Predicate &Pred, const LHS &L, const RHS &R) { argument
684 ICmpInst, ICmpInst::Predicate>(Pred, L, R);
689 m_FCmp(FCmpInst::Predicate &Pred, const LHS &L, const RHS &R) { argument
691 FCmpInst, FCmpInst::Predicate>(Pred, L, R);
962 typename CmpInst_t::Predicate Pred = LHS == TrueVal ?
965 if (!Pred_t::match(Pred))
974 static bool match(ICmpInst::Predicate Pred) { argument
975 return Pred
981 match(ICmpInst::Predicate Pred) argument
988 match(ICmpInst::Predicate Pred) argument
995 match(ICmpInst::Predicate Pred) argument
1002 match(FCmpInst::Predicate Pred) argument
1009 match(FCmpInst::Predicate Pred) argument
1016 match(FCmpInst::Predicate Pred) argument
1023 match(FCmpInst::Predicate Pred) argument
[all...]
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp78 /// isSameCompare - Is V equivalent to the comparison "LHS Pred RHS"?
79 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, argument
86 if (CPred == Pred && CLHS == LHS && CRHS == RHS)
88 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS &&
358 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS, argument
368 Pred = CmpInst::getSwappedPredicate(Pred);
378 Value *TCmp = SimplifyCmpInst(Pred, TV, RHS, Q, MaxRecurse);
386 if (!isSameCompare(Cond, Pred, TV, RHS))
392 Value *FCmp = SimplifyCmpInst(Pred, F
483 ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, const Query &Q, unsigned MaxRecurse) argument
1637 ExtractEquivalentCondition(Value *V, CmpInst::Predicate Pred, Value *LHS, Value *RHS) argument
1682 computePointerICmp(const DataLayout *DL, const TargetLibraryInfo *TLI, CmpInst::Predicate Pred, Value *LHS, Value *RHS) argument
1812 CmpInst::Predicate Pred = (CmpInst::Predicate)Predicate; local
2622 CmpInst::Predicate Pred = (CmpInst::Predicate)Predicate; local
[all...]
H A DScalarEvolution.cpp1063 ICmpInst::Predicate *Pred,
1067 *Pred = ICmpInst::ICMP_SLT;
1072 *Pred = ICmpInst::ICMP_SGT;
1135 ICmpInst::Predicate Pred; local
1136 const SCEV *OverflowLimit = getOverflowLimitForStep(Step, &Pred, SE);
1139 SE->isLoopEntryGuardedByCond(L, Pred, PreStart, OverflowLimit)) {
1298 ICmpInst::Predicate Pred; local
1299 const SCEV *OverflowLimit = getOverflowLimitForStep(Step, &Pred, this);
1301 (isLoopBackedgeGuardedByCond(L, Pred, AR, OverflowLimit) ||
1302 (isLoopEntryGuardedByCond(L, Pred, Star
1062 getOverflowLimitForStep(const SCEV *Step, ICmpInst::Predicate *Pred, ScalarEvolution *SE) argument
[all...]
H A DScalarEvolutionExpander.cpp1201 BasicBlock *Pred = *HPI; local
1204 if (!L->contains(Pred)) {
1205 PN->addIncoming(StartV, Pred);
1213 IVIncInsertPos : Pred->getTerminator();
1222 PN->addIncoming(IncV, Pred);
H A DDependenceAnalysis.cpp878 bool DependenceAnalysis::isKnownPredicate(ICmpInst::Predicate Pred, argument
881 if (Pred == CmpInst::ICMP_EQ ||
882 Pred == CmpInst::ICMP_NE) {
897 if (SE->isKnownPredicate(Pred, X, Y))
905 switch (Pred) {
/external/llvm/lib/CodeGen/
H A DIfConversion.cpp724 SmallVectorImpl<MachineOperand> &Pred,
732 if (BBI.Predicate.size() && !TII->SubsumesPredicate(Pred, BBI.Predicate))
740 SmallVector<MachineOperand, 4> RevPred(Pred.begin(), Pred.end());
723 FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Pred, bool isTriangle, bool RevBranch) argument
H A DMachineInstr.cpp891 MachineBasicBlock::instr_iterator Pred = this; local
892 --Pred;
893 assert(!Pred->isBundledWithSucc() && "Inconsistent bundle flags");
894 Pred->setFlag(BundledSucc);
909 MachineBasicBlock::instr_iterator Pred = this; local
910 --Pred;
911 assert(Pred->isBundledWithSucc() && "Inconsistent bundle flags");
912 Pred->clearFlag(BundledSucc);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DScheduleDAGRRList.cpp1042 const SDep &Pred = ChainPreds[i]; local
1043 RemovePred(SU, Pred);
1045 AddPred(LoadSU, Pred);
1048 const SDep &Pred = LoadPreds[i]; local
1049 RemovePred(SU, Pred);
1051 AddPred(LoadSU, Pred);
1054 const SDep &Pred = NodePreds[i]; local
1055 RemovePred(SU, Pred);
1056 AddPred(NewSU, Pred);
H A DSelectionDAGISel.cpp394 BasicBlock *Pred = PN->getIncomingBlock(i); local
395 if (Pred->getTerminator()->getNumSuccessors() == 1)
399 SplitCriticalEdge(Pred->getTerminator(),
400 GetSuccessorNumber(Pred, BB), SDISel, true);
/external/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp714 static AArch64CC::CondCode getCompareCC(CmpInst::Predicate Pred) { argument
715 switch (Pred) {
/external/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp1063 MachineBasicBlock *Pred = *MBB->pred_begin(); local
1064 MachineInstr *PredMI = &Pred->back();
1797 ARMCC::CondCodes Pred = getInstrPredicate(Br.MI, PredReg); local
1798 if (Pred == ARMCC::EQ)
1800 else if (Pred == ARMCC::NE)
1815 Pred = getInstrPredicate(CmpMI, PredReg);
1816 if (Pred == ARMCC::AL &&
H A DARMFrameLowering.cpp119 ARMCC::CondCodes Pred = ARMCC::AL,
123 Pred, PredReg, TII, MIFlags);
126 Pred, PredReg, TII, MIFlags);
133 ARMCC::CondCodes Pred = ARMCC::AL,
136 MIFlags, Pred, PredReg);
1654 ARMCC::CondCodes Pred = (PIdx == -1) local
1660 Pred, PredReg);
1666 Pred, PredReg);
H A DARMLoadStoreOptimizer.cpp103 ARMCC::CondCodes Pred, unsigned PredReg);
106 ARMCC::CondCodes Pred, unsigned PredReg, unsigned Scratch,
119 ARMCC::CondCodes Pred,
126 ARMCC::CondCodes Pred, unsigned PredReg,
336 ARMCC::CondCodes Pred, unsigned PredReg) {
388 .addImm(Pred).addReg(PredReg);
406 .addImm(Pred).addReg(PredReg);
416 int Opcode, ARMCC::CondCodes Pred,
481 .addImm(Pred).addReg(PredReg);
485 .addImm(Pred)
332 UpdateBaseRegUses(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, DebugLoc dl, unsigned Base, unsigned WordOffset, ARMCC::CondCodes Pred, unsigned PredReg) argument
413 MergeOps(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, int Offset, unsigned Base, bool BaseKill, int Opcode, ARMCC::CondCodes Pred, unsigned PredReg, unsigned Scratch, DebugLoc dl, ArrayRef<std::pair<unsigned, bool> > Regs, ArrayRef<unsigned> ImpDefs) argument
610 MergeOpsUpdate(MachineBasicBlock &MBB, MemOpQueue &memOps, unsigned memOpsBegin, unsigned memOpsEnd, unsigned insertAfter, int Offset, unsigned Base, bool BaseKill, int Opcode, ARMCC::CondCodes Pred, unsigned PredReg, unsigned Scratch, DebugLoc dl, SmallVectorImpl<MachineBasicBlock::iterator> &Merges) argument
708 MergeLDR_STR(MachineBasicBlock &MBB, unsigned SIndex, unsigned Base, int Opcode, unsigned Size, ARMCC::CondCodes Pred, unsigned PredReg, unsigned Scratch, MemOpQueue &MemOps, SmallVectorImpl<MachineBasicBlock::iterator> &Merges) argument
793 isMatchingDecrement(MachineInstr *MI, unsigned Base, unsigned Bytes, unsigned Limit, ARMCC::CondCodes Pred, unsigned PredReg) argument
828 isMatchingIncrement(MachineInstr *MI, unsigned Base, unsigned Bytes, unsigned Limit, ARMCC::CondCodes Pred, unsigned PredReg) argument
995 ARMCC::CondCodes Pred = getInstrPredicate(MI, PredReg); local
1152 ARMCC::CondCodes Pred = getInstrPredicate(MI, PredReg); local
1358 InsertLDR_STR(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, int Offset, bool isDef, DebugLoc dl, unsigned NewOpc, unsigned Reg, bool RegDeadKill, bool RegUndef, unsigned BaseReg, bool BaseKill, bool BaseUndef, bool OffKill, bool OffUndef, ARMCC::CondCodes Pred, unsigned PredReg, const TargetInstrInfo *TII, bool isT2) argument
1416 ARMCC::CondCodes Pred = getInstrPredicate(MI, PredReg); local
1535 ARMCC::CondCodes Pred = getInstrPredicate(MBBI, PredReg); local
1875 CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, DebugLoc &dl, unsigned &NewOpc, unsigned &EvenReg, unsigned &OddReg, unsigned &BaseReg, int &Offset, unsigned &PredReg, ARMCC::CondCodes &Pred, bool &isT2) argument
2038 ARMCC::CondCodes Pred = ARMCC::AL; local
[all...]
/external/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp1038 MachineBasicBlock *Pred = *MBB->pred_begin(); local
1039 MachineInstr *PredMI = &Pred->back();
/external/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp202 static Optional<PPC::Predicate> getComparePred(CmpInst::Predicate Pred) { argument
203 switch (Pred) {
H A DPPCISelDAGToDAG.cpp1402 SDValue Pred = local
1404 SDValue Ops[] = { Pred, N->getOperand(2), N->getOperand(3),
H A DPPCInstrInfo.cpp1107 const SmallVectorImpl<MachineOperand> &Pred) const {
1110 if (Pred[1].getReg() == PPC::CTR8 || Pred[1].getReg() == PPC::CTR) {
1112 MI->setDesc(get(Pred[0].getImm() ?
1115 } else if (Pred[0].getImm() == PPC::PRED_BIT_SET) {
1118 .addReg(Pred[1].getReg());
1119 } else if (Pred[0].getImm() == PPC::PRED_BIT_UNSET) {
1122 .addReg(Pred[1].getReg());
1126 .addImm(Pred[0].getImm())
1127 .addReg(Pred[
1377 unsigned Pred = UseMI->getOperand(0).getImm(); local
1511 PPC::Predicate Pred = (PPC::Predicate) UseMI->getOperand(0).getImm(); local
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp103 CmpInst::Predicate Pred; local
106 case 0: Pred = isordered ? FCmpInst::FCMP_ORD : FCmpInst::FCMP_UNO; break;
107 case 1: Pred = isordered ? FCmpInst::FCMP_OGT : FCmpInst::FCMP_UGT; break;
108 case 2: Pred = isordered ? FCmpInst::FCMP_OEQ : FCmpInst::FCMP_UEQ; break;
109 case 3: Pred = isordered ? FCmpInst::FCMP_OGE : FCmpInst::FCMP_UGE; break;
110 case 4: Pred = isordered ? FCmpInst::FCMP_OLT : FCmpInst::FCMP_ULT; break;
111 case 5: Pred = isordered ? FCmpInst::FCMP_ONE : FCmpInst::FCMP_UNE; break;
112 case 6: Pred = isordered ? FCmpInst::FCMP_OLE : FCmpInst::FCMP_ULE; break;
115 Pred = FCmpInst::FCMP_ORD; break;
117 return Builder->CreateFCmp(Pred, LH
506 decomposeBitTestICmp(const ICmpInst *I, ICmpInst::Predicate &Pred, Value *&X, Value *&Y, Value *&Z) argument
[all...]
H A DInstCombineCasts.cpp896 ICmpInst::Predicate Pred = ICI->getPredicate(); local
901 if ((Pred == ICmpInst::ICMP_SLT && Op1C->isNullValue()) ||
902 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) {
910 if (Pred == ICmpInst::ICMP_SGT)
932 Value *V = Pred == ICmpInst::ICMP_NE ?
938 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) {
/external/llvm/utils/TableGen/
H A DAsmMatcherEmitter.cpp1322 Record *Pred = AllPredicates[i]; local
1324 if (!Pred->getValueAsBit("AssemblerMatcherPredicate"))
1327 if (Pred->getName().empty())
1328 PrintFatalError(Pred->getLoc(), "Predicate has no name!");
1331 SubtargetFeatures[Pred] = new SubtargetFeatureInfo(Pred, FeatureNo);
1332 DEBUG(SubtargetFeatures[Pred]->dump());
H A DDAGISelMatcher.h455 TreePattern *Pred; member in class:llvm::CheckPredicateMatcher
471 return cast<CheckPredicateMatcher>(M)->Pred == Pred;
/external/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp278 void ExprEngine::processCFGElement(const CFGElement E, ExplodedNode *Pred, argument
280 PrettyStackTraceLocationContext CrashInfo(Pred->getLocationContext());
286 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); local
289 ProcessInitializer(E.castAs<CFGInitializer>().getInitializer(), Pred);
293 Pred);
300 ProcessImplicitDtor(E.castAs<CFGImplicitDtor>(), Pred);
307 const ExplodedNode *Pred,
315 if (Pred->getLocation().getAs<BlockEntrance>())
332 void ExprEngine::removeDead(ExplodedNode *Pred, ExplodedNodeSet &Out, argument
348 ProgramStateRef CleanedState = Pred
305 shouldRemoveDeadBindings(AnalysisManager &AMgr, const CFGStmt S, const ExplodedNode *Pred, const LocationContext *LC) argument
414 ProcessStmt(const CFGStmt S, ExplodedNode *Pred) argument
445 ProcessInitializer(const CFGInitializer Init, ExplodedNode *Pred) argument
529 ProcessImplicitDtor(const CFGImplicitDtor D, ExplodedNode *Pred) argument
556 ProcessNewAllocator(const CXXNewExpr *NE, ExplodedNode *Pred) argument
575 ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
594 ProcessDeleteDtor(const CFGDeleteDtor Dtor, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
623 ProcessBaseDtor(const CFGBaseDtor D, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
642 ProcessMemberDtor(const CFGMemberDtor D, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
659 ProcessTemporaryDtor(const CFGTemporaryDtor D, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
671 Visit(const Stmt *S, ExplodedNode *Pred, ExplodedNodeSet &DstTop) argument
759 VisitObjCAtSynchronizedStmt(cast<ObjCAtSynchronizedStmt>(S), Pred, Dst); local
895 VisitLvalArraySubscriptExpr(cast<ArraySubscriptExpr>(S), Pred, Dst); local
901 VisitGCCAsmStmt(cast<GCCAsmStmt>(S), Pred, Dst); local
907 VisitMSAsmStmt(cast<MSAsmStmt>(S), Pred, Dst); local
913 VisitBlockExpr(cast<BlockExpr>(S), Pred, Dst); local
939 VisitBinaryOperator(cast<BinaryOperator>(S), Pred, Tmp); local
943 VisitBinaryOperator(cast<BinaryOperator>(S), Pred, Dst); local
976 VisitCallExpr(cast<CallExpr>(S), Pred, Dst); local
983 VisitCXXCatchStmt(cast<CXXCatchStmt>(S), Pred, Dst); local
991 VisitCXXConstructExpr(cast<CXXConstructExpr>(S), Pred, Dst); local
999 VisitCXXNewExpr(cast<CXXNewExpr>(S), Pred, PostVisit); local
1031 VisitBinaryOperator(cast<BinaryOperator>(S), Pred, Dst); local
1037 VisitCompoundLiteralExpr(cast<CompoundLiteralExpr>(S), Pred, Dst); local
1053 VisitCXXThisExpr(cast<CXXThisExpr>(S), Pred, Dst); local
1067 VisitDeclStmt(cast<DeclStmt>(S), Pred, Dst); local
1108 VisitInitListExpr(cast<InitListExpr>(S), Pred, Dst); local
1114 VisitMemberExpr(cast<MemberExpr>(S), Pred, Dst); local
1120 VisitLvalObjCIvarRefExpr(cast<ObjCIvarRefExpr>(S), Pred, Dst); local
1126 VisitObjCForCollectionStmt(cast<ObjCForCollectionStmt>(S), Pred, Dst); local
1132 VisitObjCMessage(cast<ObjCMessageExpr>(S), Pred, Dst); local
1145 VisitReturnStmt(cast<ReturnStmt>(S), Pred, Dst); local
1151 VisitOffsetOfExpr(cast<OffsetOfExpr>(S), Pred, Dst); local
1158 Pred, Dst); local
1280 processCFGBlockEntrance(const BlockEdge &L, NodeBuilderWithSinks &nodeBuilder, ExplodedNode *Pred) argument
1426 processBranch(const Stmt *Condition, const Stmt *Term, NodeBuilderContext& BldCtx, ExplodedNode *Pred, ExplodedNodeSet &Dst, const CFGBlock *DstT, const CFGBlock *DstF) argument
1527 processStaticInitializer(const DeclStmt *DS, NodeBuilderContext &BuilderCtx, ExplodedNode *Pred, clang::ento::ExplodedNodeSet &Dst, const CFGBlock *DstT, const CFGBlock *DstF) argument
1597 processEndOfFunction(NodeBuilderContext& BC, ExplodedNode *Pred) argument
1727 VisitCommonDeclRefExpr(const Expr *Ex, const NamedDecl *D, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
1782 VisitLvalArraySubscriptExpr(const ArraySubscriptExpr *A, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
1809 VisitMemberExpr(const MemberExpr *M, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
2000 evalBind(ExplodedNodeSet &Dst, const Stmt *StoreE, ExplodedNode *Pred, SVal location, SVal Val, bool atDeclInit, const ProgramPoint *PP) argument
2062 evalStore(ExplodedNodeSet &Dst, const Expr *AssignE, const Expr *LocationE, ExplodedNode *Pred, ProgramStateRef state, SVal location, SVal Val, const ProgramPointTag *tag) argument
2085 evalLoad(ExplodedNodeSet &Dst, const Expr *NodeEx, const Expr *BoundEx, ExplodedNode *Pred, ProgramStateRef state, SVal location, const ProgramPointTag *tag, QualType LoadTy) argument
2124 evalLoadCommon(ExplodedNodeSet &Dst, const Expr *NodeEx, const Expr *BoundEx, ExplodedNode *Pred, ProgramStateRef state, SVal location, const ProgramPointTag *tag, QualType LoadTy) argument
2161 evalLocation(ExplodedNodeSet &Dst, const Stmt *NodeEx, const Stmt *BoundEx, ExplodedNode *Pred, ProgramStateRef state, SVal location, const ProgramPointTag *tag, bool isLoad) argument
2214 ExplodedNode *Pred = *I; local
2250 VisitGCCAsmStmt(const GCCAsmStmt *A, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
2273 VisitMSAsmStmt(const MSAsmStmt *A, ExplodedNode *Pred, ExplodedNodeSet &Dst) argument
[all...]

Completed in 360 milliseconds

12345