HomeSort by relevance Sort by last modified time
    Searched defs:Cond (Results 1 - 25 of 45) sorted by null

1 2

  /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/CodeGen/
CodePlacementOpt.cpp 81 SmallVector<MachineOperand, 4> Cond;
82 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond))
88 if (Cond.empty() && TBB)
110 SmallVector<MachineOperand, 4> Cond;
112 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond))
120 if (1u + !Cond.empty() != MBB->succ_size())
123 if (!Cond.empty() && TII->ReverseBranchCondition(Cond))
MachineBasicBlock.cpp 287 SmallVector<MachineOperand, 4> Cond;
289 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond);
292 if (Cond.empty()) {
303 TII->InsertBranch(*this, TBB, 0, Cond, dl);
311 if (TII->ReverseBranchCondition(Cond))
314 TII->InsertBranch(*this, FBB, 0, Cond, dl);
317 TII->InsertBranch(*this, TBB, 0, Cond, dl);
325 if (TII->ReverseBranchCondition(Cond)) {
327 Cond.clear();
328 TII->InsertBranch(*this, MBBA, 0, Cond, dl)
    [all...]
MachineVerifier.cpp 414 SmallVector<MachineOperand, 4> Cond;
416 TBB, FBB, Cond)) {
443 if (!Cond.empty()) {
447 } else if (TBB && !FBB && Cond.empty()) {
466 } else if (TBB && !FBB && !Cond.empty()) {
509 if (Cond.empty()) {
    [all...]
BranchFolding.cpp 189 SmallVector<MachineOperand, 4> Cond;
190 if (!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, true))
191 MadeChange |= MBB->CorrectExtraCFGEdges(TBB, FBB, !Cond.empty());
455 SmallVector<MachineOperand, 4> Cond;
458 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) {
460 if (TBB == NextBB && !Cond.empty() && !FBB) {
461 if (!TII->ReverseBranchCondition(Cond)) {
463 TII->InsertBranch(*CurMBB, SuccBB, NULL, Cond, dl);
874 SmallVector<MachineOperand, 4> Cond
    [all...]
IfConversion.cpp 81 /// TargetInstrInfo::AnalyzeBranch() (i.e. TBB, FBB, and Cond), and its
186 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Cond,
197 SmallVectorImpl<MachineOperand> &Cond,
200 SmallVectorImpl<MachineOperand> &Cond,
726 SmallVector<MachineOperand, 4> Cond(BBI.BrCond.begin(), BBI.BrCond.end());
728 if (TII->ReverseBranchCondition(Cond))
732 !TII->SubsumesPredicate(Cond, RevPred))
    [all...]
MachineLICM.cpp 694 SmallVector<MachineOperand, 4> Cond;
695 if (!TII->AnalyzeBranch(*BB, TBB, FBB, Cond, false) && Cond.empty())
    [all...]
  /external/clang/lib/StaticAnalyzer/Core/
BugReporterVisitors.cpp 502 const Expr *Cond = 0;
508 Cond = cast<IfStmt>(Term)->getCond();
511 Cond = cast<ConditionalOperator>(Term)->getCond();
515 assert(Cond);
518 return VisitTrueTest(Cond->IgnoreParenNoopCasts(BRC.getASTContext()),
523 ConditionBRVisitor::VisitTrueTest(const Expr *Cond,
528 const Expr *Ex = Cond;
536 return VisitTrueTest(Cond, cast<BinaryOperator>(Ex), tookTrue, BRC, LC);
538 return VisitTrueTest(Cond, cast<DeclRefExpr>(Ex), tookTrue, BRC, LC);
590 ConditionBRVisitor::VisitTrueTest(const Expr *Cond,
    [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/InstCombine/
InstCombineMulDivRem.cpp 70 // "select cond, X, 0" can simplify to "X".
299 // div/rem X, (Cond ? 0 : Y) -> div/rem X, Y
304 // div/rem X, (Cond ? Y : 0) -> div/rem X, Y
379 // Handle cases involving: [su]div X, (select Cond, Y, Z)
476 // udiv X, (Select Cond, C1, C2) --> Select Cond, (shr X, C1), (shr X, C2)
478 { Value *Cond; const APInt *C1, *C2;
479 if (match(Op1, m_Select(m_Value(Cond), m_Power2(C1), m_Power2(C2)))) {
489 return SelectInst::Create(Cond, TSI, FSI);
590 // Handle cases involving: rem X, (select Cond, Y, Z
    [all...]
  /external/llvm/lib/Transforms/Utils/
CloneFunction.cpp 261 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
263 if (Cond == 0) {
265 Cond = dyn_cast_or_null<ConstantInt>(V);
269 if (Cond) {
270 BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue());
278 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition());
279 if (Cond == 0) { // Or known constant after constant prop in the callee...
281 Cond = dyn_cast_or_null<ConstantInt>(V);
283 if (Cond) { // Constant fold to uncond branch!
284 BasicBlock *Dest = SI->getSuccessor(SI->findCaseValue(Cond));
    [all...]
Local.cpp 64 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
67 BasicBlock *Destination = Cond->getZExtValue() ? Dest1 : Dest2;
68 BasicBlock *OldDest = Cond->getZExtValue() ? Dest2 : Dest1;
86 // br bool %cond, label %Dest, label %Dest
95 Value *Cond = BI->getCondition();
98 RecursivelyDeleteTriviallyDeadInstructions(Cond);
161 Value *Cond = SI->getCondition();
164 RecursivelyDeleteTriviallyDeadInstructions(Cond);
171 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(),
172 SI->getSuccessorValue(1), "cond");
    [all...]
  /external/llvm/lib/CodeGen/SelectionDAG/
LegalizeTypesGeneric.cpp 447 SDValue Cond = N->getOperand(0);
448 CL = CH = Cond;
449 if (Cond.getValueType().isVector()) {
450 assert(Cond.getValueType().getVectorElementType() == MVT::i1 &&
452 unsigned NumElements = Cond.getValueType().getVectorNumElements();
454 CL = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, VCondTy, Cond,
456 CH = DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, VCondTy, Cond,
  /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 491 SelectClass_match(const Cond_t &Cond, const LHS_t &LHS,
493 : C(Cond), L(LHS), R(RHS) {}
505 template<typename Cond, typename LHS, typename RHS>
506 inline SelectClass_match<Cond, LHS, RHS>
507 m_Select(const Cond &C, const LHS &L, const RHS &R) {
508 return SelectClass_match<Cond, LHS, RHS>(C, L, R);
513 template<int64_t L, int64_t R, typename Cond>
514 inline SelectClass_match<Cond, constantint_match<L>, constantint_match<R> >
515 m_SelectCst(const Cond &C) {
674 Cond_t Cond;
    [all...]
  /external/llvm/lib/Transforms/Scalar/
LoopUnswitch.cpp 142 void UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val,
158 bool IsTrivialUnswitchCondition(Value *Cond, Constant **Val = 0,
176 /// FindLIVLoopCondition - Cond is a condition that occurs in L. If it is
179 static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
181 if (Cond->getType()->isVectorTy())
185 if (isa<Constant>(Cond)) return 0;
190 if (L->makeLoopInvariant(Cond, Changed))
191 return Cond;
193 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond))
345 /// returning true, this sets Cond and Val to the condition that controls th
    [all...]
JumpThreading.cpp 122 bool ProcessThreadableEdges(Value *Cond, BasicBlock *BB,
552 Constant *Cond = Conds[i].first;
556 if (ConstantInt *CI = dyn_cast<ConstantInt>(Cond)) {
560 assert(isa<UndefValue>(Cond) && "Unexpected condition value");
    [all...]
SimplifyLibCalls.cpp     [all...]
  /external/llvm/utils/TableGen/
AsmWriterEmitter.cpp 850 std::string Cond;
851 Cond = std::string("MI->getNumOperands() == ") + llvm::utostr(LastOpNo);
852 IAP->addCond(Cond);
870 Cond = std::string("MI->getOperand(")+llvm::utostr(i)+").isReg()";
871 IAP->addCond(Cond);
875 Cond = std::string("regIsInRegisterClass(RC_") +
878 IAP->addCond(Cond);
880 Cond = std::string("MI->getOperand(") +
883 IAP->addCond(Cond);
897 Cond = std::string("MI->getOperand(")
    [all...]
  /external/clang/lib/CodeGen/
CGStmt.cpp 443 JumpDest LoopHeader = getJumpDestInCurrentScope("while.cond");
519 JumpDest LoopCond = getJumpDestInCurrentScope("do.cond");
580 JumpDest Continue = getJumpDestInCurrentScope("for.cond");
599 ExitBlock = createBasicBlock("for.cond.cleanup");
673 llvm::BasicBlock *CondBlock = createBasicBlock("for.cond");
680 ExitBlock = createBasicBlock("for.cond.cleanup");
867 llvm::Value *Cond =
869 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...]
  /frameworks/compile/slang/
slang_rs_object_ref_count.cpp 509 // for (Init; Cond; Inc)
534 // Cond -> "rsIntIter < NumArrayElements"
538 clang::BinaryOperator *Cond =
592 Cond,
872 // for (Init; Cond; Inc)
897 // Cond -> "rsIntIter < NumArrayElements"
901 clang::BinaryOperator *Cond =
    [all...]
  /external/llvm/lib/Bitcode/Reader/
BitcodeReader.cpp     [all...]

Completed in 710 milliseconds

1 2