• Home
  • Raw
  • Download

Lines Matching refs:IntPtrTy

354                                  BasicBlock *InsertAtEnd, Type *IntPtrTy,  in createMalloc()  argument
366 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
367 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
380 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
395 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
403 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy, NULL); in createMalloc()
439 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
443 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
456 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
459 return createMalloc(NULL, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
474 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local
476 Value *FreeFunc = M->getOrInsertFunction("free", VoidTy, IntPtrTy, NULL); in createFree()
480 if (Source->getType() != IntPtrTy) in createFree()
481 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore); in createFree()
484 if (Source->getType() != IntPtrTy) in createFree()
485 PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd); in createFree()
2070 Type *IntPtrTy) { in isNoopCast() argument
2086 return IntPtrTy->getScalarSizeInBits() == in isNoopCast()
2089 return IntPtrTy->getScalarSizeInBits() == in isNoopCast()
2095 bool CastInst::isNoopCast(Type *IntPtrTy) const { in isNoopCast()
2096 return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), IntPtrTy); in isNoopCast()
2109 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) { in isEliminableCastPair() argument
2212 if (!IntPtrTy) in isEliminableCastPair()
2214 unsigned PtrSize = IntPtrTy->getScalarSizeInBits(); in isEliminableCastPair()
2253 if (!IntPtrTy) in isEliminableCastPair()
2255 unsigned PtrSize = IntPtrTy->getScalarSizeInBits(); in isEliminableCastPair()