Lines Matching refs:Add
346 if (I->getOpcode() == Instruction::Add || I->getOpcode() == Instruction::Or || in getIfConst()
353 if (I->getOpcode() == Instruction::Add) in getIfConst()
378 Instruction *Add = dyn_cast<Instruction>(Inst); in getVarAndConst() local
379 if (Add == nullptr || in getVarAndConst()
380 (Add->getOpcode() != Instruction::Add && !isAddLikeOr(Add, *DL))) in getVarAndConst()
386 if ((Const = getIfConst(Add->getOperand(0)))) in getVarAndConst()
387 Summand = Add->getOperand(1); in getVarAndConst()
388 else if ((Const = getIfConst(Add->getOperand(1)))) in getVarAndConst()
389 Summand = Add->getOperand(0); in getVarAndConst()
774 std::pair<Value *, int64_t> Add = getVarAndConst(Offsets, TypeScale); in tryCreateIncrementingGatScat() local
775 if (Add.first == nullptr) in tryCreateIncrementingGatScat()
777 Value *OffsetsIncoming = Add.first; in tryCreateIncrementingGatScat()
778 int64_t Immediate = Add.second; in tryCreateIncrementingGatScat()
787 Instruction::Add, ScaledOffsets, in tryCreateIncrementingGatScat()
823 std::pair<Value *, int64_t> Add = getVarAndConst(Offsets, TypeScale); in tryCreateIncrementingWBGatScat() local
824 if (Add.first == nullptr) in tryCreateIncrementingWBGatScat()
826 Value *OffsetsIncoming = Add.first; in tryCreateIncrementingWBGatScat()
827 int64_t Immediate = Add.second; in tryCreateIncrementingWBGatScat()
844 Instruction::Add, ScaledOffsets, in tryCreateIncrementingWBGatScat()
893 Instruction::Add, Phi->getIncomingValue(StartIndex), OffsSecondOperand, in pushOutAdd()
928 Instruction::Add, Phi, Product, "IncrementPushedOutMul", in pushOutMulShl()
954 if ((OpCode == Instruction::Add || OpCode == Instruction::Mul || in hasAllGatScatUsers()
975 if (Offs->getOpcode() != Instruction::Add && !isAddLikeOr(Offs, *DL) && in optimiseOffsets()
1026 IncInstruction->getOpcode() != Instruction::Add) in optimiseOffsets()
1080 case Instruction::Add: in optimiseOffsets()
1173 Value *Add = Builder.CreateAdd(Builder.CreateMul(X, XScale), in CheckAndCreateOffsetAdd() local
1176 if (checkOffsetSize(Add, XElType->getNumElements())) in CheckAndCreateOffsetAdd()
1177 return Add; in CheckAndCreateOffsetAdd()