Lines Matching refs:IntPtrTy

631                                  BasicBlock *InsertAtEnd, Type *IntPtrTy,  in createMalloc()  argument
644 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
645 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
647 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
650 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
658 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
673 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
681 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in createMalloc()
719 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
723 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
727 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
732 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
745 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
748 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
752 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
756 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
773 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local
775 FunctionCallee FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy); in createFree()
779 if (Source->getType() != IntPtrTy) in createFree()
780 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
783 if (Source->getType() != IntPtrTy) in createFree()
784 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()