Lines Matching refs:Add

344   if (I->getOpcode() == Instruction::Add ||  in getIfConst()
350 if (I->getOpcode() == Instruction::Add) in getIfConst()
364 Instruction *Add = dyn_cast<Instruction>(Inst); in getVarAndConst() local
365 if (Add == nullptr || Add->getOpcode() != Instruction::Add) in getVarAndConst()
371 if ((Const = getIfConst(Add->getOperand(0)))) in getVarAndConst()
372 Summand = Add->getOperand(1); in getVarAndConst()
373 else if ((Const = getIfConst(Add->getOperand(1)))) in getVarAndConst()
374 Summand = Add->getOperand(0); in getVarAndConst()
760 std::pair<Value *, int64_t> Add = getVarAndConst(Offsets, TypeScale); in tryCreateIncrementingGatScat() local
761 if (Add.first == nullptr) in tryCreateIncrementingGatScat()
763 Value *OffsetsIncoming = Add.first; in tryCreateIncrementingGatScat()
764 int64_t Immediate = Add.second; in tryCreateIncrementingGatScat()
773 Instruction::Add, ScaledOffsets, in tryCreateIncrementingGatScat()
809 std::pair<Value *, int64_t> Add = getVarAndConst(Offsets, TypeScale); in tryCreateIncrementingWBGatScat() local
810 if (Add.first == nullptr) in tryCreateIncrementingWBGatScat()
812 Value *OffsetsIncoming = Add.first; in tryCreateIncrementingWBGatScat()
813 int64_t Immediate = Add.second; in tryCreateIncrementingWBGatScat()
830 Instruction::Add, ScaledOffsets, in tryCreateIncrementingWBGatScat()
879 Instruction::Add, Phi->getIncomingValue(StartIndex), OffsSecondOperand, in pushOutAdd()
913 Instruction::Add, Phi, Product, "IncrementPushedOutMul", in pushOutMul()
939 if ((OpCode == Instruction::Add || OpCode == Instruction::Mul) && in hasAllGatScatUsers()
958 if (Offs->getOpcode() != Instruction::Add && in optimiseOffsets()
1008 IncInstruction->getOpcode() != Instruction::Add) in optimiseOffsets()
1062 case Instruction::Add: in optimiseOffsets()
1146 Value *Add = Builder.CreateAdd(X, Y); in CheckAndCreateOffsetAdd() local
1149 if (checkOffsetSize(Add, GEPType->getNumElements())) in CheckAndCreateOffsetAdd()
1150 return Add; in CheckAndCreateOffsetAdd()