reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Instructions.h
 1782   DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);

References

include/llvm/IR/Instructions.h
 1719                   &Op<0>(), 3, InsertBefore) {
 1727                   &Op<0>(), 3, InsertAtEnd) {
 1734     Op<0>() = C;
 1735     Op<1>() = S1;
 1736     Op<2>() = S2;
 1762   const Value *getCondition() const { return Op<0>(); }
 1763   const Value *getTrueValue() const { return Op<1>(); }
 1764   const Value *getFalseValue() const { return Op<2>(); }
 1765   Value *getCondition() { return Op<0>(); }
 1766   Value *getTrueValue() { return Op<1>(); }
 1767   Value *getFalseValue() { return Op<2>(); }
 1769   void setCondition(Value *V) { Op<0>() = V; }
 1770   void setTrueValue(Value *V) { Op<1>() = V; }
 1771   void setFalseValue(Value *V) { Op<2>() = V; }
 1775   void swapValues() { Op<1>().swap(Op<2>()); }
 1775   void swapValues() { Op<1>().swap(Op<2>()); }
lib/ExecutionEngine/Interpreter/Execution.cpp
  861   Type * Ty = I.getOperand(0)->getType();
  862   GenericValue Src1 = getOperandValue(I.getOperand(0), SF);
  863   GenericValue Src2 = getOperandValue(I.getOperand(1), SF);
  864   GenericValue Src3 = getOperandValue(I.getOperand(2), SF);
lib/IR/Instructions.cpp
 4233   return SelectInst::Create(getOperand(0), getOperand(1), getOperand(2));
 4233   return SelectInst::Create(getOperand(0), getOperand(1), getOperand(2));
 4233   return SelectInst::Create(getOperand(0), getOperand(1), getOperand(2));
lib/IR/Verifier.cpp
 2522   Assert(!SelectInst::areInvalidOperands(SI.getOperand(0), SI.getOperand(1),
 2522   Assert(!SelectInst::areInvalidOperands(SI.getOperand(0), SI.getOperand(1),
 2523                                          SI.getOperand(2)),
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  224   return isa<ICmpInst>(I.getOperand(0)) ?
  225       cast<ICmpInst>(I.getOperand(0))->isSigned() : false;
  371     ExtOp1 = Builder.CreateSExt(I.getOperand(1), I32Ty);
  372     ExtOp2 = Builder.CreateSExt(I.getOperand(2), I32Ty);
  374     ExtOp1 = Builder.CreateZExt(I.getOperand(1), I32Ty);
  375     ExtOp2 = Builder.CreateZExt(I.getOperand(2), I32Ty);
  377   ExtRes = Builder.CreateSelect(I.getOperand(0), ExtOp1, ExtOp2);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  860         if (isa<ConstantPointerNull>(SI->getOperand(1)))
  861           SI->setOperand(1, ConstantPointerNull::get(NewTy));
  863         if (isa<ConstantPointerNull>(SI->getOperand(2)))
  864           SI->setOperand(2, ConstantPointerNull::get(NewTy));
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4916       SI->replaceUsesOutsideBlock(SI->getOperand(SIOpd), SI->getParent());
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
 1024       if (isSafeToLoadUnconditionally(SI->getOperand(1), LI.getType(),
 1026           isSafeToLoadUnconditionally(SI->getOperand(2), LI.getType(),
 1029             Builder.CreateLoad(LI.getType(), SI->getOperand(1),
 1030                                SI->getOperand(1)->getName() + ".val");
 1032             Builder.CreateLoad(LI.getType(), SI->getOperand(2),
 1033                                SI->getOperand(2)->getName() + ".val");
 1043       if (isa<ConstantPointerNull>(SI->getOperand(1)) &&
 1046         LI.setOperand(0, SI->getOperand(2));
 1051       if (isa<ConstantPointerNull>(SI->getOperand(2)) &&
 1054         LI.setOperand(0, SI->getOperand(1));
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  595   I.setOperand(1, SI->getOperand(NonNullOperand));
  623         *I = SI->getOperand(NonNullOperand);
  908             visitUDivOperand(Op0, SI->getOperand(1), I, Actions, Depth))
  909       if (visitUDivOperand(Op0, SI->getOperand(2), I, Actions, Depth)) {
lib/Transforms/InstCombine/InstCombineSelect.cpp
   79   if (!match(Sel.getOperand(IsEq ? 1 : 2), m_BinOp(BO)))
  110   Sel.setOperand(IsEq ? 1 : 2, Y);
  973   Sel.setOperand(1, TrueVal);
  974   Sel.setOperand(2, FalseVal);
 1415       SI.setOperand(1, CmpRHS);
 1419       SI.setOperand(2, CmpRHS);
 2232     SI.setOperand(1, FalseVal);
 2233     SI.setOperand(2, TrueVal);
 2537         SI.setOperand(1, TrueSI->getTrueValue());
 2545         SI.setOperand(0, And);
 2546         SI.setOperand(1, TrueSI->getTrueValue());
 2557         SI.setOperand(2, FalseSI->getFalseValue());
 2563         SI.setOperand(0, Or);
 2564         SI.setOperand(2, FalseSI->getFalseValue());
 2627     SI.setOperand(0, NotCond);
 2628     SI.setOperand(1, FalseVal);
 2629     SI.setOperand(2, TrueVal);
lib/Transforms/InstCombine/InstructionCombining.cpp
  896       if ((SI->getOperand(1) == Op0 && SI->getOperand(2) == Op1) ||
  896       if ((SI->getOperand(1) == Op0 && SI->getOperand(2) == Op1) ||
  897           (SI->getOperand(2) == Op0 && SI->getOperand(1) == Op1))
  897           (SI->getOperand(2) == Op0 && SI->getOperand(1) == Op1))
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  127   if (isa<Constant>(S->getOperand(0))) return false;
lib/Transforms/Scalar/JumpThreading.cpp
 2527         LVI->getPredicateOnEdge(CondCmp->getPredicate(), SI->getOperand(1),
 2530         LVI->getPredicateOnEdge(CondCmp->getPredicate(), SI->getOperand(2),
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2315     if (AddOperator *BO = dyn_cast<AddOperator>(Sel->getOperand(1)))
 2319     if (AddOperator *BO = dyn_cast<AddOperator>(Sel->getOperand(2)))
 2325   } else if (SE.getSCEV(Sel->getOperand(1)) == MaxRHS)
 2326     NewRHS = Sel->getOperand(1);
 2327   else if (SE.getSCEV(Sel->getOperand(2)) == MaxRHS)
 2328     NewRHS = Sel->getOperand(2);
 2348   Instruction *Cmp = cast<Instruction>(Sel->getOperand(0));
lib/Transforms/Scalar/SROA.cpp
  627     return SI.getOperand(1 + CI->isZero());
  628   if (SI.getOperand(1) == SI.getOperand(2))
  628   if (SI.getOperand(1) == SI.getOperand(2))
  629     return SI.getOperand(1);
 3187     if (SI.getOperand(1) == OldPtr)
 3188       SI.setOperand(1, NewPtr);
 3189     if (SI.getOperand(2) == OldPtr)
 3190       SI.setOperand(2, NewPtr);
lib/Transforms/Scalar/Scalarizer.cpp
  559   Scatterer Op1 = scatter(&SI, SI.getOperand(1));
  560   Scatterer Op2 = scatter(&SI, SI.getOperand(2));
  566   if (SI.getOperand(0)->getType()->isVectorTy()) {
  567     Scatterer Op0 = scatter(&SI, SI.getOperand(0));
  573     Value *Op0 = SI.getOperand(0);
lib/Transforms/Utils/Evaluator.cpp
  417       InstResult = ConstantExpr::getSelect(getVal(SI->getOperand(0)),
  418                                            getVal(SI->getOperand(1)),
  419                                            getVal(SI->getOperand(2)));