HomeSort by relevance Sort by last modified time
    Searched defs:Cond (Results 26 - 50 of 114) sorted by null

12 3 4 5

  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 586 Value *Cond = getRandomValue(CondTy);
587 Value *V = SelectInst::Create(Cond, Val0, Val1, "Sl", BB->getTerminator());
  /external/clang/lib/Analysis/
Consumed.cpp     [all...]
  /external/clang/lib/Parse/
ParseStmt.cpp     [all...]
  /external/clang/lib/StaticAnalyzer/Core/
BugReporterVisitors.cpp     [all...]
  /external/llvm/examples/Kaleidoscope/Chapter6/
toy.cpp 183 std::unique_ptr<ExprAST> Cond, Then, Else;
186 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
188 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {}
347 auto Cond = ParseExpression();
348 if (!Cond)
368 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then),
707 Value *CondV = Cond->codegen();
  /external/llvm/examples/Kaleidoscope/Chapter7/
toy.cpp 189 std::unique_ptr<ExprAST> Cond, Then, Else;
192 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
194 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {}
366 auto Cond = ParseExpression();
367 if (!Cond)
387 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then),
812 Value *CondV = Cond->codegen();
    [all...]
  /external/llvm/examples/Kaleidoscope/MCJIT/cached/
toy-jit.cpp 182 ExprAST *Cond, *Then, *Else;
184 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
185 : Cond(cond), Then(then), Else(_else) {}
342 ExprAST *Cond = ParseExpression();
343 if (!Cond) return 0;
360 return new IfExprAST(Cond, Then, Else);
739 Value *CondV = Cond->Codegen();
    [all...]
  /external/llvm/examples/Kaleidoscope/MCJIT/lazy/
toy-jit.cpp 167 ExprAST *Cond, *Then, *Else;
169 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
170 : Cond(cond), Then(then), Else(_else) {}
327 ExprAST *Cond = ParseExpression();
328 if (!Cond) return 0;
345 return new IfExprAST(Cond, Then, Else);
721 Value *CondV = Cond->Codegen();
    [all...]
  /external/llvm/lib/Analysis/
InlineCost.cpp     [all...]
  /external/llvm/lib/CodeGen/
BranchFolding.cpp 219 SmallVector<MachineOperand, 4> Cond;
220 if (!TII->AnalyzeBranch(MBB, TBB, FBB, Cond, true))
221 MadeChange |= MBB.CorrectExtraCFGEdges(TBB, FBB, !Cond.empty());
489 SmallVector<MachineOperand, 4> Cond;
492 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) {
494 if (TBB == NextBB && !Cond.empty() && !FBB) {
495 if (!TII->ReverseBranchCondition(Cond)) {
497 TII->InsertBranch(*CurMBB, SuccBB, nullptr, Cond, dl);
    [all...]
MachineBasicBlock.cpp 420 SmallVector<MachineOperand, 4> Cond;
422 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond);
425 if (Cond.empty()) {
450 TII->InsertBranch(*this, TBB, nullptr, Cond, DL);
458 if (TII->ReverseBranchCondition(Cond))
461 TII->InsertBranch(*this, FBB, nullptr, Cond, DL);
464 TII->InsertBranch(*this, TBB, nullptr, Cond, DL);
488 TII->InsertBranch(*this, TBB, nullptr, Cond, DL);
494 if (TII->ReverseBranchCondition(Cond)) {
496 Cond.clear()
    [all...]
MachineBlockPlacement.cpp     [all...]
MachineLICM.cpp 776 SmallVector<MachineOperand, 4> Cond;
777 if (!TII->AnalyzeBranch(*BB, TBB, FBB, Cond, false) && Cond.empty())
    [all...]
MachineVerifier.cpp 569 SmallVector<MachineOperand, 4> Cond;
571 TBB, FBB, Cond)) {
598 if (!Cond.empty()) {
602 } else if (TBB && !FBB && Cond.empty()) {
625 } else if (TBB && !FBB && !Cond.empty()) {
684 if (Cond.empty()) {
    [all...]
PeepholeOptimizer.cpp 588 SmallVector<MachineOperand, 4> Cond;
589 if (TII->analyzeSelect(MI, Cond, TrueOp, FalseOp, Optimizable))
    [all...]
  /external/llvm/lib/IR/
ConstantFold.cpp 726 Constant *llvm::ConstantFoldSelectInstruction(Constant *Cond,
729 if (Cond->isNullValue()) return V2;
730 if (Cond->isAllOnesValue()) return V1;
733 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) {
742 Constant *Cond = dyn_cast<Constant>(CondV->getOperand(i));
745 } else if (isa<UndefValue>(Cond)) {
748 if (!isa<ConstantInt>(Cond)) break;
749 V = Cond->isNullValue() ? V2Element : V1Element;
759 if (isa<UndefValue>(Cond)) {
769 if (TrueVal->getOperand(0) == Cond)
    [all...]
  /external/llvm/lib/Target/Hexagon/
HexagonSplitDouble.cpp 451 // the header (either "br-cond header" or "br-cond exit; br header").
454 SmallVector<MachineOperand,2> Cond;
455 bool BadLB = TII->AnalyzeBranch(*TmpLB, TB, FB, Cond, false);
457 // the branch opcode as the first element of Cond, and the predicate
459 if (BadLB || Cond.size() != 2)
462 if (!TII->PredOpcodeHasJMP_c(Cond[0].getImm()))
467 assert(Cond[1].isReg() && "Unexpected Cond vector from AnalyzeBranch");
469 unsigned PR = Cond[1].getReg()
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineVectorOps.cpp 253 Value *Cond = SI->getCondition();
254 if (Cond->getType()->isVectorTy()) {
255 Cond = Builder->CreateExtractElement(Cond,
257 Cond->getName() + ".elt");
269 return SelectInst::Create(Cond,
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
GCOVProfiling.cpp 912 Value *Cond = Builder.CreateICmpEQ(Pred, Builder.getInt32(0xffffffff));
913 BranchInst::Create(Exit, PredNotNegOne, Cond, BB);
    [all...]
  /external/llvm/lib/Transforms/Scalar/
JumpThreading.cpp 156 bool ProcessThreadableEdges(Value *Cond, BasicBlock *BB,
635 Constant *Cond = Conds[i].first;
639 if (ConstantInt *CI = dyn_cast<ConstantInt>(Cond)) {
643 assert(isa<UndefValue>(Cond) && "Unexpected condition value");
    [all...]
LoopRerollPass.cpp     [all...]
LoopUnswitch.cpp 247 void UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val,
397 /// Cond is a condition that occurs in L. If it is invariant in the loop, or has
399 static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
405 if (Cond->getType()->isVectorTy())
409 if (isa<Constant>(Cond)) return nullptr;
414 if (L->makeLoopInvariant(Cond, Changed))
415 return Cond;
417 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond))
755 /// Given a loop that has a trivial unswitchable condition in it (a cond branch
760 void LoopUnswitch::UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val
    [all...]
StructurizeCFG.cpp 408 Value *Cond = Invert ? BoolFalse : BoolTrue;
410 Cond = Term->getCondition();
413 Cond = invert(Cond);
415 return Cond;
  /external/llvm/lib/Transforms/Utils/
Local.cpp 76 if (ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
79 BasicBlock *Destination = Cond->getZExtValue() ? Dest1 : Dest2;
80 BasicBlock *OldDest = Cond->getZExtValue() ? Dest2 : Dest1;
98 // br bool %cond, label %Dest, label %Dest
107 Value *Cond = BI->getCondition();
110 RecursivelyDeleteTriviallyDeadInstructions(Cond, TLI);
201 Value *Cond = SI->getCondition();
204 RecursivelyDeleteTriviallyDeadInstructions(Cond, TLI);
212 Value *Cond = Builder.CreateICmpEQ(SI->getCondition(),
213 FirstCase.getCaseValue(), "cond");
    [all...]
  /external/llvm/utils/TableGen/
AsmWriterEmitter.cpp 840 std::string Cond;
841 Cond = std::string("MI->getNumOperands() == ") + llvm::utostr(NumMIOps);
842 IAP.addCond(Cond);
883 Cond = std::string("MRI.getRegClass(") + Target.getName() + "::" +
887 Cond = Op + ".getReg() == MI->getOperand(" +
    [all...]

Completed in 1154 milliseconds

12 3 4 5