Lines Matching refs:IntPtrTy

459                                  BasicBlock *InsertAtEnd, Type *IntPtrTy,  in createMalloc()  argument
472 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
473 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
475 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
478 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
486 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
501 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
509 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in createMalloc()
547 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
551 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
555 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
560 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
573 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
576 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
580 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
584 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
601 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local
603 Value *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy); in createFree()
607 if (Source->getType() != IntPtrTy) in createFree()
608 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
611 if (Source->getType() != IntPtrTy) in createFree()
612 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()