• Home
  • Raw
  • Download

Lines Matching refs:Variadic

352   void lowerToSingleIndexGEPs(GetElementPtrInst *Variadic,
361 void lowerToArithmetics(GetElementPtrInst *Variadic,
769 GetElementPtrInst *Variadic, int64_t AccumulativeByteOffset) { in lowerToSingleIndexGEPs() argument
770 IRBuilder<> Builder(Variadic); in lowerToSingleIndexGEPs()
771 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs()
774 Builder.getInt8PtrTy(Variadic->getType()->getPointerAddressSpace()); in lowerToSingleIndexGEPs()
775 Value *ResultPtr = Variadic->getOperand(0); in lowerToSingleIndexGEPs()
776 Loop *L = LI->getLoopFor(Variadic->getParent()); in lowerToSingleIndexGEPs()
786 gep_type_iterator GTI = gep_type_begin(*Variadic); in lowerToSingleIndexGEPs()
789 for (unsigned I = 1, E = Variadic->getNumOperands(); I != E; ++I, ++GTI) { in lowerToSingleIndexGEPs()
791 Value *Idx = Variadic->getOperand(I); in lowerToSingleIndexGEPs()
832 if (ResultPtr->getType() != Variadic->getType()) in lowerToSingleIndexGEPs()
833 ResultPtr = Builder.CreateBitCast(ResultPtr, Variadic->getType()); in lowerToSingleIndexGEPs()
835 Variadic->replaceAllUsesWith(ResultPtr); in lowerToSingleIndexGEPs()
836 Variadic->eraseFromParent(); in lowerToSingleIndexGEPs()
840 SeparateConstOffsetFromGEP::lowerToArithmetics(GetElementPtrInst *Variadic, in lowerToArithmetics() argument
842 IRBuilder<> Builder(Variadic); in lowerToArithmetics()
843 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics()
845 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics()
846 gep_type_iterator GTI = gep_type_begin(*Variadic); in lowerToArithmetics()
850 for (unsigned I = 1, E = Variadic->getNumOperands(); I != E; ++I, ++GTI) { in lowerToArithmetics()
852 Value *Idx = Variadic->getOperand(I); in lowerToArithmetics()
880 ResultPtr = Builder.CreateIntToPtr(ResultPtr, Variadic->getType()); in lowerToArithmetics()
881 Variadic->replaceAllUsesWith(ResultPtr); in lowerToArithmetics()
882 Variadic->eraseFromParent(); in lowerToArithmetics()