| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/Utils/ |
| H A D | Local.h | 32 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); variable 33 Value *Result = Constant::getNullValue(IntPtrTy); 40 unsigned IntPtrWidth = IntPtrTy->getScalarType()->getIntegerBitWidth(); 62 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size), 67 Constant *Scale = ConstantInt::get(IntPtrTy, Size); 68 Constant *OC = ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); 75 if (Op->getType() != IntPtrTy) 76 Op = Builder->CreateIntCast(Op, IntPtrTy, true, Op->getName()+".c"); 79 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 47 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() local 54 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() - in create() 66 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2), in create() 67 ConstantInt::get(IntPtrTy, Inits.size() - 1), in create()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 766 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local 772 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize() 817 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs() local 843 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() 849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs() 864 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs() 889 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local 904 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() 910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics() 923 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset)); in lowerToArithmetics() [all …]
|
| H A D | NaryReassociate.cpp | 423 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in tryReassociateGEPAtIndex() local 424 if (RHS->getType() != IntPtrTy) in tryReassociateGEPAtIndex() 425 RHS = Builder.CreateSExtOrTrunc(RHS, IntPtrTy); in tryReassociateGEPAtIndex() 428 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
|
| H A D | StraightLineStrengthReduce.cpp | 477 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP() local 479 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP() 668 Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType()); in rewriteCandidateWithBasis() local 684 Bump = Builder.CreateSExtOrTrunc(Bump, IntPtrTy); in rewriteCandidateWithBasis()
|
| H A D | LoopIdiomRecognize.cpp | 995 Type *IntPtrTy = Builder.getIntPtrTy(*DL, StrAS); in processLoopStoreOfLoopLoad() local 999 StrStart = getStartForNegStride(StrStart, BECount, IntPtrTy, StoreSize, SE); in processLoopStoreOfLoopLoad() 1025 LdStart = getStartForNegStride(LdStart, BECount, IntPtrTy, StoreSize, SE); in processLoopStoreOfLoopLoad() 1047 getNumBytes(BECount, IntPtrTy, StoreSize, CurLoop, DL, SE); in processLoopStoreOfLoopLoad() 1050 Expander.expandCodeFor(NumBytesS, IntPtrTy, Preheader->getTerminator()); in processLoopStoreOfLoopLoad()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AArch64/ |
| H A D | AArch64SelectionDAGInfo.cpp | 36 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 40 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
| H A D | AArch64LegalizerInfo.cpp | 464 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg() local 476 auto AlignMinus1 = MIRBuilder.buildConstant(IntPtrTy, Align - 1); in legalizeVaArg() 492 unsigned SizeReg = MRI.createGenericVirtualRegister(IntPtrTy); in legalizeVaArg()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 132 Type *IntPtrTy; member in __anona08a2d6e0111::SafeStack 211 IntPtrTy(DL.getIntPtrType(F.getContext())), in SafeStack() 544 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack() 545 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))), in moveStaticAllocasToUnsafeStack() 656 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack() 657 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack() 661 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack() 663 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(UnsafeStackPtr), IntPtrTy); in moveDynamicAllocasToUnsafeStack() 673 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))), in moveDynamicAllocasToUnsafeStack()
|
| H A D | CodeGenPrepare.cpp | 1992 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { in GetFieldAsValue() 2003 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue() 4623 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 4651 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst() 4695 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 4704 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() 4763 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local 4775 if (V->getType() != IntPtrTy) in optimizeMemoryInst() 4783 if (V->getType() == IntPtrTy) { in optimizeMemoryInst() 4789 V = Builder.CreateTrunc(V, IntPtrTy, "sunkaddr"); in optimizeMemoryInst() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | PtrUseVisitor.h | 226 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); in visitPtr() local 228 Offset = APInt(IntPtrTy->getBitWidth(), 0); in visitPtr()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | ConstantInitBuilder.cpp | 136 base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy); in getRelativeOffset() 137 target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy); in getRelativeOffset() 141 if (Builder.CGM.IntPtrTy != offsetType) { in getRelativeOffset()
|
| H A D | CodeGenTypeCache.h | 47 llvm::IntegerType *IntPtrTy; member
|
| H A D | CGExpr.cpp | 720 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 727 llvm::ConstantInt::get(IntPtrTy, Size)); in EmitTypeCheck() 743 PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy); in EmitTypeCheck() 810 Hash = Builder.CreateTrunc(Hash, IntPtrTy); in EmitTypeCheck() 1988 llvm::Type *ResultType = IntPtrTy; in EmitStoreThroughLValue() 2754 llvm::Type *TargetTy = IntPtrTy; in EmitCheckValue() 3007 ArgTypes.push_back(IntPtrTy); in EmitCheck() 3164 IntPtrTy); in EmitCfiCheckFail() 3376 if (Promote && Idx->getType() != IntPtrTy) in EmitArraySubscriptExpr() 3565 EmitScalarExpr(LowerBound), IntPtrTy, in EmitOMPArraySectionExpr() [all …]
|
| H A D | CodeGenFunction.cpp | 503 auto *GOTAsInt = llvm::ConstantExpr::getPtrToInt(GV, IntPtrTy); in EncodeAddrForUseInPrologue() 504 auto *FuncAsInt = llvm::ConstantExpr::getPtrToInt(F, IntPtrTy); in EncodeAddrForUseInPrologue() 506 return (IntPtrTy == Int32Ty) in EncodeAddrForUseInPrologue() 515 auto *PCRelAsInt = Builder.CreateSExt(EncodedAddr, IntPtrTy); in DecodeAddrUsedInPrologue() 516 auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int"); in DecodeAddrUsedInPrologue() 1747 = llvm::ConstantInt::get(CGF.IntPtrTy, baseSize.getQuantity()); in emitNonZeroVLAInit() 2233 llvm::Value *AlignmentVal = llvm::ConstantInt::get(IntPtrTy, Alignment); in EmitAlignmentAssumption()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 749 Type *IntPtrTy = DL.getIntPtrType(ResultTy); in CastGEPIndices() local 750 Type *IntPtrScalarTy = IntPtrTy->getScalarType(); in CastGEPIndices() 761 ? IntPtrTy in CastGEPIndices() 762 : IntPtrTy->getScalarType(); in CastGEPIndices() 822 Type *IntPtrTy = DL.getIntPtrType(Ptr->getType()); in SymbolicallyEvaluateGEP() local 833 assert((!CE || CE->getType() == IntPtrTy) && in SymbolicallyEvaluateGEP() 848 unsigned BitWidth = DL.getTypeSizeInBits(IntPtrTy); in SymbolicallyEvaluateGEP() 928 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 1196 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local 1209 if (CE0->getType() == IntPtrTy) { in ConstantFoldCompareInstOperands() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 341 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in __anonb4fd30e80111::LowerTypeTestsModule 581 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays() 582 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays() 685 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall() 688 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy); in lowerTypeTestCall() 709 IntPtrTy)); in lowerTypeTestCall() 926 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importTypeId() 931 if (AbsWidth == IntPtrTy->getBitWidth()) in importTypeId() 1070 TIL.SizeM1 = ConstantInt::get(IntPtrTy, BSI.BitSize - 1); in lowerTypeTestCalls() 1451 ArrayRef<Constant *>{ConstantInt::get(IntPtrTy, 0), in buildBitSetsFromFunctionsNative() [all …]
|
| H A D | WholeProgramDevirt.cpp | 419 IntegerType *IntPtrTy; member 447 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)), in DevirtModule() 1096 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importConstant() 1097 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importConstant() 1102 if (AbsWidth == IntPtrTy->getBitWidth()) in importConstant()
|
| H A D | GlobalOpt.cpp | 1309 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); in PerformHeapAllocSRoA() local 1310 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy, in PerformHeapAllocSRoA() 1311 ConstantInt::get(IntPtrTy, TypeSize), in PerformHeapAllocSRoA() 1533 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); in tryToOptimizeStoreOfMallocToGlobal() local 1535 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); in tryToOptimizeStoreOfMallocToGlobal() 1536 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); in tryToOptimizeStoreOfMallocToGlobal() 1540 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements, in tryToOptimizeStoreOfMallocToGlobal()
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | Instructions.cpp | 472 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 473 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 486 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc() 509 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in createMalloc() 547 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 555 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 573 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 580 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument 601 Type *IntPtrTy = Type::getInt8PtrTy(M->getContext()); in createFree() local 607 if (Source->getType() != IntPtrTy) in createFree() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | IRBuilder.h | 2243 Value *PtrIntValue = CreatePtrToInt(PtrValue, IntPtrTy, "ptrint"); in CreateAlignmentAssumptionHelper() 2251 if (OffsetValue->getType() != IntPtrTy) in CreateAlignmentAssumptionHelper() 2258 Value *Zero = ConstantInt::get(IntPtrTy, 0); in CreateAlignmentAssumptionHelper() 2284 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); variable 2287 return CreateAlignmentAssumptionHelper(DL, PtrValue, Mask, IntPtrTy, 2310 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); variable 2312 if (Alignment->getType() != IntPtrTy) 2313 Alignment = CreateIntCast(Alignment, IntPtrTy, /*isSigned*/ true, 2319 CreateSub(Alignment, ConstantInt::get(IntPtrTy, 1), "positivemask"); 2321 ConstantInt::get(IntPtrTy, 0), "mask"); [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86SelectionDAGInfo.cpp | 97 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local 101 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 2033 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace()); in processCopyingStore() local 2143 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processCopyingStore() 2147 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); in processCopyingStore() 2149 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), in processCopyingStore() 2151 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt); in processCopyingStore() 2197 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy); in processCopyingStore() 2198 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy); in processCopyingStore()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 231 Type *IntPtrTy = IC.getDataLayout().getIntPtrType(AI.getType()); in simplifyAllocaArraySize() local 232 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize() 233 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
|
| /freebsd-12.1/contrib/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 473 Type *IntPtrTy = TD.getIntPtrType(*DAG.getContext()); in LowerLOAD() local 477 Entry.Ty = IntPtrTy; in LowerLOAD() 483 CallingConv::C, IntPtrTy, in LowerLOAD() 531 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in LowerSTORE() local 535 Entry.Ty = IntPtrTy; in LowerSTORE()
|