Lines Matching refs:IntPtrTy
2498 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { in GetFieldAsValue()
2509 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue()
3568 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType()); in initializeMap() local
3570 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy); in initializeMap()
5238 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local
5266 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst()
5310 if (V->getType() != IntPtrTy) in optimizeMemoryInst()
5311 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in optimizeMemoryInst()
5319 if (V->getType() == IntPtrTy) { in optimizeMemoryInst()
5322 assert(cast<IntegerType>(IntPtrTy)->getBitWidth() < in optimizeMemoryInst()
5325 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
5329 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), in optimizeMemoryInst()
5339 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs); in optimizeMemoryInst()
5386 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local
5397 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
5398 if (V->getType() != IntPtrTy) in optimizeMemoryInst()
5399 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in optimizeMemoryInst()
5406 if (V->getType() == IntPtrTy) { in optimizeMemoryInst()
5409 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
5410 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < in optimizeMemoryInst()
5412 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
5425 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), in optimizeMemoryInst()
5435 Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
5444 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs); in optimizeMemoryInst()
5929 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in splitLargeGEPOffsets() local
5959 Value *BaseIndex = ConstantInt::get(IntPtrTy, BaseOffset); in splitLargeGEPOffsets()
5975 Value *Index = ConstantInt::get(IntPtrTy, Offset - BaseOffset); in splitLargeGEPOffsets()