Lines Matching refs:ResultPtr
5598 Value *ResultPtr = nullptr, *ResultIndex = nullptr; in optimizeMemoryInst() local
5602 ResultPtr = AddrMode.BaseReg; in optimizeMemoryInst()
5609 if (ResultPtr || AddrMode.Scale != 1) in optimizeMemoryInst()
5612 ResultPtr = AddrMode.ScaledReg; in optimizeMemoryInst()
5632 if (ResultPtr) in optimizeMemoryInst()
5636 ResultPtr = Builder.CreateThreadLocalAddress(BaseGV); in optimizeMemoryInst()
5638 ResultPtr = BaseGV; in optimizeMemoryInst()
5646 if (!ResultPtr && AddrMode.BaseReg) { in optimizeMemoryInst()
5647 ResultPtr = Builder.CreateIntToPtr(AddrMode.BaseReg, Addr->getType(), in optimizeMemoryInst()
5650 } else if (!ResultPtr && AddrMode.Scale == 1) { in optimizeMemoryInst()
5651 ResultPtr = Builder.CreateIntToPtr(AddrMode.ScaledReg, Addr->getType(), in optimizeMemoryInst()
5657 if (!ResultPtr && !AddrMode.BaseReg && !AddrMode.Scale && in optimizeMemoryInst()
5660 } else if (!ResultPtr) { in optimizeMemoryInst()
5706 if (ResultPtr->getType() != I8PtrTy) in optimizeMemoryInst()
5707 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
5708 ResultPtr = Builder.CreatePtrAdd(ResultPtr, ResultIndex, "sunkaddr", in optimizeMemoryInst()
5716 SunkAddr = ResultPtr; in optimizeMemoryInst()
5718 if (ResultPtr->getType() != I8PtrTy) in optimizeMemoryInst()
5719 ResultPtr = Builder.CreatePointerCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
5720 SunkAddr = Builder.CreatePtrAdd(ResultPtr, ResultIndex, "sunkaddr", in optimizeMemoryInst()