Home
last modified time | relevance | path

Searched refs:PTy (Results 1 – 25 of 39) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowLevelType.cpp29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() local
30 unsigned AddrSpace = PTy->getAddressSpace(); in getLLTForType()
DSwitchLoweringUtils.cpp282 EVT PTy = TLI->getPointerTy(*DL); in findBitTestClusters() local
283 if (!TLI->isOperationLegal(ISD::SHL, PTy)) in findBitTestClusters()
286 int BitWidth = PTy.getSizeInBits(); in findBitTestClusters()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/CFGuard/
DCFGuard.cpp194 PointerType *PTy = PointerType::get(CalledOperandType, 0); in insertCFGuardDispatch() local
195 if (GuardFnGlobal->getType() != PTy) in insertCFGuardDispatch()
196 GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy); in insertCFGuardDispatch()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DModule.cpp159 auto *PTy = PointerType::get(Ty, F->getAddressSpace()); in getOrInsertFunction() local
160 if (F->getType() != PTy) in getOrInsertFunction()
161 return {Ty, ConstantExpr::getBitCast(F, PTy)}; in getOrInsertFunction()
216 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local
217 if (GVTy != PTy) in getOrInsertGlobal()
218 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
DGlobals.cpp505 PointerType *PTy = Aliasee->getType(); in create() local
506 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name, in create()
DConstantFold.cpp108 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local
110 if (PTy->getAddressSpace() == DPTy->getAddressSpace() in FoldBitCast()
111 && PTy->getElementType()->isSized()) { in FoldBitCast()
116 Type *ElTy = PTy->getElementType(); in FoldBitCast()
133 return ConstantExpr::getInBoundsGetElementPtr(PTy->getElementType(), in FoldBitCast()
384 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local
385 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf()
387 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
388 PTy->getAddressSpace()), in getFoldedSizeOf()
447 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local
[all …]
DVerifier.cpp671 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() local
672 Assert(PTy, "wrong type for intrinsic global variable", &GV); in visitGlobalVariable()
1663 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { in verifyParameterAttrs() local
1665 if (!PTy->getElementType()->isSized(&Visited)) { in verifyParameterAttrs()
1671 if (!isa<PointerType>(PTy->getElementType())) in verifyParameterAttrs()
2756 if (auto *PTy = dyn_cast<PointerType>(SrcTy->getScalarType())) in visitPtrToIntInst() local
2757 Assert(!DL.isNonIntegralPointerType(PTy), in visitPtrToIntInst()
2783 if (auto *PTy = dyn_cast<PointerType>(DestTy->getScalarType())) in visitIntToPtrInst() local
2784 Assert(!DL.isNonIntegralPointerType(PTy), in visitIntToPtrInst()
3339 if (auto *PTy = dyn_cast<PointerType>(GEP.getType())) { in visitGetElementPtrInst() local
[all …]
DType.cpp90 if (auto *PTy = dyn_cast<PointerType>(this)) { in canLosslesslyBitCastTo() local
92 return PTy->getAddressSpace() == OtherPTy->getAddressSpace(); in canLosslesslyBitCastTo()
DAsmWriter.cpp612 PointerType *PTy = cast<PointerType>(Ty); in print() local
613 print(PTy->getElementType(), OS); in print()
614 if (unsigned AddressSpace = PTy->getAddressSpace()) in print()
627 VectorType *PTy = cast<VectorType>(Ty); in print() local
629 if (PTy->isScalable()) in print()
631 OS << PTy->getNumElements() << " x "; in print()
632 print(PTy->getElementType(), OS); in print()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp191 Type *PTy = nullptr; // Type of the pointer operand. member
194 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode()
205 if (auto *PTy = dyn_cast<PointerType>(Ty)) in next_type() local
206 return PTy->getElementType(); in next_type()
258 if (GN.PTy->isStructTy()) { in operator <<()
259 StructType *STy = cast<StructType>(GN.PTy); in operator <<()
261 OS << GN.PTy->getStructName(); in operator <<()
266 OS << *GN.PTy; in operator <<()
360 N->PTy = PtrOp->getType(); in processGepInst()
390 Nx->PTy = PtrTy; in processGepInst()
[all …]
DHexagonTargetObjectFile.cpp312 const VectorType *PTy = cast<const VectorType>(Ty); in getSmallestAddressableSize() local
313 return getSmallestAddressableSize(PTy->getElementType(), GV, TM); in getSmallestAddressableSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1012 PointerType *PTy = GVar->getType(); in printModuleLevelGV() local
1131 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV()
1156 if ((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1157 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) { in printModuleLevelGV()
1172 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV()
1191 if (((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1192 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) && in printModuleLevelGV()
1487 auto *PTy = dyn_cast<PointerType>(Ty); in emitFunctionParamList() local
1489 if (PTy) { in emitFunctionParamList()
1495 Type *ETy = PTy->getElementType(); in emitFunctionParamList()
[all …]
DNVPTXAsmPrinter.h163 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local
165 if (PTy && PTy->getAddressSpace() != 0) { in print()
DNVPTXISelLowering.cpp1357 auto *PTy = dyn_cast<PointerType>(Ty); in getPrototype() local
1358 assert(PTy && "Param with byval attribute should be a pointer type"); in getPrototype()
1359 Type *ETy = PTy->getElementType(); in getPrototype()
1581 auto *PTy = dyn_cast<PointerType>(Args[i].Ty); in LowerCall() local
1582 assert(PTy && "Type of a byval parameter should be pointer"); in LowerCall()
1583 ComputePTXValueVTs(*this, DL, PTy->getElementType(), VTs, &Offsets, 0); in LowerCall()
2447 auto *PTy = dyn_cast<PointerType>(Ty); in isImageOrSamplerVal() local
2449 if (!PTy) in isImageOrSamplerVal()
2455 auto *STy = dyn_cast<StructType>(PTy->getElementType()); in isImageOrSamplerVal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp404 PointerType *PTy, in expandAddToGEP() argument
407 Type *OriginalElTy = PTy->getElementType(); in expandAddToGEP()
417 Type *IntIdxTy = DL.getIndexType(PTy); in expandAddToGEP()
509 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP()
586 if (V->getType() != PTy) in expandAddToGEP()
587 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP()
596 Value *SCEVExpander::expandAddToGEP(const SCEV *Op, PointerType *PTy, Type *Ty, in expandAddToGEP() argument
599 return expandAddToGEP(Ops, Ops + 1, PTy, Ty, V); in expandAddToGEP()
714 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local
727 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr()
[all …]
DLazyValueInfo.cpp730 PointerType *PTy = dyn_cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local
731 if (PTy && in solveBlockValueNonLocal()
734 !NullPointerIsDefined(BB->getParent(), PTy->getAddressSpace())))) { in solveBlockValueNonLocal()
735 Result = ValueLatticeElement::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
767 PointerType *PTy = dyn_cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local
768 if (PTy && isObjectDereferencedInBlock(Val, BB) && in solveBlockValueNonLocal()
769 !NullPointerIsDefined(BB->getParent(), PTy->getAddressSpace())) { in solveBlockValueNonLocal()
770 Result = ValueLatticeElement::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
DInlineCost.cpp2078 PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType()); in getCallsiteCost() local
2079 unsigned TypeSize = DL.getTypeSizeInBits(PTy->getElementType()); in getCallsiteCost()
2080 unsigned AS = PTy->getAddressSpace(); in getCallsiteCost()
2133 PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType()); in getInlineCost() local
2134 if (PTy->getAddressSpace() != AllocaAS) in getInlineCost()
DConstantFolding.cpp504 auto *PTy = cast<PointerType>(C->getType()); in FoldReinterpretLoadFromConstPtr() local
509 unsigned AS = PTy->getAddressSpace(); in FoldReinterpretLoadFromConstPtr()
909 auto *PTy = cast<PointerType>(Ptr->getType()); in SymbolicallyEvaluateGEP() local
911 !DL.isNonIntegralPointerType(PTy)) { in SymbolicallyEvaluateGEP()
920 Type *Ty = PTy; in SymbolicallyEvaluateGEP()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFAbstractMemberAccess.cpp380 const auto *PTy = dyn_cast<DICompositeType>(PType); in IsValidAIChain() local
382 assert(PTy && CTy && "ParentType or ChildType is null or not composite"); in IsValidAIChain()
384 uint32_t PTyTag = PTy->getTag(); in IsValidAIChain()
396 return PTy->getBaseType() == CTy->getBaseType(); in IsValidAIChain()
400 Ty = PTy->getBaseType(); in IsValidAIChain()
402 Ty = dyn_cast<DIType>(PTy->getElements()[ParentAI]); in IsValidAIChain()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDataLayout.h385 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() local
386 return PTy && isNonIntegralPointerType(PTy); in isNonIntegralPointerType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h350 PointerType *PTy, Type *Ty, Value *V);
351 Value *expandAddToGEP(const SCEV *Op, PointerType *PTy, Type *Ty, Value *V);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp279 auto *PTy = cast<PointerType>(U->get()->getType()); in runOnModule() local
280 auto *Ty = dyn_cast<FunctionType>(PTy->getElementType()); in runOnModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetLowering.h1229 if (auto *PTy = dyn_cast<PointerType>(Ty)) variable
1230 return getPointerTy(DL, PTy->getAddressSpace());
1235 if (auto *PTy = dyn_cast<PointerType>(EltTy)) { variable
1236 EVT PointerTy(getPointerTy(DL, PTy->getAddressSpace()));
1249 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) variable
1250 return getPointerMemTy(DL, PTy->getAddressSpace());
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLParser.cpp920 auto *PTy = dyn_cast<PointerType>(AliaseeType); in parseIndirectSymbol() local
921 if (!PTy) in parseIndirectSymbol()
923 unsigned AddrSpace = PTy->getAddressSpace(); in parseIndirectSymbol()
925 if (IsAlias && Ty != PTy->getElementType()) in parseIndirectSymbol()
930 if (!IsAlias && !PTy->getElementType()->isFunctionTy()) in parseIndirectSymbol()
1364 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy, in createGlobalFwdRef() argument
1366 if (auto *FT = dyn_cast<FunctionType>(PTy->getElementType())) in createGlobalFwdRef()
1368 PTy->getAddressSpace(), Name, M); in createGlobalFwdRef()
1370 return new GlobalVariable(*M, PTy->getElementType(), false, in createGlobalFwdRef()
1373 PTy->getAddressSpace()); in createGlobalFwdRef()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp1354 Type *PTy = Fsincos.getFunctionType()->getParamType(1); in fold_sincos() local
1358 if (PTy->getPointerAddressSpace() != AMDGPUAS::PRIVATE_ADDRESS) in fold_sincos()
1359 P = B.CreateAddrSpaceCast(Alloc, PTy); in fold_sincos()

12