Searched refs:IntPtrTy (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); local
53 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() -
65 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2),
66 ConstantInt::get(IntPtrTy, Inits.size() - 1),
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp766 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
772 if ((*I)->getType() != IntPtrTy) {
773 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP);
817 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local
843 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
851 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
864 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset);
889 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local
891 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy);
1069 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
[all...]
H A DNaryReassociate.cpp423 Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
424 if (RHS->getType() != IntPtrTy)
425 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy);
428 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
H A DStraightLineStrengthReduce.cpp477 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); local
479 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
668 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); local
684 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypeCache.h46 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon521
H A DConstantInitBuilder.cpp135 base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy);
136 target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy);
140 if (Builder.CGM.IntPtrTy != offsetType) {
H A DCGExpr.cpp715 llvm::Value *Size = llvm::ConstantInt::get(IntPtrTy, TySize);
726 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy };
750 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy);
752 PtrAsInt, llvm::ConstantInt::get(IntPtrTy, AlignVal - 1));
754 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0));
811 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0);
817 Hash = Builder.CreateTrunc(Hash, IntPtrTy);
821 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize);
825 llvm::ConstantInt::get(IntPtrTy,
2004 llvm::Type *ResultType = IntPtrTy;
[all...]
H A DCodeGenFunction.cpp569 auto *GOTAsInt = llvm::ConstantExpr::getPtrToInt(GV, IntPtrTy);
570 auto *FuncAsInt = llvm::ConstantExpr::getPtrToInt(F, IntPtrTy);
572 return (IntPtrTy == Int32Ty)
581 auto *PCRelAsInt = Builder.CreateSExt(EncodedAddr, IntPtrTy);
582 auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int");
1685 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity());
H A DCGExprScalar.cpp4685 auto *IntPtrTy = DL.getIntPtrType(GEP->getPointerOperandType()); local
4688 auto *Zero = llvm::ConstantInt::getNullValue(IntPtrTy);
4690 CGM.getIntrinsic(llvm::Intrinsic::sadd_with_overflow, IntPtrTy);
4692 CGM.getIntrinsic(llvm::Intrinsic::smul_with_overflow, IntPtrTy);
4733 IntPtrTy, DL.getStructLayout(STy)->getElementOffset(FieldNo));
4738 IntPtrTy, DL.getTypeAllocSize(GTI.getIndexedType()));
4739 auto *IndexS = Builder.CreateIntCast(Index, IntPtrTy, /*isSigned=*/true);
4780 llvm::Type *IntPtrTy = DL.getIntPtrType(PtrTy); local
4790 auto *Zero = llvm::ConstantInt::getNullValue(IntPtrTy);
4799 auto *IntPtr = Builder.CreatePtrToInt(Ptr, IntPtrTy);
[all...]
H A DCGObjCGNU.cpp160 llvm::IntegerType *IntPtrTy; member in class:__anon381::CGObjCGNU
2166 IntPtrTy =
2916 IntPtrTy, // strong_pointers
2917 IntPtrTy // weak_pointers
3198 return llvm::ConstantInt::get(IntPtrTy, val);
3220 llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy);
3571 llvm::Constant *ZeroPtr = llvm::ConstantInt::get(IntPtrTy, 0);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp132 Type *IntPtrTy; member in class:__anon1803::SafeStack
211 IntPtrTy(DL.getIntPtrType(F.getContext())),
545 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy),
546 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))),
649 if (ArraySize->getType() != IntPtrTy)
650 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false);
654 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
657 IntPtrTy);
667 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
H A DCodeGenPrepare.cpp2249 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { argument
2260 return ConstantInt::get(IntPtrTy, BaseOffs);
3311 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType()); local
3313 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy);
4899 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); local
4927 if (cast<IntegerType>(IntPtrTy)->getBitWidth() >
4971 if (V->getType() != IntPtrTy)
4972 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr");
4980 if (V->getType() == IntPtrTy) {
4983 assert(cast<IntegerType>(IntPtrTy)
5047 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); local
5447 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp35 Type *IntPtrTy = Type::getInt8PtrTy(*DAG.getContext()); local
39 Entry.Ty = IntPtrTy;
H A DAArch64LegalizerInfo.cpp733 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); local
745 auto AlignMinus1 = MIRBuilder.buildConstant(IntPtrTy, Align - 1);
760 auto Size = MIRBuilder.buildConstant(IntPtrTy, alignTo(ValSize, PtrSize));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp397 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in class:__anon2598::LowerTypeTestsModule
639 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0),
640 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])};
743 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy);
746 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy);
761 B.CreateLShr(PtrOffset, ConstantExpr::getZExt(TIL.AlignLog2, IntPtrTy));
767 IntPtrTy));
991 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
992 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
996 if (AbsWidth == IntPtrTy
[all...]
H A DWholeProgramDevirt.cpp456 IntegerType *IntPtrTy; member in struct:__anon2608::DevirtModule
484 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)),
1299 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
1300 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
1305 if (AbsWidth == IntPtrTy->getBitWidth())
H A DGlobalOpt.cpp1330 Type *IntPtrTy = DL.getIntPtrType(CI->getType());
1331 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy,
1332 ConstantInt::get(IntPtrTy, TypeSize),
1556 Type *IntPtrTy = DL.getIntPtrType(CI->getType());
1558 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize);
1559 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements());
1563 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp78 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local
82 Entry.Ty = IntPtrTy;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp523 BasicBlock *InsertAtEnd, Type *IntPtrTy,
536 ArraySize = ConstantInt::get(IntPtrTy, 1);
537 else if (ArraySize->getType() != IntPtrTy) {
539 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
542 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
550 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy,
565 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
573 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy);
611 Type *IntPtrTy, Type *AllocTy,
615 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocT
522 createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
610 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
618 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
636 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
643 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
665 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp1221 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); local
1225 IntPtrTy, false);
1233 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local
1234 if (CE0->getType() == IntPtrTy) {
1245 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); local
1250 IntPtrTy, false);
1252 IntPtrTy, false);
1259 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local
1260 if (CE0->getType() == IntPtrTy &&
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h2798 Type *IntPtrTy, Value *OffsetValue,
2800 Value *PtrIntValue = CreatePtrToInt(PtrValue, IntPtrTy, "ptrint");
2808 if (OffsetValue->getType() != IntPtrTy)
2809 OffsetValue = CreateIntCast(OffsetValue, IntPtrTy, /*isSigned*/ true,
2815 Value *Zero = ConstantInt::get(IntPtrTy, 0);
2842 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); local
2844 Value *Mask = ConstantInt::get(IntPtrTy, Alignment - 1);
2845 return CreateAlignmentAssumptionHelper(DL, PtrValue, Mask, IntPtrTy,
2868 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); local
2870 if (Alignment->getType() != IntPtrTy)
2796 CreateAlignmentAssumptionHelper(const DataLayout &DL, Value *PtrValue, Value *Mask, Type *IntPtrTy, Value *OffsetValue, Value **TheCheck) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp2036 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace()); local
2146 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy);
2150 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW);
2152 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize),
2154 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt);
2200 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy);
2201 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp1827 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL); local
1828 if (MRI->getType(NumElts) != IntPtrTy) {
1829 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy);
1834 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy);
1847 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign - 1);
1848 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne,
1851 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign - 1));
1852 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp466 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); local
470 Entry.Ty = IntPtrTy;
476 CallingConv::C, IntPtrTy,
517 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); local
521 Entry.Ty = IntPtrTy;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp230 Type *IntPtrTy = IC.getDataLayout().getIntPtrType(AI.getType());
231 if (AI.getArraySize()->getType() != IntPtrTy) {
232 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false);

Completed in 621 milliseconds

12