Lines Matching refs:IntPtrTy

1992   Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) {  in GetFieldAsValue()
2003 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue()
3042 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType()); in initializeMap() local
3044 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy); in initializeMap()
4623 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local
4651 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst()
4695 if (V->getType() != IntPtrTy) in optimizeMemoryInst()
4696 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in optimizeMemoryInst()
4704 if (V->getType() == IntPtrTy) { in optimizeMemoryInst()
4707 assert(cast<IntegerType>(IntPtrTy)->getBitWidth() < in optimizeMemoryInst()
4710 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4714 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), in optimizeMemoryInst()
4724 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs); in optimizeMemoryInst()
4763 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local
4774 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4775 if (V->getType() != IntPtrTy) in optimizeMemoryInst()
4776 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in optimizeMemoryInst()
4783 if (V->getType() == IntPtrTy) { in optimizeMemoryInst()
4786 V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4787 } else if (cast<IntegerType>(IntPtrTy)->getBitWidth() < in optimizeMemoryInst()
4789 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4802 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), in optimizeMemoryInst()
4812 Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr"); in optimizeMemoryInst()
4821 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs); in optimizeMemoryInst()
5164 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in splitLargeGEPOffsets() local
5194 Value *BaseIndex = ConstantInt::get(IntPtrTy, BaseOffset); in splitLargeGEPOffsets()
5210 Value *Index = ConstantInt::get(IntPtrTy, Offset - BaseOffset); in splitLargeGEPOffsets()