Lines Matching refs:GetElementPtrInst
239 static Value *Extract(Value *Idx, GetElementPtrInst *GEP,
245 static int64_t Find(Value *Idx, GetElementPtrInst *GEP,
388 bool splitGEP(GetElementPtrInst *GEP);
397 void lowerToSingleIndexGEPs(GetElementPtrInst *Variadic,
407 void lowerToArithmetics(GetElementPtrInst *Variadic,
415 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction);
432 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP);
459 void swapGEPOperand(GetElementPtrInst *First, GetElementPtrInst *Second);
462 bool isLegalToSwapOperand(GetElementPtrInst *First, GetElementPtrInst *Second,
768 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract()
786 int64_t ConstantOffsetExtractor::Find(Value *Idx, GetElementPtrInst *GEP, in Find()
796 GetElementPtrInst *GEP) { in canonicalizeArrayIndicesToPointerSize()
814 SeparateConstOffsetFromGEP::accumulateByteOffset(GetElementPtrInst *GEP, in accumulateByteOffset()
847 GetElementPtrInst *Variadic, int64_t AccumulativeByteOffset) { in lowerToSingleIndexGEPs()
905 GetElementPtrInst *FirstGEP = dyn_cast_or_null<GetElementPtrInst>(FirstResult); in lowerToSingleIndexGEPs()
906 GetElementPtrInst *SecondGEP = dyn_cast_or_null<GetElementPtrInst>(ResultPtr); in lowerToSingleIndexGEPs()
918 SeparateConstOffsetFromGEP::lowerToArithmetics(GetElementPtrInst *Variadic, in lowerToArithmetics()
963 bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) { in splitGEP()
1105 NewGEP = GetElementPtrInst::Create(GEP->getResultElementType(), NewGEP, in splitGEP()
1110 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1129 NewGEP = GetElementPtrInst::Create( in splitGEP()
1135 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1168 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I++)) in run()
1283 GetElementPtrInst *FirstGEP, GetElementPtrInst *SecondGEP, Loop *CurLoop) { in isLegalToSwapOperand()
1349 void SeparateConstOffsetFromGEP::swapGEPOperand(GetElementPtrInst *First, in swapGEPOperand()
1350 GetElementPtrInst *Second) { in swapGEPOperand()