Lines Matching refs:IntPtrTy
372 BasicBlock *InsertAtEnd, Type *IntPtrTy,
384 ArraySize = ConstantInt::get(IntPtrTy, 1);
385 else if (ArraySize->getType() != IntPtrTy) {
387 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
390 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
398 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy,
413 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
421 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL);
457 Type *IntPtrTy, Type *AllocTy,
461 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize,
474 Type *IntPtrTy, Type *AllocTy,
477 return createMalloc(NULL, InsertAtEnd, IntPtrTy, AllocTy, AllocSize,
492 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext());
494 Value *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy, NULL);
498 if (Source->getType() != IntPtrTy)
499 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore);
502 if (Source->getType() != IntPtrTy)
503 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd);
2086 Type *IntPtrTy) {
2104 return IntPtrTy->getScalarSizeInBits() ==
2107 return IntPtrTy->getScalarSizeInBits() ==
2113 bool CastInst::isNoopCast(Type *IntPtrTy) const {
2114 return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), IntPtrTy);