/external/llvm/lib/Target/ARM/ |
H A D | ARMBaseInstrInfo.cpp | 274 SmallVectorImpl<MachineOperand> &Cond, 302 Cond.push_back(LastInst->getOperand(1)); 303 Cond.push_back(LastInst->getOperand(2)); 338 Cond.push_back(SecondLastInst->getOperand(1)); 339 Cond.push_back(SecondLastInst->getOperand(2)); 402 const SmallVectorImpl<MachineOperand> &Cond, 413 assert((Cond.size() == 2 || Cond.size() == 0) && 417 if (Cond.empty()) { // Unconditional branch? 424 .addImm(Cond[ 272 AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 400 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument 1659 analyzeSelect(const MachineInstr *MI, SmallVectorImpl<MachineOperand> &Cond, unsigned &TrueOp, unsigned &FalseOp, bool &Optimizable) const argument [all...] |
/external/clang/lib/Analysis/ |
H A D | ThreadSafety.cpp | 1454 const CallExpr* getTrylockCallExpr(const Stmt *Cond, LocalVarContext C, 1608 // If Cond can be traced back to a function call, return the call expression. 1611 const CallExpr* ThreadSafetyAnalyzer::getTrylockCallExpr(const Stmt *Cond, argument 1614 if (!Cond) 1617 if (const CallExpr *CallExp = dyn_cast<CallExpr>(Cond)) { 1620 else if (const ParenExpr *PE = dyn_cast<ParenExpr>(Cond)) { 1623 else if (const ImplicitCastExpr *CE = dyn_cast<ImplicitCastExpr>(Cond)) { 1626 else if (const ExprWithCleanups* EWC = dyn_cast<ExprWithCleanups>(Cond)) { 1629 else if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Cond)) { 1633 else if (const UnaryOperator *UOP = dyn_cast<UnaryOperator>(Cond)) { 1676 const Stmt *Cond = PredBlock->getTerminatorCondition(); local [all...] |
/external/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 694 Constant *llvm::ConstantFoldSelectInstruction(Constant *Cond, argument 697 if (Cond->isNullValue()) return V2; 698 if (Cond->isAllOnesValue()) return V1; 701 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { 705 ConstantInt *Cond = dyn_cast<ConstantInt>(CondV->getOperand(i)); local 706 if (Cond == 0) break; 708 Constant *V = Cond->isNullValue() ? V2 : V1; 718 if (isa<UndefValue>(Cond)) { 728 if (TrueVal->getOperand(0) == Cond) 729 return ConstantExpr::getSelect(Cond, TrueVa [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | SelectionDAG.h | 484 SDValue getCondCode(ISD::CondCode Cond); 612 ISD::CondCode Cond) { 617 return getNode(ISD::SETCC, DL, VT, LHS, RHS, getCondCode(Cond)); 624 SDValue True, SDValue False, ISD::CondCode Cond) { 626 LHS, RHS, True, False, getCondCode(Cond)); 1000 SDValue N2, ISD::CondCode Cond, DebugLoc dl); 611 getSetCC(DebugLoc DL, EVT VT, SDValue LHS, SDValue RHS, ISD::CondCode Cond) argument 623 getSelectCC(DebugLoc DL, SDValue LHS, SDValue RHS, SDValue True, SDValue False, ISD::CondCode Cond) argument
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 541 // div/rem X, (Cond ? 0 : Y) -> div/rem X, Y 546 // div/rem X, (Cond ? Y : 0) -> div/rem X, Y 621 // Handle cases involving: [su]div X, (select Cond, Y, Z) 736 // udiv X, (Select Cond, C1, C2) --> Select Cond, (shr X, C1), (shr X, C2) 738 { Value *Cond; const APInt *C1, *C2; local 739 if (match(Op1, m_Select(m_Value(Cond), m_Power2(C1), m_Power2(C2)))) { 749 return SelectInst::Create(Cond, TSI, FSI); 969 // Handle cases involving: rem X, (select Cond, Y, Z) 1015 // urem X, (select Cond, 1018 { Value *Cond; const APInt *C1, *C2; local [all...] |
H A D | InstructionCombining.cpp | 1602 FCmpInst *Cond = cast<FCmpInst>(BI.getCondition()); local 1603 Cond->setPredicate(FCmpInst::getInversePredicate(FPred)); 1607 Worklist.Add(Cond); 1619 ICmpInst *Cond = cast<ICmpInst>(BI.getCondition()); local 1620 Cond->setPredicate(ICmpInst::getInversePredicate(IPred)); 1623 Worklist.Add(Cond); 1631 Value *Cond = SI.getCondition(); local 1632 if (Instruction *I = dyn_cast<Instruction>(Cond)) { 2262 if (ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition())) { 2266 if (i.getCaseValue() == Cond) { [all...] |
/external/llvm/lib/CodeGen/ |
H A D | PeepholeOptimizer.cpp | 402 SmallVector<MachineOperand, 4> Cond; local 403 if (TII->analyzeSelect(MI, Cond, TrueOp, FalseOp, Optimizable))
|
H A D | MachineVerifier.cpp | 542 SmallVector<MachineOperand, 4> Cond; local 544 TBB, FBB, Cond)) { 571 if (!Cond.empty()) { 575 } else if (TBB && !FBB && Cond.empty()) { 594 } else if (TBB && !FBB && !Cond.empty()) { 653 if (Cond.empty()) {
|
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 2220 Value *TrueVal, *FalseVal, *Cond; local 2223 popValue(Record, OpNum, NextValueNo, Type::getInt1Ty(Context), Cond)) 2226 I = SelectInst::Create(Cond, TrueVal, FalseVal); 2235 Value *TrueVal, *FalseVal, *Cond; local 2238 getValueTypePair(Record, OpNum, NextValueNo, Cond)) 2243 dyn_cast<VectorType>(Cond->getType())) { 2249 if (Cond->getType() != Type::getInt1Ty(Context)) 2253 I = SelectInst::Create(Cond, TrueVal, FalseVal); 2351 Value *Cond = getValue(Record, 2, NextValueNo, local 2353 if (FalseDest == 0 || Cond 2368 Value *Cond = getValue(Record, 2, NextValueNo, OpTy); local 2423 Value *Cond = getValue(Record, 1, NextValueNo, OpTy); local [all...] |
/external/clang/include/clang/AST/ |
H A D | StmtCXX.h | 138 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body,
|
/external/clang/lib/AST/ |
H A D | Stmt.cpp | 799 Expr *Cond, Expr *Inc, DeclStmt *LoopVar, 805 SubExprs[COND] = reinterpret_cast<Stmt*>(Cond); 861 ForStmt::ForStmt(ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, argument 868 SubExprs[COND] = reinterpret_cast<Stmt*>(Cond); 798 CXXForRangeStmt(DeclStmt *Range, DeclStmt *BeginEndStmt, Expr *Cond, Expr *Inc, DeclStmt *LoopVar, Stmt *Body, SourceLocation FL, SourceLocation CL, SourceLocation RPL) argument
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerManager.cpp | 387 const Stmt *Cond, ExprEngine &eng) 388 : Checkers(checkers), Condition(Cond), Eng(eng) {} 511 SVal Cond, bool Assumption) { 517 state = EvalAssumeCheckers[i](state, Cond, Assumption); 386 CheckBranchConditionContext(const CheckersTy &checkers, const Stmt *Cond, ExprEngine &eng) argument 510 runCheckersForEvalAssume(ProgramStateRef state, SVal Cond, bool Assumption) argument
|
H A D | CoreEngine.cpp | 448 void CoreEngine::HandleBranch(const Stmt *Cond, const Stmt *Term, argument 453 SubEng.processBranch(Cond, Term, Ctx, Pred, Dst,
|
/external/llvm/include/llvm/Analysis/ |
H A D | InstructionSimplify.h | 181 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
|
/external/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 1081 Value *Cond = BI->getCondition(); local 1083 = dyn_cast_or_null<ConstantInt>(SimplifiedValues.lookup(Cond))) { 1089 Value *Cond = SI->getCondition(); local 1091 = dyn_cast_or_null<ConstantInt>(SimplifiedValues.lookup(Cond))) {
|
/external/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 444 Value *Cond = SI->getCondition(); local 448 // Now that we have "cmp select(Cond, TV, FV), RHS", analyse it. 451 if (TCmp == Cond) { 454 TCmp = getTrue(Cond->getType()); 458 if (!isSameCompare(Cond, Pred, TV, RHS)) 460 TCmp = getTrue(Cond->getType()); 465 if (FCmp == Cond) { 468 FCmp = getFalse(Cond->getType()); 472 if (!isSameCompare(Cond, Pred, FV, RHS)) 474 FCmp = getFalse(Cond 2699 SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, const DataLayout *TD, const TargetLibraryInfo *TLI, const DominatorTree *DT) argument [all...] |
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.h | 191 A64CC::CondCodes Cond) const;
|
/external/llvm/lib/Target/R600/ |
H A D | AMDGPUInstrInfo.cpp | 200 AMDGPUInstrInfo::ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond)
|
H A D | AMDGPUInstrInfo.h | 114 bool ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const;
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | GCOVProfiling.cpp | 771 Value *Cond = Builder.CreateICmpEQ(Pred, Builder.getInt32(0xffffffff)); local 772 BranchInst::Create(Exit, PredNotNegOne, Cond, BB); 783 Cond = Builder.CreateICmpEQ(Counter, 786 Builder.CreateCondBr(Cond, Exit, CounterEnd);
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 125 bool ProcessThreadableEdges(Value *Cond, BasicBlock *BB, 566 Constant *Cond = Conds[i].first; local 570 if (ConstantInt *CI = dyn_cast<ConstantInt>(Cond)) { 574 assert(isa<UndefValue>(Cond) && "Unexpected condition value"); 1063 bool JumpThreading::ProcessThreadableEdges(Value *Cond, BasicBlock *BB, argument 1071 if (!ComputeValueKnownInPredecessors(Cond, BB, PredValues, Preference))
|
/external/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.cpp | 682 static SDValue createCMovFP(SelectionDAG &DAG, SDValue Cond, SDValue True, argument 685 cast<ConstantSDNode>(Cond.getOperand(2)) 689 True.getValueType(), True, False, Cond); 1593 SDValue Cond = createFPCmp(DAG, Op.getOperand(0)); local 1596 if (Cond.getOpcode() != MipsISD::FPCmp) 1599 return createCMovFP(DAG, Cond, Op.getOperand(1), Op.getOperand(2), 1608 SDValue Cond = DAG.getNode(ISD::SETCC, DL, getSetCCResultType(Ty), local 1612 return DAG.getNode(ISD::SELECT, DL, Op.getValueType(), Cond, Op.getOperand(2), 1617 SDValue Cond = createFPCmp(DAG, Op); local 1619 assert(Cond 2053 SDValue Cond = DAG.getNode(ISD::AND, DL, MVT::i32, Shamt, local 2091 SDValue Cond = DAG.getNode(ISD::AND, DL, MVT::i32, Shamt, local [all...] |
H A D | MipsDelaySlotFiller.cpp | 656 SmallVector<MachineOperand, 2> Cond; local 659 TII->AnalyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.h | 401 void FindMergedConditions(const Value *Cond, MachineBasicBlock *TBB, 404 void EmitBranchForMergedCondition(const Value *Cond, MachineBasicBlock *TBB,
|
/external/llvm/lib/Transforms/Utils/ |
H A D | LoopSimplify.cpp | 192 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) { 197 BI->setCondition(ConstantInt::get(Cond->getType(),
|