Home
last modified time | relevance | path

Searched refs:IntPtrTy (Results 1 – 23 of 23) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSanitizerStats.cpp46 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSeparateConstOffsetFromGEP.cpp766 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local
772 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize()
773 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); 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()
851 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
864 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs()
889 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local
891 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics()
[all …]
DNaryReassociate.cpp423 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()
DStraightLineStrengthReduce.cpp477 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSafeStack.cpp132 Type *IntPtrTy; member in __anondfa7bab50111::SafeStack
211 IntPtrTy(DL.getIntPtrType(F.getContext())), in SafeStack()
545 IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy), in moveStaticAllocasToUnsafeStack()
546 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))), in moveStaticAllocasToUnsafeStack()
649 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack()
650 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack()
654 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack()
657 IntPtrTy); in moveDynamicAllocasToUnsafeStack()
667 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))), in moveDynamicAllocasToUnsafeStack()
DCodeGenPrepare.cpp2249 Value *GetFieldAsValue(FieldName Field, Type *IntPtrTy) { in GetFieldAsValue()
2260 return ConstantInt::get(IntPtrTy, BaseOffs); in GetFieldAsValue()
3311 Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType()); in initializeMap() local
3313 Value *DV = AM.GetFieldAsValue(DifferentField, IntPtrTy); in initializeMap()
4899 Type *IntPtrTy = DL->getIntPtrType(Addr->getType()); in optimizeMemoryInst() local
4927 if (cast<IntegerType>(IntPtrTy)->getBitWidth() > in optimizeMemoryInst()
4971 if (V->getType() != IntPtrTy) in optimizeMemoryInst()
4972 V = Builder.CreateIntCast(V, IntPtrTy, /*isSigned=*/true, "sunkaddr"); in optimizeMemoryInst()
4980 if (V->getType() == IntPtrTy) { in optimizeMemoryInst()
4983 assert(cast<IntegerType>(IntPtrTy)->getBitWidth() < in optimizeMemoryInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp397 IntegerType *IntPtrTy = M.getDataLayout().getIntPtrType(M.getContext(), 0); member in __anone331e0af0111::LowerTypeTestsModule
639 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), in allocateByteArrays()
640 ConstantInt::get(IntPtrTy, ByteArrayOffsets[I])}; in allocateByteArrays()
743 Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy); in lowerTypeTestCall()
746 ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy); in lowerTypeTestCall()
761 B.CreateLShr(PtrOffset, ConstantExpr::getZExt(TIL.AlignLog2, IntPtrTy)); in lowerTypeTestCall()
767 IntPtrTy)); in lowerTypeTestCall()
991 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importTypeId()
992 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importTypeId()
996 if (AbsWidth == IntPtrTy->getBitWidth()) in importTypeId()
[all …]
DGlobalOpt.cpp1326 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); in PerformHeapAllocSRoA() local
1327 Value *NMI = CallInst::CreateMalloc(CI, IntPtrTy, FieldTy, in PerformHeapAllocSRoA()
1328 ConstantInt::get(IntPtrTy, TypeSize), in PerformHeapAllocSRoA()
1552 Type *IntPtrTy = DL.getIntPtrType(CI->getType()); in tryToOptimizeStoreOfMallocToGlobal() local
1554 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); in tryToOptimizeStoreOfMallocToGlobal()
1555 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); in tryToOptimizeStoreOfMallocToGlobal()
1559 CallInst::CreateMalloc(CI, IntPtrTy, AllocSTy, AllocSize, NumElements, in tryToOptimizeStoreOfMallocToGlobal()
DWholeProgramDevirt.cpp456 IntegerType *IntPtrTy; member
484 IntPtrTy(M.getDataLayout().getIntPtrType(M.getContext(), 0)), in DevirtModule()
1299 auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min)); in importConstant()
1300 auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max)); in importConstant()
1305 if (AbsWidth == IntPtrTy->getBitWidth()) in importConstant()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64SelectionDAGInfo.cpp35 Type *IntPtrTy = Type::getInt8PtrTy(*DAG.getContext()); in EmitTargetCodeForMemset() local
39 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
DAArch64LegalizerInfo.cpp733 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg() local
745 auto AlignMinus1 = MIRBuilder.buildConstant(IntPtrTy, Align - 1); in legalizeVaArg()
760 auto Size = MIRBuilder.buildConstant(IntPtrTy, alignTo(ValSize, PtrSize)); in legalizeVaArg()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp523 BasicBlock *InsertAtEnd, Type *IntPtrTy, in createMalloc() argument
536 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
537 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
539 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
542 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
550 Constant *Scale = ConstantExpr::getIntegerCast(CO, IntPtrTy, in createMalloc()
565 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
573 MallocFunc = M->getOrInsertFunction("malloc", BPTy, IntPtrTy); in createMalloc()
611 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
615 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp78 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in EmitTargetCodeForMemset() local
82 Entry.Ty = IntPtrTy; in EmitTargetCodeForMemset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp1221 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local
1225 IntPtrTy, false); in ConstantFoldCompareInstOperands()
1233 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local
1234 if (CE0->getType() == IntPtrTy) { in ConstantFoldCompareInstOperands()
1245 Type *IntPtrTy = DL.getIntPtrType(CE0->getType()); in ConstantFoldCompareInstOperands() local
1250 IntPtrTy, false); in ConstantFoldCompareInstOperands()
1252 IntPtrTy, false); in ConstantFoldCompareInstOperands()
1259 Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType()); in ConstantFoldCompareInstOperands() local
1260 if (CE0->getType() == IntPtrTy && in ConstantFoldCompareInstOperands()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DIRBuilder.h2798 Type *IntPtrTy, Value *OffsetValue, in CreateAlignmentAssumptionHelper() argument
2800 Value *PtrIntValue = CreatePtrToInt(PtrValue, IntPtrTy, "ptrint"); in CreateAlignmentAssumptionHelper()
2808 if (OffsetValue->getType() != IntPtrTy) in CreateAlignmentAssumptionHelper()
2809 OffsetValue = CreateIntCast(OffsetValue, IntPtrTy, /*isSigned*/ true, in CreateAlignmentAssumptionHelper()
2815 Value *Zero = ConstantInt::get(IntPtrTy, 0); in CreateAlignmentAssumptionHelper()
2842 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); variable
2844 Value *Mask = ConstantInt::get(IntPtrTy, Alignment - 1);
2845 return CreateAlignmentAssumptionHelper(DL, PtrValue, Mask, IntPtrTy,
2868 Type *IntPtrTy = getIntPtrTy(DL, PtrTy->getAddressSpace()); variable
2870 if (Alignment->getType() != IntPtrTy)
[all …]
DInstructions.h1602 static Instruction *CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy,
1607 static Instruction *CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy,
1612 static Instruction *CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy,
1618 static Instruction *CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp1827 LLT IntPtrTy = getLLTForType(*IntPtrIRTy, *DL); in translateAlloca() local
1828 if (MRI->getType(NumElts) != IntPtrTy) { in translateAlloca()
1829 Register ExtElts = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca()
1834 Register AllocSize = MRI->createGenericVirtualRegister(IntPtrTy); in translateAlloca()
1847 auto SAMinusOne = MIRBuilder.buildConstant(IntPtrTy, StackAlign - 1); in translateAlloca()
1848 auto AllocAdd = MIRBuilder.buildAdd(IntPtrTy, AllocSize, SAMinusOne, in translateAlloca()
1851 MIRBuilder.buildConstant(IntPtrTy, ~(uint64_t)(StackAlign - 1)); in translateAlloca()
1852 auto AlignedAlloc = MIRBuilder.buildAnd(IntPtrTy, AllocAdd, AlignCst); in translateAlloca()
DLegalizerHelper.cpp4262 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in lowerDynStackAlloc() local
4266 SPTmp = MIRBuilder.buildCast(IntPtrTy, SPTmp); in lowerDynStackAlloc()
4271 auto Alloc = MIRBuilder.buildSub(IntPtrTy, SPTmp, AllocSize); in lowerDynStackAlloc()
4273 APInt AlignMask(IntPtrTy.getSizeInBits(), Align, true); in lowerDynStackAlloc()
4275 auto AlignCst = MIRBuilder.buildConstant(IntPtrTy, AlignMask); in lowerDynStackAlloc()
4276 Alloc = MIRBuilder.buildAnd(IntPtrTy, Alloc, AlignCst); in lowerDynStackAlloc()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp2036 Type *IntPtrTy = Builder.getIntPtrTy(*DL, SI->getPointerAddressSpace()); in processCopyingStore() local
2146 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processCopyingStore()
2150 SE->getAddExpr(BECount, SE->getOne(IntPtrTy), SCEV::FlagNUW); in processCopyingStore()
2152 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtrTy, StoreSize), in processCopyingStore()
2154 Value *NumBytes = Expander.expandCodeFor(NumBytesS, IntPtrTy, ExpPt); in processCopyingStore()
2200 Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy); in processCopyingStore()
2201 Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy); in processCopyingStore()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp230 Type *IntPtrTy = IC.getDataLayout().getIntPtrType(AI.getType()); in simplifyAllocaArraySize() local
231 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize()
232 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
DInstCombineCompares.cpp314 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); in foldCmpLoadFromIndexedGlobal() local
315 unsigned PtrSize = IntPtrTy->getIntegerBitWidth(); in foldCmpLoadFromIndexedGlobal()
317 Idx = Builder.CreateTrunc(Idx, IntPtrTy); in foldCmpLoadFromIndexedGlobal()
483 Type *IntPtrTy = DL.getIntPtrType(GEP->getOperand(0)->getType()); in evaluateGEPOffsetExpression() local
484 unsigned IntPtrWidth = IntPtrTy->getIntegerBitWidth(); in evaluateGEPOffsetExpression()
490 VariableIdx = IC.Builder.CreateTrunc(VariableIdx, IntPtrTy); in evaluateGEPOffsetExpression()
509 if (VariableIdx->getType() != IntPtrTy) in evaluateGEPOffsetExpression()
510 VariableIdx = IC.Builder.CreateIntCast(VariableIdx, IntPtrTy, in evaluateGEPOffsetExpression()
512 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); in evaluateGEPOffsetExpression()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp466 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); in LowerLOAD() local
470 Entry.Ty = IntPtrTy; in LowerLOAD()
476 CallingConv::C, IntPtrTy, in LowerLOAD()
517 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(Context); in LowerSTORE() local
521 Entry.Ty = IntPtrTy; in LowerSTORE()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp3204 Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext()); in LowerINIT_TRAMPOLINE() local
3209 Entry.Ty = IntPtrTy; in LowerINIT_TRAMPOLINE()