/external/llvm/include/llvm/Support/ |
H A D | type_traits.h | 178 template<bool Cond, typename T = void> 186 template<typename Cond, typename T = void> 187 struct enable_if : public enable_if_c<Cond::value, T> { };
|
H A D | PatternMatch.h | 614 SelectClass_match(const Cond_t &Cond, const LHS_t &LHS, argument 616 : C(Cond), L(LHS), R(RHS) {} 628 template<typename Cond, typename LHS, typename RHS> 629 inline SelectClass_match<Cond, LHS, RHS> 630 m_Select(const Cond &C, const LHS &L, const RHS &R) { 631 return SelectClass_match<Cond, LHS, RHS>(C, L, R); 636 template<int64_t L, int64_t R, typename Cond> 637 inline SelectClass_match<Cond, constantint_match<L>, constantint_match<R> > 638 m_SelectCst(const Cond &C) { 805 Cond_t Cond; member in struct:llvm::PatternMatch::brc_match [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | SimplifyCFG.cpp | 145 Instruction *Cond, 153 // 2> We have "Cond" as the incoming value for the unconditional branch; 154 // 3> SI2->getCondition() and Cond have same operands. 157 if (!(Cond->getOperand(0) == Ci2->getOperand(0) && 158 Cond->getOperand(1) == Ci2->getOperand(1)) && 159 !(Cond->getOperand(0) == Ci2->getOperand(1) && 160 Cond->getOperand(1) == Ci2->getOperand(0))) 171 if (PN->getIncomingValueForBlock(SI1BB) != Cond || 505 Instruction *Cond = 0; local 507 Cond 143 isProfitableToFoldUnconditional(BranchInst *SI1, BranchInst *SI2, Instruction *Cond, SmallVectorImpl<PHINode*> &PhiNodes) argument 1905 Instruction *Cond = 0; local 2353 Value *Cond = Builder.CreateOr(PBICond, BICond, "brmerge"); local 2422 SimplifyTerminatorOnSelect(TerminatorInst *OldTerm, Value *Cond, BasicBlock *TrueBB, BasicBlock *FalseBB, uint32_t TrueWeight, uint32_t FalseWeight) argument 2665 Instruction *Cond = dyn_cast<Instruction>(BI->getCondition()); local 3113 Value *Cond = SI->getCondition(); local [all...] |
H A D | Local.cpp | 68 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { 71 BasicBlock *Destination = Cond->getZExtValue() ? Dest1 : Dest2; 72 BasicBlock *OldDest = Cond->getZExtValue() ? Dest2 : Dest1; 99 Value *Cond = BI->getCondition(); local 102 RecursivelyDeleteTriviallyDeadInstructions(Cond, TLI); 185 Value *Cond = SI->getCondition(); local 188 RecursivelyDeleteTriviallyDeadInstructions(Cond, TLI); 199 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(), local 204 BranchInst *NewBr = Builder.CreateCondBr(Cond,
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | LoopUnswitch.cpp | 202 void UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, 218 bool IsTrivialUnswitchCondition(Value *Cond, Constant **Val = 0, 350 /// FindLIVLoopCondition - Cond is a condition that occurs in L. If it is 353 static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) { argument 359 if (Cond->getType()->isVectorTy()) 363 if (isa<Constant>(Cond)) return 0; 368 if (L->makeLoopInvariant(Cond, Changed)) 369 return Cond; 371 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond)) 557 /// returning true, this sets Cond an 562 IsTrivialUnswitchCondition(Value *Cond, Constant **Val, BasicBlock **LoopExit) argument 711 UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, BasicBlock *ExitBlock) argument 717 << " on cond: " << *Val << " == " << *Cond << "\\n"); local [all...] |
H A D | IndVarSimplify.cpp | 1239 ICmpInst *Cond = getLoopTest(L); local 1240 if (!Cond) 1244 ICmpInst::Predicate Pred = Cond->getPredicate(); 1249 Value *LHS = Cond->getOperand(0); 1250 Value *RHS = Cond->getOperand(1); 1318 static bool AlmostDeadIV(PHINode *Phi, BasicBlock *LatchBlock, Value *Cond) { argument 1324 if (*UI != Cond && *UI != IncV) return false; 1329 if (*UI != Cond && *UI != Phi) return false; 1352 Value *Cond = local 1396 if (ICmpInst *Cond 1582 Value *Cond = Builder.CreateICmp(P, CmpIndVar, ExitCnt, "exitcond"); local [all...] |
H A D | LoopStrengthReduce.cpp | 1543 bool FindIVUserForCond(ICmpInst *Cond, IVStrideUse *&CondUse); 1544 ICmpInst *OptimizeMax(ICmpInst *Cond, IVStrideUse* &CondUse); 1764 /// FindIVUserForCond - If Cond has an operand that is an expression of an IV, 1767 bool LSRInstance::FindIVUserForCond(ICmpInst *Cond, IVStrideUse *&CondUse) { argument 1769 if (UI->getUser() == Cond) { 1829 ICmpInst *LSRInstance::OptimizeMax(ICmpInst *Cond, IVStrideUse* &CondUse) { argument 1831 if (Cond->getPredicate() != CmpInst::ICMP_EQ && 1832 Cond->getPredicate() != CmpInst::ICMP_NE) 1833 return Cond; 1835 SelectInst *Sel = dyn_cast<SelectInst>(Cond 1967 ICmpInst *Cond = cast<ICmpInst>(TermBr->getCondition()); local [all...] |
H A D | LoopIdiomRecognize.cpp | 351 ICmpInst *Cond = dyn_cast<ICmpInst>(Br->getCondition()); 352 if (!Cond) 355 ConstantInt *CmpZero = dyn_cast<ConstantInt>(Cond->getOperand(1)); 359 ICmpInst::Predicate Pred = Cond->getPredicate(); 362 return Cond->getOperand(0);
|
/external/llvm/lib/CodeGen/ |
H A D | BranchFolding.cpp | 198 SmallVector<MachineOperand, 4> Cond; local 199 if (!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, true)) 200 MadeChange |= MBB->CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); 462 SmallVector<MachineOperand, 4> Cond; local 465 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { 467 if (TBB == NextBB && !Cond.empty() && !FBB) { 468 if (!TII->ReverseBranchCondition(Cond)) { 470 TII->InsertBranch(*CurMBB, SuccBB, NULL, Cond, dl); 887 SmallVector<MachineOperand, 4> Cond; local 888 if (!TII->AnalyzeBranch(*PBB, TBB, FBB, Cond, tru 1571 SmallVector<MachineOperand, 4> Cond; local [all...] |
H A D | MachineBlockPlacement.cpp | 875 SmallVector<MachineOperand, 4> Cond; // For AnalyzeBranch. local 883 Cond.clear(); 885 if (!TII->AnalyzeBranch(*BB, TBB, FBB, Cond) || !FI->canFallThrough()) 985 Cond.clear(); 987 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { 990 if (TBB && !Cond.empty() && FBB && 992 !TII->ReverseBranchCondition(Cond)) { 999 TII->InsertBranch(*PrevBB, FBB, TBB, Cond, dl); 1006 Cond.clear(); 1008 if (!TII->AnalyzeBranch(F.back(), TBB, FBB, Cond)) [all...] |
H A D | EarlyIfConversion.cpp | 112 // Latencies from Cond+Branch, TReg, and FReg to DstReg. 123 SmallVector<MachineOperand, 4> Cond; member in class:__anon9453::SSAIfConv 387 Cond.clear(); 388 if (TII->AnalyzeBranch(*Head, TBB, FBB, Cond)) { 422 if (!TII->canInsertSelect(*Head, Cond, PI.TReg, PI.FReg, 463 TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg); 484 TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg);
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporterVisitors.cpp | 1110 const Expr *Cond = 0; local 1116 Cond = cast<IfStmt>(Term)->getCond(); 1119 Cond = cast<ConditionalOperator>(Term)->getCond(); 1123 assert(Cond); 1126 return VisitTrueTest(Cond, tookTrue, BRC, R, N); 1130 ConditionBRVisitor::VisitTrueTest(const Expr *Cond, argument 1136 const Expr *Ex = Cond; 1144 return VisitTrueTest(Cond, cast<BinaryOperator>(Ex), tookTrue, BRC, 1147 return VisitTrueTest(Cond, cast<DeclRefExpr>(Ex), tookTrue, BRC, 1217 ConditionBRVisitor::VisitTrueTest(const Expr *Cond, argument 1347 VisitTrueTest(const Expr *Cond, const DeclRefExpr *DR, const bool tookTrue, BugReporterContext &BRC, BugReport &report, const ExplodedNode *N) argument [all...] |
/external/llvm/examples/Kaleidoscope/Chapter5/ |
H A D | toy.cpp | 144 ExprAST *Cond, *Then, *Else; member in class:IfExprAST 147 : Cond(cond), Then(then), Else(_else) {} 278 ExprAST *Cond = ParseExpression(); local 279 if (!Cond) return 0; 296 return new IfExprAST(Cond, Then, Else); 511 Value *CondV = Cond->Codegen();
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
H A D | toy.cpp | 159 ExprAST *Cond, *Then, *Else; member in class:IfExprAST 162 : Cond(cond), Then(then), Else(_else) {} 306 ExprAST *Cond = ParseExpression(); local 307 if (!Cond) return 0; 324 return new IfExprAST(Cond, Then, Else); 615 Value *CondV = Cond->Codegen();
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenFunction.cpp | 685 bool CodeGenFunction::ConstantFoldsToSimpleInteger(const Expr *Cond, argument 688 if (!ConstantFoldsToSimpleInteger(Cond, ResultInt)) 699 ConstantFoldsToSimpleInteger(const Expr *Cond, llvm::APSInt &ResultInt) { argument 703 if (!Cond->EvaluateAsInt(Int, getContext())) 706 if (CodeGenFunction::ContainsLabel(Cond)) 719 void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond, argument 722 Cond = Cond->IgnoreParens(); 724 if (const BinaryOperator *CondBOp = dyn_cast<BinaryOperator>(Cond)) { 795 if (const UnaryOperator *CondUOp = dyn_cast<UnaryOperator>(Cond)) { [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckerDocumentation.cpp | 207 SVal Cond, 206 evalAssume(ProgramStateRef State, SVal Cond, bool Assumption) const argument
|
/external/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 7931 SDValue Cond = DAG.getNode(X86ISD::CMP, dl, MVT::i32, local 7936 SDValue Ops0[4] = { Tmp2, Tmp3, CC, Cond }; 7937 SDValue Ops1[4] = { Tmp3, Tmp1, CC, Cond }; 9199 X86::CondCode Cond = CC == ISD::SETEQ ? X86::COND_AE : X86::COND_B; local 9202 Cond = X86::GetOppositeBranchCondition(Cond); 9204 DAG.getConstant(Cond, MVT::i8), BT); 9242 SDValue Cond; local 9494 SDValue Cond = Op.getOperand(0); local 9500 if (Cond 9758 SDValue Cond = Op.getOperand(1); local 10374 SDValue Cond = DAG.getNode(Opc, dl, MVT::i32, LHS, RHS); local 11719 unsigned Cond = 0; local 15105 matchIntegerMINMAX(SDValue Cond, EVT VT, SDValue LHS, SDValue RHS, SelectionDAG &DAG, const X86Subtarget *Subtarget) argument 15180 SDValue Cond = N->getOperand(0); local 15651 SDValue Cond = N->getOperand(3); local 17388 SDValue Cond = DAG.getConstant(CC, MVT::i8); local 17410 SDValue Cond = DAG.getConstant(CC, MVT::i8); local [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeTypesGeneric.cpp | 490 SDValue Cond = N->getOperand(0); local 491 CL = CH = Cond; 492 if (Cond.getValueType().isVector()) { 493 assert(Cond.getValueType().getVectorElementType() == MVT::i1 && 495 unsigned NumElements = Cond.getValueType().getVectorNumElements(); 497 CL = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, VCondTy, Cond, 499 CH = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, VCondTy, Cond,
|
/external/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 556 Sema::ActOnStartOfSwitchStmt(SourceLocation SwitchLoc, Expr *Cond, argument 567 Cond = CondResult.release(); 570 if (!Cond) 574 Expr *Cond; member in class:SwitchConvertDiagnoser 577 SwitchConvertDiagnoser(Expr *Cond) argument 578 : ICEConvertDiagnoser(false, true), Cond(Cond) { } 588 << T << Cond->getSourceRange(); 619 } SwitchDiagnoser(Cond); 622 = ConvertToIntegralOrEnumerationType(SwitchLoc, Cond, SwitchDiagnose 1155 ActOnWhileStmt(SourceLocation WhileLoc, FullExprArg Cond, Decl *CondVar, Stmt *Body) argument 1180 ActOnDoStmt(SourceLocation DoLoc, Stmt *Body, SourceLocation WhileLoc, SourceLocation CondLParen, Expr *Cond, SourceLocation CondRParen) argument 1861 BuildCXXForRangeStmt(SourceLocation ForLoc, SourceLocation ColonLoc, Stmt *RangeDecl, Stmt *BeginEnd, Expr *Cond, Expr *Inc, Stmt *LoopVarDecl, SourceLocation RParenLoc, BuildForRangeKind Kind) argument [all...] |
H A D | TreeTransform.h | 1075 StmtResult RebuildIfStmt(SourceLocation IfLoc, Sema::FullExprArg Cond, argument 1078 return getSema().ActOnIfStmt(IfLoc, Cond, CondVar, Then, ElseLoc, Else); 1086 Expr *Cond, VarDecl *CondVar) { 1087 return getSema().ActOnStartOfSwitchStmt(SwitchLoc, Cond, 1104 StmtResult RebuildWhileStmt(SourceLocation WhileLoc, Sema::FullExprArg Cond, argument 1106 return getSema().ActOnWhileStmt(WhileLoc, Cond, CondVar, Body); 1115 Expr *Cond, SourceLocation RParenLoc) { 1117 Cond, RParenLoc); 1125 Stmt *Init, Sema::FullExprArg Cond, 1128 return getSema().ActOnForStmt(ForLoc, LParenLoc, Init, Cond, 1085 RebuildSwitchStmtStart(SourceLocation SwitchLoc, Expr *Cond, VarDecl *CondVar) argument 1113 RebuildDoStmt(SourceLocation DoLoc, Stmt *Body, SourceLocation WhileLoc, SourceLocation LParenLoc, Expr *Cond, SourceLocation RParenLoc) argument 1124 RebuildForStmt(SourceLocation ForLoc, SourceLocation LParenLoc, Stmt *Init, Sema::FullExprArg Cond, VarDecl *CondVar, Sema::FullExprArg Inc, SourceLocation RParenLoc, Stmt *Body) argument 1335 RebuildCXXForRangeStmt(SourceLocation ForLoc, SourceLocation ColonLoc, Stmt *Range, Stmt *BeginEnd, Expr *Cond, Expr *Inc, Stmt *LoopVar, SourceLocation RParenLoc) argument 1581 RebuildConditionalOperator(Expr *Cond, SourceLocation QuestionLoc, Expr *LHS, SourceLocation ColonLoc, Expr *RHS) argument 1726 RebuildChooseExpr(SourceLocation BuiltinLoc, Expr *Cond, Expr *LHS, Expr *RHS, SourceLocation RParenLoc) argument 5240 ExprResult Cond; local 5297 ExprResult Cond; local 5335 ExprResult Cond; local 6563 ExprResult Cond = getDerived().TransformExpr(E->getCond()); local 6845 ExprResult Cond = getDerived().TransformExpr(E->getCond()); local [all...] |
/external/clang/lib/Parse/ |
H A D | ParseStmt.cpp | 1099 ExprResult Cond; local 1101 if (ParseParenExprOrCondition(Cond, CondVar, SwitchLoc, false)) 1105 = Actions.ActOnStartOfSwitchStmt(SwitchLoc, Cond.get(), CondVar); 1146 SourceLocation SynthesizedNullStmtLocation = Cond.get()->getLocEnd(); 1191 ExprResult Cond; local 1193 if (ParseParenExprOrCondition(Cond, CondVar, WhileLoc, true)) 1196 FullExprArg FullCond(Actions.MakeFullExpr(Cond.get(), WhileLoc)); 1219 if ((Cond.isInvalid() && !CondVar) || Body.isInvalid()) 1286 ExprResult Cond = ParseExpression(); local 1290 if (Cond [all...] |
/external/valgrind/main/memcheck/ |
H A D | mc_errors.c | 178 } Cond; member in union:_MC_Error::__anon15251 574 /* Could also show extra->Err.Cond.otag if debugging origin 592 if (extra->Err.Cond.origin_ec) 593 mc_pp_origin( extra->Err.Cond.origin_ec, 594 extra->Err.Cond.otag & 3 ); 596 /* Could also show extra->Err.Cond.otag if debugging origin 601 if (extra->Err.Cond.origin_ec) 602 mc_pp_origin( extra->Err.Cond.origin_ec, 603 extra->Err.Cond.otag & 3 ); 885 extra.Err.Cond [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ProgramState.h | 630 inline ProgramStateRef ProgramState::assume(DefinedOrUnknownSVal Cond, argument 632 if (Cond.isUnknown()) 636 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); 640 ProgramState::assume(DefinedOrUnknownSVal Cond) const { 641 if (Cond.isUnknown()) 645 ->assumeDual(this, Cond.castAs<DefinedSVal>());
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
H A D | toy.cpp | 164 ExprAST *Cond, *Then, *Else; member in class:IfExprAST 167 : Cond(cond), Then(then), Else(_else) {} 324 ExprAST *Cond = ParseExpression(); local 325 if (!Cond) return 0; 342 return new IfExprAST(Cond, Then, Else); 711 Value *CondV = Cond->Codegen();
|
/external/llvm/lib/Target/R600/ |
H A D | AMDGPUStructurizeCFG.cpp | 350 Value *Cond = Invert ? BoolFalse : BoolTrue; local 352 Cond = Term->getCondition(); 355 Cond = invert(Cond); 357 return Cond;
|