Lines Matching refs:IntPtrTy
663 BasicBlock *InsertAtEnd, Type *IntPtrTy, in createMalloc() argument
676 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
677 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
679 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
682 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
690 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
705 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
713 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in createMalloc()
751 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
755 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
759 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
764 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
777 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
780 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
784 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
788 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
805 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local
807 FunctionCallee FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy); in createFree()
811 if (Source->getType() != IntPtrTy) in createFree()
812 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
815 if (Source->getType() != IntPtrTy) in createFree()
816 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()