/external/llvm/lib/Target/MSP430/ |
MSP430BranchSelector.cpp | 150 SmallVector<MachineOperand, 1> Cond; 151 Cond.push_back(I->getOperand(1)); 154 TII->ReverseBranchCondition(Cond); 156 .addImm(4).addOperand(Cond[0]);
|
/external/llvm/lib/Transforms/Scalar/ |
CorrelatedValuePropagation.cpp | 187 Value *Cond = SI->getCondition(); 192 if (isa<Instruction>(Cond) && cast<Instruction>(Cond)->getParent() == BB) 212 Cond, Case, *PI, BB);
|
/external/llvm/lib/CodeGen/ |
CodePlacementOpt.cpp | 78 SmallVector<MachineOperand, 4> Cond; 79 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond)) 85 if (Cond.empty() && TBB) 107 SmallVector<MachineOperand, 4> Cond; 109 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond)) 117 if (1u + !Cond.empty() != MBB->succ_size()) 120 if (!Cond.empty() && TII->ReverseBranchCondition(Cond))
|
PeepholeOptimizer.cpp | 396 SmallVector<MachineOperand, 4> Cond; 397 if (TII->analyzeSelect(MI, Cond, TrueOp, FalseOp, Optimizable))
|
EarlyIfConversion.cpp | 112 // Latencies from Cond+Branch, TReg, and FReg to DstReg. 123 SmallVector<MachineOperand, 4> Cond; 387 Cond.clear(); 388 if (TII->AnalyzeBranch(*Head, TBB, FBB, Cond)) { 422 if (!TII->canInsertSelect(*Head, Cond, PI.TReg, PI.FReg, 464 TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg); 485 TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg);
|
MachineBasicBlock.cpp | 352 SmallVector<MachineOperand, 4> Cond; 354 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond); 357 if (Cond.empty()) { 382 TII->InsertBranch(*this, TBB, 0, Cond, dl); 390 if (TII->ReverseBranchCondition(Cond)) 393 TII->InsertBranch(*this, FBB, 0, Cond, dl); 396 TII->InsertBranch(*this, TBB, 0, Cond, dl); 420 TII->InsertBranch(*this, TBB, 0, Cond, dl); 426 if (TII->ReverseBranchCondition(Cond)) { 428 Cond.clear() [all...] |
MachineBlockPlacement.cpp | [all...] |
/external/clang/test/SemaTemplate/ |
instantiate-expr-2.cpp | 77 struct Cond { 81 enum { resultT = Cond<true>::is, 82 resultF = Cond<false>::is }; 92 struct Cond { 97 typedef Cond<true, int, char>::True True; 98 typedef Cond<true, int, char>::False False; 112 struct Cond { 117 //Cond<true, int*, double> C; // Errors 119 //typedef Cond<true, int*, double>::Type Type; // Errors 120 typedef Cond<true, int, double>::Type Type [all...] |
/external/llvm/lib/Transforms/Utils/ |
CloneFunction.cpp | 303 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition()); 305 if (Cond == 0) { 307 Cond = dyn_cast_or_null<ConstantInt>(V); 311 if (Cond) { 312 BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue()); 320 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition()); 321 if (Cond == 0) { // Or known constant after constant prop in the callee... 323 Cond = dyn_cast_or_null<ConstantInt>(V); 325 if (Cond) { // Constant fold to uncond branch! 326 SwitchInst::ConstCaseIt Case = SI->findCaseValue(Cond); [all...] |
Local.cpp | 66 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) { 69 BasicBlock *Destination = Cond->getZExtValue() ? Dest1 : Dest2; 70 BasicBlock *OldDest = Cond->getZExtValue() ? Dest2 : Dest1; 88 // br bool %cond, label %Dest, label %Dest 97 Value *Cond = BI->getCondition(); 100 RecursivelyDeleteTriviallyDeadInstructions(Cond, TLI); 162 Value *Cond = SI->getCondition(); 165 RecursivelyDeleteTriviallyDeadInstructions(Cond, TLI); 176 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(), 178 "cond"); [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
LegalizeTypesGeneric.cpp | 456 SDValue Cond = N->getOperand(0); 457 CL = CH = Cond; 458 if (Cond.getValueType().isVector()) { 459 assert(Cond.getValueType().getVectorElementType() == MVT::i1 && 461 unsigned NumElements = Cond.getValueType().getVectorNumElements(); 463 CL = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, VCondTy, Cond, 465 CH = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, VCondTy, Cond,
|
/external/llvm/lib/Target/Hexagon/ |
HexagonHardwareLoops.cpp | 532 SmallVector<MachineOperand, 0> Cond; 533 TII->InsertBranch(*LastMBB, BranchTarget, 0, Cond, dl);
|
HexagonInstrInfo.cpp | 116 const SmallVectorImpl<MachineOperand> &Cond, 128 if (!Cond.empty() && Cond[0].isImm() && Cond[0].getImm() == 0) { 134 if (Cond.empty()) { 140 SmallVector<MachineOperand, 4> Cond; 142 if (isPredicated(Term) && !AnalyzeBranch(MBB, NewTBB, NewFBB, Cond, 147 ReverseBranchCondition(Cond); 149 return InsertBranch(MBB, TBB, 0, Cond, DL); 155 get(BccOpc)).addReg(Cond[regPos].getReg()).addMBB(TBB) [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineMulDivRem.cpp | 70 // "select cond, X, 0" can simplify to "X". 295 // div/rem X, (Cond ? 0 : Y) -> div/rem X, Y 300 // div/rem X, (Cond ? Y : 0) -> div/rem X, Y 375 // Handle cases involving: [su]div X, (select Cond, Y, Z) 489 // udiv X, (Select Cond, C1, C2) --> Select Cond, (shr X, C1), (shr X, C2) 491 { Value *Cond; const APInt *C1, *C2; 492 if (match(Op1, m_Select(m_Value(Cond), m_Power2(C1), m_Power2(C2)))) { 502 return SelectInst::Create(Cond, TSI, FSI); 603 // Handle cases involving: rem X, (select Cond, Y, Z [all...] |
/frameworks/compile/libbcc/lib/Renderscript/ |
RSForEachExpand.cpp | 319 llvm::Value *Cond = Builder.CreateICmpSLT(Arg_x1, Arg_x2); 320 Builder.CreateCondBr(Cond, Loop, Exit); 377 Cond = Builder.CreateICmpSLT(XPlusOne, Arg_x2); 378 Builder.CreateCondBr(Cond, Loop, Exit); 543 llvm::Value *Cond = Builder.CreateICmpSLT(Arg_x1, Arg_x2); 544 Builder.CreateCondBr(Cond, Loop, Exit); 604 Cond = Builder.CreateICmpSLT(XPlusOne, Arg_x2); 605 Builder.CreateCondBr(Cond, Loop, Exit);
|
/external/clang/lib/StaticAnalyzer/Core/ |
BugReporterVisitors.cpp | 682 const Expr *Cond = 0; 688 Cond = cast<IfStmt>(Term)->getCond(); 691 Cond = cast<ConditionalOperator>(Term)->getCond(); 695 assert(Cond); 698 return VisitTrueTest(Cond, tookTrue, BRC, R, N); 702 ConditionBRVisitor::VisitTrueTest(const Expr *Cond, 708 const Expr *Ex = Cond; 716 return VisitTrueTest(Cond, cast<BinaryOperator>(Ex), tookTrue, BRC, 719 return VisitTrueTest(Cond, cast<DeclRefExpr>(Ex), tookTrue, BRC, 789 ConditionBRVisitor::VisitTrueTest(const Expr *Cond, [all...] |
/external/llvm/examples/Kaleidoscope/Chapter5/ |
toy.cpp | 144 ExprAST *Cond, *Then, *Else; 146 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) 147 : Cond(cond), Then(then), Else(_else) {} 278 ExprAST *Cond = ParseExpression(); 279 if (!Cond) return 0; 296 return new IfExprAST(Cond, Then, Else); 511 Value *CondV = Cond->Codegen();
|
/external/llvm/include/llvm/Support/ |
PatternMatch.h | 533 SelectClass_match(const Cond_t &Cond, const LHS_t &LHS, 535 : C(Cond), L(LHS), R(RHS) {} 547 template<typename Cond, typename LHS, typename RHS> 548 inline SelectClass_match<Cond, LHS, RHS> 549 m_Select(const Cond &C, const LHS &L, const RHS &R) { 550 return SelectClass_match<Cond, LHS, RHS>(C, L, R); 555 template<int64_t L, int64_t R, typename Cond> 556 inline SelectClass_match<Cond, constantint_match<L>, constantint_match<R> > 557 m_SelectCst(const Cond &C) { 705 Cond_t Cond; [all...] |
/external/llvm/lib/Analysis/ |
InlineCost.cpp | [all...] |
/external/llvm/lib/VMCore/ |
ConstantFold.cpp | 692 Constant *llvm::ConstantFoldSelectInstruction(Constant *Cond, 695 if (Cond->isNullValue()) return V2; 696 if (Cond->isAllOnesValue()) return V1; 699 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { 703 ConstantInt *Cond = dyn_cast<ConstantInt>(CondV->getOperand(i)); 704 if (Cond == 0) break; 706 Constant *V = Cond->isNullValue() ? V2 : V1; 716 if (isa<UndefValue>(Cond)) { 726 if (TrueVal->getOperand(0) == Cond) 727 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2) [all...] |
/external/llvm/tools/llvm-stress/ |
llvm-stress.cpp | 574 Value *Cond = getRandomValue(CondTy); 575 Value *V = SelectInst::Create(Cond, Val0, Val1, "Sl", BB->getTerminator());
|
/external/clang/lib/CodeGen/ |
CGStmt.cpp | 444 JumpDest LoopHeader = getJumpDestInCurrentScope("while.cond"); 520 JumpDest LoopCond = getJumpDestInCurrentScope("do.cond"); 581 JumpDest Continue = getJumpDestInCurrentScope("for.cond"); 600 ExitBlock = createBasicBlock("for.cond.cleanup"); 674 llvm::BasicBlock *CondBlock = createBasicBlock("for.cond"); 681 ExitBlock = createBasicBlock("for.cond.cleanup"); 869 llvm::Value *Cond = 871 Builder.CreateCondBr(Cond, CaseDest, FalseDest); [all...] |
/external/clang/lib/Parse/ |
ParseStmt.cpp | [all...] |
/external/llvm/examples/Kaleidoscope/Chapter6/ |
toy.cpp | 159 ExprAST *Cond, *Then, *Else; 161 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) 162 : Cond(cond), Then(then), Else(_else) {} 306 ExprAST *Cond = ParseExpression(); 307 if (!Cond) return 0; 324 return new IfExprAST(Cond, Then, Else); 615 Value *CondV = Cond->Codegen();
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
toy.cpp | 164 ExprAST *Cond, *Then, *Else; 166 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else) 167 : Cond(cond), Then(then), Else(_else) {} 324 ExprAST *Cond = ParseExpression(); 325 if (!Cond) return 0; 342 return new IfExprAST(Cond, Then, Else); 711 Value *CondV = Cond->Codegen(); [all...] |