Lines Matching refs:GetElementPtrInst

238   static Value *Extract(Value *Idx, GetElementPtrInst *GEP,
244 static int64_t Find(Value *Idx, GetElementPtrInst *GEP,
387 bool splitGEP(GetElementPtrInst *GEP);
396 void lowerToSingleIndexGEPs(GetElementPtrInst *Variadic,
406 void lowerToArithmetics(GetElementPtrInst *Variadic,
414 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction);
431 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP);
458 void swapGEPOperand(GetElementPtrInst *First, GetElementPtrInst *Second);
461 bool isLegalToSwapOperand(GetElementPtrInst *First, GetElementPtrInst *Second,
767 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract()
785 int64_t ConstantOffsetExtractor::Find(Value *Idx, GetElementPtrInst *GEP, in Find()
795 GetElementPtrInst *GEP) { in canonicalizeArrayIndicesToPointerSize()
813 SeparateConstOffsetFromGEP::accumulateByteOffset(GetElementPtrInst *GEP, in accumulateByteOffset()
846 GetElementPtrInst *Variadic, int64_t AccumulativeByteOffset) { in lowerToSingleIndexGEPs()
904 auto *FirstGEP = dyn_cast_or_null<GetElementPtrInst>(FirstResult); in lowerToSingleIndexGEPs()
905 auto *SecondGEP = dyn_cast<GetElementPtrInst>(ResultPtr); in lowerToSingleIndexGEPs()
917 SeparateConstOffsetFromGEP::lowerToArithmetics(GetElementPtrInst *Variadic, in lowerToArithmetics()
962 bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) { in splitGEP()
1104 NewGEP = GetElementPtrInst::Create(GEP->getResultElementType(), NewGEP, in splitGEP()
1109 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1128 NewGEP = GetElementPtrInst::Create( in splitGEP()
1134 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1170 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()