Lines Matching refs:getOperand
34 ConstantInt *OpC = dyn_cast<ConstantInt>(I->getOperand(OpNo)); in ShrinkDemandedConstant()
160 ComputeMaskedBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
161 ComputeMaskedBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
168 return I->getOperand(0); in SimplifyDemandedUseBits()
171 return I->getOperand(1); in SimplifyDemandedUseBits()
182 ComputeMaskedBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
183 ComputeMaskedBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
190 return I->getOperand(0); in SimplifyDemandedUseBits()
193 return I->getOperand(1); in SimplifyDemandedUseBits()
199 return I->getOperand(0); in SimplifyDemandedUseBits()
202 return I->getOperand(1); in SimplifyDemandedUseBits()
207 ComputeMaskedBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
208 ComputeMaskedBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
213 return I->getOperand(0); in SimplifyDemandedUseBits()
215 return I->getOperand(1); in SimplifyDemandedUseBits()
248 return I->getOperand(0); in SimplifyDemandedUseBits()
251 return I->getOperand(1); in SimplifyDemandedUseBits()
280 return I->getOperand(0); in SimplifyDemandedUseBits()
283 return I->getOperand(1); in SimplifyDemandedUseBits()
289 return I->getOperand(0); in SimplifyDemandedUseBits()
292 return I->getOperand(1); in SimplifyDemandedUseBits()
315 return I->getOperand(0); in SimplifyDemandedUseBits()
317 return I->getOperand(1); in SimplifyDemandedUseBits()
324 BinaryOperator::CreateOr(I->getOperand(0), I->getOperand(1), in SimplifyDemandedUseBits()
338 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
352 if (Instruction *LHSInst = dyn_cast<Instruction>(I->getOperand(0))) in SimplifyDemandedUseBits()
354 isa<ConstantInt>(I->getOperand(1)) && in SimplifyDemandedUseBits()
355 isa<ConstantInt>(LHSInst->getOperand(1)) && in SimplifyDemandedUseBits()
357 ConstantInt *AndRHS = cast<ConstantInt>(LHSInst->getOperand(1)); in SimplifyDemandedUseBits()
358 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits()
363 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
397 unsigned truncBf = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits()
411 if (!I->getOperand(0)->getType()->isIntOrIntVectorTy()) in SimplifyDemandedUseBits()
416 dyn_cast<VectorType>(I->getOperand(0)->getType())) { in SimplifyDemandedUseBits()
423 } else if (I->getOperand(0)->getType()->isVectorTy()) in SimplifyDemandedUseBits()
434 unsigned SrcBitWidth =I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits()
452 unsigned SrcBitWidth =I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits()
481 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits()
496 if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
523 BinaryOperator::CreateOr(I->getOperand(0), I->getOperand(1), in SimplifyDemandedUseBits()
587 if (ConstantInt *C0 = dyn_cast<ConstantInt>(I->getOperand(0))) { in SimplifyDemandedUseBits()
590 Instruction *Xor = BinaryOperator::CreateXor(I->getOperand(1), C0); in SimplifyDemandedUseBits()
596 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
599 if (match(I->getOperand(0), m_Shr(m_Value(VarX), m_ConstantInt(C1)))) { in SimplifyDemandedUseBits()
600 Instruction *Shr = cast<Instruction>(I->getOperand(0)); in SimplifyDemandedUseBits()
631 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
663 I->getOperand(0), I->getOperand(1), I->getName()); in SimplifyDemandedUseBits()
670 return I->getOperand(0); in SimplifyDemandedUseBits()
672 if (ConstantInt *SA = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
706 BinaryOperator *NewVal = BinaryOperator::CreateLShr(I->getOperand(0), in SimplifyDemandedUseBits()
716 if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) { in SimplifyDemandedUseBits()
724 return I->getOperand(0); in SimplifyDemandedUseBits()
754 ComputeMaskedBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
848 unsigned ShlAmt = cast<ConstantInt>(Shl->getOperand(1))->getZExtValue(); in SimplifyShrShlDemandedBits()
849 unsigned ShrAmt = cast<ConstantInt>(Shr->getOperand(1))->getZExtValue(); in SimplifyShrShlDemandedBits()
858 Value *VarX = Shr->getOperand(0); in SimplifyShrShlDemandedBits()
997 ConstantInt *Idx = dyn_cast<ConstantInt>(I->getOperand(2)); in SimplifyDemandedVectorElts()
1001 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), DemandedElts, in SimplifyDemandedVectorElts()
1012 return I->getOperand(0); in SimplifyDemandedVectorElts()
1019 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), DemandedElts2, in SimplifyDemandedVectorElts()
1030 cast<VectorType>(Shuffle->getOperand(0)->getType())->getNumElements(); in SimplifyDemandedVectorElts()
1047 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), LeftDemanded, in SimplifyDemandedVectorElts()
1052 TmpV = SimplifyDemandedVectorElts(I->getOperand(1), RightDemanded, in SimplifyDemandedVectorElts()
1094 if (ConstantVector* CV = dyn_cast<ConstantVector>(I->getOperand(0))) { in SimplifyDemandedVectorElts()
1103 TmpV = SimplifyDemandedVectorElts(I->getOperand(1), LeftDemanded, in SimplifyDemandedVectorElts()
1107 TmpV = SimplifyDemandedVectorElts(I->getOperand(2), RightDemanded, in SimplifyDemandedVectorElts()
1117 VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType()); in SimplifyDemandedVectorElts()
1154 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), InputDemandedElts, in SimplifyDemandedVectorElts()
1189 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), DemandedElts, in SimplifyDemandedVectorElts()
1192 TmpV = SimplifyDemandedVectorElts(I->getOperand(1), DemandedElts, in SimplifyDemandedVectorElts()
1202 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), DemandedElts, in SimplifyDemandedVectorElts()