| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() local 53 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() - in create() 65 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2), in create() 66 ConstantInt::get(IntPtrTy, Inits.size() - 1), in create()
|
| H A D | RelLookupTableConverter.cpp | 110 Type *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext()); in createRelLookupTable() local 111 Constant *Base = llvm::ConstantExpr::getPtrToInt(RelLookupTable, IntPtrTy); in createRelLookupTable() 112 Constant *Target = llvm::ConstantExpr::getPtrToInt(Element, IntPtrTy); in createRelLookupTable()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 798 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local 804 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize() 849 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs() local 875 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() 881 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 896 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs() 921 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local 936 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() 942 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics() 955 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset)); in lowerToArithmetics() [all …]
|
| H A D | NaryReassociate.cpp | 447 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in tryReassociateGEPAtIndex() local 448 if (RHS->getType() != IntPtrTy) in tryReassociateGEPAtIndex() 449 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy); in tryReassociateGEPAtIndex() 452 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
|
| H A D | StraightLineStrengthReduce.cpp | 488 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP() local 490 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP() 679 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); in rewriteCandidateWithBasis() local 695 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy); in rewriteCandidateWithBasis()
|
| H A D | LowerMatrixIntrinsics.cpp | 1318 Type *IntPtrTy = Builder.getIntPtrTy(Load->getModule()->getDataLayout()); in getNonAliasingPointer() local 1320 const_cast<Value *>(StoreLoc.Ptr), IntPtrTy, "store.begin"); in getNonAliasingPointer() 1322 StoreBegin, ConstantInt::get(IntPtrTy, StoreLoc.Size.getValue()), in getNonAliasingPointer() 1325 IntPtrTy, "load.begin"); in getNonAliasingPointer() 1335 LoadBegin, ConstantInt::get(IntPtrTy, LoadLoc.Size.getValue()), in getNonAliasingPointer()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 138 Type *IntPtrTy; member in __anon2905dedd0111::SafeStack 215 IntPtrTy(DL.getIntPtrType(F.getContext())), in SafeStack() 564 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack() 565 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))), in moveStaticAllocasToUnsafeStack() 667 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack() 668 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack() 672 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack() 675 IntPtrTy); in moveDynamicAllocasToUnsafeStack() 685 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))), in moveDynamicAllocasToUnsafeStack()
|
| H A D | CodeGenPrepare.cpp | 2498 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { in GetFieldAsValue() 2509 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue() 5238 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 5266 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst() 5310 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 5319 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() 5386 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 5398 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 5406 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() 5412 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | ConstantInitBuilder.cpp | 141 base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy); in getRelativeOffsetToPosition() 142 target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy); in getRelativeOffsetToPosition() 146 if (Builder.CGM.IntPtrTy != offsetType) { in getRelativeOffsetToPosition()
|
| H A D | CodeGenTypeCache.h | 49 llvm::IntegerType *IntPtrTy; member
|
| H A D | CodeGenFunction.cpp | 569 auto *GOTAsInt = llvm::ConstantExpr::getPtrToInt(GV, IntPtrTy); in EncodeAddrForUseInPrologue() 570 auto *FuncAsInt = llvm::ConstantExpr::getPtrToInt(F, IntPtrTy); in EncodeAddrForUseInPrologue() 572 return (IntPtrTy == Int32Ty) in EncodeAddrForUseInPrologue() 581 auto *PCRelAsInt = Builder.CreateSExt(EncodedAddr, IntPtrTy); in DecodeAddrUsedInPrologue() 582 auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int"); in DecodeAddrUsedInPrologue() 1852 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity()); in emitNonZeroVLAInit() 2322 if (Alignment->getType() != IntPtrTy) in emitAlignmentAssumption() 2324 Builder.CreateIntCast(Alignment, IntPtrTy, false, "casted.align"); in emitAlignmentAssumption() 2325 if (OffsetValue && OffsetValue->getType() != IntPtrTy) in emitAlignmentAssumption() 2331 Builder.CreatePtrToInt(PtrValue, IntPtrTy, "ptrint"); in emitAlignmentAssumption() [all …]
|
| H A D | CGExpr.cpp | 749 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 775 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitTypeCheck() 842 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck() 2144 llvm::Type *ResultType = IntPtrTy; in EmitStoreThroughLValue() 3028 llvm::Type *TargetTy = IntPtrTy; in EmitCheckValue() 3279 ArgTypes.push_back(IntPtrTy); in EmitCheck() 3440 IntPtrTy); in EmitCfiCheckFail() 3728 if (Promote && Idx->getType() != IntPtrTy) in EmitArraySubscriptExpr() 3937 EmitScalarExpr(LowerBound), IntPtrTy, in EmitOMPArraySectionExpr() 3940 Idx = llvm::ConstantInt::getNullValue(IntPtrTy); in EmitOMPArraySectionExpr() [all …]
|
| H A D | CGExprScalar.cpp | 4948 auto *IntPtrTy = DL.getIntPtrType(GEP->getPointerOperandType()); in EmitGEPOffsetInBytes() local 4951 auto *Zero = llvm::ConstantInt::getNullValue(IntPtrTy); in EmitGEPOffsetInBytes() 4953 CGM.getIntrinsic(llvm::Intrinsic::sadd_with_overflow, IntPtrTy); in EmitGEPOffsetInBytes() 4955 CGM.getIntrinsic(llvm::Intrinsic::smul_with_overflow, IntPtrTy); in EmitGEPOffsetInBytes() 4996 IntPtrTy, DL.getStructLayout(STy)->getElementOffset(FieldNo)); in EmitGEPOffsetInBytes() 5001 IntPtrTy, DL.getTypeAllocSize(GTI.getIndexedType())); in EmitGEPOffsetInBytes() 5002 auto *IndexS = Builder.CreateIntCast(Index, IntPtrTy, /*isSigned=*/true); in EmitGEPOffsetInBytes() 5043 llvm::Type *IntPtrTy = DL.getIntPtrType(PtrTy); in EmitCheckedInBoundsGEP() local 5053 auto *Zero = llvm::ConstantInt::getNullValue(IntPtrTy); in EmitCheckedInBoundsGEP() 5062 auto *IntPtr = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitCheckedInBoundsGEP()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 404 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in __anonedbf80d70111::LowerTypeTestsModule 651 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() 652 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays() 758 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall() 761 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy); in lowerTypeTestCall() 782 IntPtrTy)); in lowerTypeTestCall() 1005 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importTypeId() 1010 if (AbsWidth == IntPtrTy->getBitWidth()) in importTypeId() 1147 TIL.SizeM1 = ConstantInt::get(IntPtrTy, BSI.BitSize - 1); in lowerTypeTestCalls() 1550 ArrayRef<Constant *>{ConstantInt::get(IntPtrTy, 0), in buildBitSetsFromFunctionsNative() [all …]
|
| H A D | WholeProgramDevirt.cpp | 510 IntegerType *IntPtrTy; member 548 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)), in DevirtModule() 1513 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importConstant() 1514 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importConstant() 1519 if (AbsWidth == IntPtrTy->getBitWidth()) in importConstant()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64SelectionDAGInfo.cpp | 35 Type *IntPtrTy = Type::getInt8PtrTy(*DAG.getContext()); in EmitTargetCodeForMemset() local 39 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 644 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 645 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 658 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc() 681 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in createMalloc() 719 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 727 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 745 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 752 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 773 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local 779 if (Source->getType() != IntPtrTy) in createFree() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86SelectionDAGInfo.cpp | 79 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 83 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 2054 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace()); in processCopyingStore() local 2164 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processCopyingStore() 2168 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); in processCopyingStore() 2170 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), in processCopyingStore() 2172 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt); in processCopyingStore() 2218 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy); in processCopyingStore() 2219 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy); in processCopyingStore()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 343 LLT IntPtrTy = LLT::scalar(OrigTy.getSizeInBits()); in buildCopyFromRegs() local 344 B.buildIntToPtr(OrigRegs[0], B.buildTrunc(IntPtrTy, SrcReg)); in buildCopyFromRegs() 1081 LLT IntPtrTy = LLT::scalar(ValRegTy.getSizeInBits()); in extendRegister() local 1082 ValReg = MIRBuilder.buildPtrToInt(IntPtrTy, ValReg).getReg(0); in extendRegister()
|
| H A D | IRTranslator.cpp | 2627 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL); in translateAlloca() local 2628 if (MRI->getType(NumElts) != IntPtrTy) { in translateAlloca() 2629 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca() 2636 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca() 2645 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign.value() - 1); in translateAlloca() 2646 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne, in translateAlloca() 2649 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign.value() - 1)); in translateAlloca() 2650 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst); in translateAlloca()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1283 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1287 IntPtrTy, false); in ConstantFoldCompareInstOperands() 1295 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local 1296 if (CE0->getType() == IntPtrTy) { in ConstantFoldCompareInstOperands() 1307 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1312 IntPtrTy, false); in ConstantFoldCompareInstOperands() 1314 IntPtrTy, false); in ConstantFoldCompareInstOperands() 1321 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local 1322 if (CE0->getType() == IntPtrTy && in ConstantFoldCompareInstOperands()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64LegalizerInfo.cpp | 1024 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg() local 1037 MIRBuilder.buildConstant(IntPtrTy, Alignment.value() - 1); in legalizeVaArg() 1050 auto Size = MIRBuilder.buildConstant(IntPtrTy, alignTo(ValSize, PtrAlign)); in legalizeVaArg()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 225 Type *IntPtrTy = IC.getDataLayout().getIntPtrType(AI.getType()); in simplifyAllocaArraySize() local 226 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize() 227 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 465 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); in LowerLOAD() local 469 Entry.Ty = IntPtrTy; in LowerLOAD() 475 CallingConv::C, IntPtrTy, in LowerLOAD() 516 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); in LowerSTORE() local 520 Entry.Ty = IntPtrTy; in LowerSTORE()
|