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

12

/freebsd-13-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-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp782 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
788 if ((*I)->getType() != IntPtrTy) {
789 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP);
833 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local
859 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
865 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
867 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
880 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset);
905 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); local
907 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy);
1085 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);
H A DLowerMatrixIntrinsics.cpp1119 Type *IntPtrTy = Builder.getIntPtrTy(Load->getModule()->getDataLayout()); local
1121 const_cast<Value *>(StoreLoc.Ptr), IntPtrTy, "store.begin");
1123 StoreBegin, ConstantInt::get(IntPtrTy, StoreLoc.Size.getValue()),
1126 IntPtrTy, "load.begin");
1136 LoadBegin, ConstantInt::get(IntPtrTy, LoadLoc.Size.getValue()),
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypeCache.h46 llvm::IntegerType *IntPtrTy; member in union:clang::CodeGen::CodeGenTypeCache::__anon1802
H A DConstantInitBuilder.cpp141 base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy);
142 target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy);
146 if (Builder.CGM.IntPtrTy != offsetType) {
H A DCGExpr.cpp732 llvm::Value *Size = llvm::ConstantInt::get(IntPtrTy, TySize);
743 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy };
769 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy);
771 PtrAsInt, llvm::ConstantInt::get(IntPtrTy, AlignVal - 1));
773 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0));
830 llvm::Type *VPtrTy = llvm::PointerType::get(IntPtrTy, 0);
836 Hash = Builder.CreateTrunc(Hash, IntPtrTy);
840 llvm::Type *HashTable = llvm::ArrayType::get(IntPtrTy, CacheSize);
844 llvm::ConstantInt::get(IntPtrTy,
2104 llvm::Type *ResultType = IntPtrTy;
[all...]
H A DCodeGenFunction.cpp541 auto *GOTAsInt = llvm::ConstantExpr::getPtrToInt(GV, IntPtrTy);
542 auto *FuncAsInt = llvm::ConstantExpr::getPtrToInt(F, IntPtrTy);
544 return (IntPtrTy == Int32Ty)
553 auto *PCRelAsInt = Builder.CreateSExt(EncodedAddr, IntPtrTy);
554 auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int");
1686 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp136 Type *IntPtrTy; member in class:__anon3564::SafeStack
215 IntPtrTy(DL.getIntPtrType(F.getContext())),
559 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy),
560 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))),
662 if (ArraySize->getType() != IntPtrTy)
663 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false);
667 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
670 IntPtrTy);
680 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
H A DCodeGenPrepare.cpp2345 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { argument
2356 return ConstantInt::get(IntPtrTy, BaseOffs);
3415 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType()); local
3417 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy);
5012 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); local
5040 if (cast<IntegerType>(IntPtrTy)->getBitWidth() >
5084 if (V->getType() != IntPtrTy)
5085 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr");
5093 if (V->getType() == IntPtrTy) {
5096 assert(cast<IntegerType>(IntPtrTy)
5160 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); local
5673 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.cpp35 Type *IntPtrTy = Type::getInt8PtrTy(*DAG.getContext()); local
39 Entry.Ty = IntPtrTy;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp1112 const DataLayout &DL, Value *PtrValue, Value *Mask, Type *IntPtrTy,
1114 Value *PtrIntValue = CreatePtrToInt(PtrValue, IntPtrTy, "ptrint");
1122 if (OffsetValue->getType() != IntPtrTy)
1123 OffsetValue = CreateIntCast(OffsetValue, IntPtrTy, /*isSigned*/ true,
1129 Value *Zero = ConstantInt::get(IntPtrTy, 0);
1145 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); local
1147 Value *Mask = ConstantInt::get(IntPtrTy, Alignment - 1);
1148 return CreateAlignmentAssumptionHelper(DL, PtrValue, Mask, IntPtrTy,
1158 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); local
1160 if (Alignment->getType() != IntPtrTy)
1111 CreateAlignmentAssumptionHelper( const DataLayout &DL, Value *PtrValue, Value *Mask, Type *IntPtrTy, Value *OffsetValue, Value **TheCheck) argument
[all...]
H A DInstructions.cpp578 BasicBlock *InsertAtEnd, Type *IntPtrTy,
591 ArraySize = ConstantInt::get(IntPtrTy, 1);
592 else if (ArraySize->getType() != IntPtrTy) {
594 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
597 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
605 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy,
620 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
628 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy);
666 Type *IntPtrTy, Type *AllocTy,
670 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocT
577 createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
665 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
673 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
691 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
698 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
720 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp400 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in class:__anon4545::LowerTypeTestsModule
646 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0),
647 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])};
753 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy);
756 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy);
771 B.CreateLShr(PtrOffset, ConstantExpr::getZExt(TIL.AlignLog2, IntPtrTy));
777 IntPtrTy));
1000 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
1001 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
1005 if (AbsWidth == IntPtrTy
[all...]
H A DWholeProgramDevirt.cpp501 IntegerType *IntPtrTy; member in struct:__anon4558::DevirtModule
534 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)),
1446 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
1447 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
1452 if (AbsWidth == IntPtrTy->getBitWidth())
H A DGlobalOpt.cpp1341 Type *IntPtrTy = DL.getIntPtrType(CI->getType());
1342 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy,
1343 ConstantInt::get(IntPtrTy, TypeSize),
1567 Type *IntPtrTy = DL.getIntPtrType(CI->getType());
1569 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize);
1570 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements());
1574 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86SelectionDAGInfo.cpp79 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); local
83 Entry.Ty = IntPtrTy;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h351 /// \param IntPtrTy Pointer size type
358 llvm::IntegerType *IntPtrTy,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp781 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); local
794 MIRBuilder.buildConstant(IntPtrTy, Alignment.value() - 1);
806 auto Size = MIRBuilder.buildConstant(IntPtrTy, alignTo(ValSize, PtrAlign));
/freebsd-13-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-13-stable/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp964 llvm::IntegerType *IntPtrTy, bool BranchtoEnd) {
1000 Value *MasterPtr = Builder.CreatePtrToInt(MasterAddr, IntPtrTy);
1001 Value *PrivatePtr = Builder.CreatePtrToInt(PrivateAddr, IntPtrTy);
962 CreateCopyinClauseBlocks( InsertPointTy IP, Value *MasterAddr, Value *PrivateAddr, llvm::IntegerType *IntPtrTy, bool BranchtoEnd) argument
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp1240 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); local
1244 IntPtrTy, false);
1252 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local
1253 if (CE0->getType() == IntPtrTy) {
1264 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); local
1269 IntPtrTy, false);
1271 IntPtrTy, false);
1278 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); local
1279 if (CE0->getType() == IntPtrTy &&
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp1900 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL);
1901 if (MRI->getType(NumElts) != IntPtrTy) {
1902 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy);
1909 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy);
1918 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign.value() - 1);
1919 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne,
1922 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign.value() - 1));
1923 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp467 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); local
471 Entry.Ty = IntPtrTy;
477 CallingConv::C, IntPtrTy,
518 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); local
522 Entry.Ty = IntPtrTy;

Completed in 194 milliseconds

12