Lines Matching refs:IntPtrTy

442                                  BasicBlock *InsertAtEnd, Type *IntPtrTy,  in createMalloc()  argument
455 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
456 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
458 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
461 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
469 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
484 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
492 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, nullptr); in createMalloc()
529 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
533 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
537 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
542 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
556 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
559 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
563 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
567 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
584 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local
586 Value *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy, nullptr); in createFree()
590 if (Source->getType() != IntPtrTy) in createFree()
591 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
594 if (Source->getType() != IntPtrTy) in createFree()
595 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()
2370 Type *IntPtrTy) { in isNoopCast() argument
2388 return IntPtrTy->getScalarSizeInBits() == in isNoopCast()
2391 return IntPtrTy->getScalarSizeInBits() == in isNoopCast()
2397 bool CastInst::isNoopCast(Type *IntPtrTy) const { in isNoopCast()
2398 return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), IntPtrTy); in isNoopCast()
2408 Type *IntPtrTy = in isNoopCast() local
2411 return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), IntPtrTy); in isNoopCast()