/external/llvm/unittests/Support/ |
D | Casting.cpp | 249 class PTy { class 252 PTy(Base *B) : B(B) {} in PTy() function in __anon7f3a684f0311::pointer_wrappers::PTy 262 template <> struct simplify_type<pointer_wrappers::PTy> { 264 static SimpleType getSimplifiedValue(pointer_wrappers::PTy &P) { in getSimplifiedValue() 268 template <> struct simplify_type<const pointer_wrappers::PTy> { 270 static SimpleType getSimplifiedValue(const pointer_wrappers::PTy &P) { in getSimplifiedValue() 285 pointer_wrappers::PTy MN(nullptr); 286 pointer_wrappers::PTy MB(&B); 287 pointer_wrappers::PTy MD(&D); 290 const pointer_wrappers::PTy CN(nullptr); [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 1032 PointerType *PTy = GVar->getType(); in printModuleLevelGV() local 1033 Type *ETy = PTy->getElementType(); in printModuleLevelGV() 1152 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV() 1176 if ((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1177 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) { in printModuleLevelGV() 1192 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV() 1210 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1211 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && in printModuleLevelGV() 1344 PointerType *PTy = GVar->getType(); in emitPTXGlobalVariable() local 1345 Type *ETy = PTy->getElementType(); in emitPTXGlobalVariable() [all …]
|
D | NVPTXLowerAlloca.cpp | 69 auto PTy = dyn_cast<PointerType>(allocaInst->getType()); in runOnBasicBlock() local 70 auto ETy = PTy->getElementType(); in runOnBasicBlock()
|
D | NVPTXAsmPrinter.h | 161 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local 163 if (PTy && PTy->getAddressSpace() != 0) { in print()
|
D | NVPTXISelLowering.cpp | 989 auto *PTy = dyn_cast<PointerType>(Ty); in getPrototype() local 990 assert(PTy && "Param with byval attribute should be a pointer type"); in getPrototype() 991 Type *ETy = PTy->getElementType(); in getPrototype() 1326 auto *PTy = dyn_cast<PointerType>(Args[i].Ty); in LowerCall() local 1327 assert(PTy && "Type of a byval parameter should be pointer"); in LowerCall() 1328 ComputePTXValueVTs(*this, DAG.getDataLayout(), PTy->getElementType(), in LowerCall() 2036 auto *PTy = dyn_cast<PointerType>(Ty); in isImageOrSamplerVal() local 2038 if (!PTy) in isImageOrSamplerVal() 2044 auto *STy = dyn_cast<StructType>(PTy->getElementType()); in isImageOrSamplerVal()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 170 Type *PTy; // Type of the pointer operand. member 172 GepNode() : Flags(0), Parent(0), Idx(0), PTy(0) {} in GepNode() 173 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode() 232 if (GN.PTy->isStructTy()) { in operator <<() 233 StructType *STy = cast<StructType>(GN.PTy); in operator <<() 235 OS << GN.PTy->getStructName(); in operator <<() 240 OS << *GN.PTy; in operator <<() 338 N->PTy = PtrOp->getType(); in processGepInst() 368 Nx->PTy = PtrTy; in processGepInst() 473 ID.AddPointer(N->PTy); in node_hash() [all …]
|
/external/llvm/lib/IR/ |
D | Globals.cpp | 260 PointerType *PTy = Aliasee->getType(); in create() local 261 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name, in create()
|
D | Module.cpp | 234 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local 235 if (GVTy != PTy) in getOrInsertGlobal() 236 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
|
D | ConstantFold.cpp | 109 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local 111 if (PTy->getAddressSpace() == DPTy->getAddressSpace() in FoldBitCast() 112 && PTy->getElementType()->isSized()) { in FoldBitCast() 117 Type *ElTy = PTy->getElementType(); in FoldBitCast() 135 return ConstantExpr::getInBoundsGetElementPtr(PTy->getElementType(), in FoldBitCast() 383 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local 384 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf() 386 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf() 387 PTy->getAddressSpace()), in getFoldedSizeOf() 448 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local [all …]
|
D | Verifier.cpp | 524 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() local 525 Assert(PTy, "wrong type for intrinsic global variable", &GV); in visitGlobalVariable() 1348 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { in VerifyParameterAttrs() local 1350 if (!PTy->getElementType()->isSized(&Visited)) { in VerifyParameterAttrs() 2750 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local 2751 Assert(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst() 2775 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local 2776 Assert(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst() 2777 Type *ElTy = PTy->getElementType(); in visitStoreInst() 2802 PointerType *PTy = AI.getType(); in visitAllocaInst() local [all …]
|
D | Type.cpp | 89 if (auto *PTy = dyn_cast<PointerType>(this)) { in canLosslesslyBitCastTo() local 91 return PTy->getAddressSpace() == OtherPTy->getAddressSpace(); in canLosslesslyBitCastTo()
|
D | AsmWriter.cpp | 506 PointerType *PTy = cast<PointerType>(Ty); in print() local 507 print(PTy->getElementType(), OS); in print() 508 if (unsigned AddressSpace = PTy->getAddressSpace()) in print() 521 VectorType *PTy = cast<VectorType>(Ty); in print() local 522 OS << "<" << PTy->getNumElements() << " x "; in print() 523 print(PTy->getElementType(), OS); in print()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 389 PointerType *PTy, in expandAddToGEP() argument 392 Type *OriginalElTy = PTy->getElementType(); in expandAddToGEP() 402 Type *IntPtrTy = DL.getIntPtrType(PTy); in expandAddToGEP() 494 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP() 572 if (V->getType() != PTy) in expandAddToGEP() 573 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP() 696 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local 709 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr() 710 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { in visitAddExpr() local 719 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, expand(Op)); in visitAddExpr() [all …]
|
D | ObjCARCInstKind.cpp | 99 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) { in GetFunctionClass() local 100 Type *ETy = PTy->getElementType(); in GetFunctionClass() 136 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) in GetFunctionClass() local 137 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass()
|
D | LazyValueInfo.cpp | 694 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local 695 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal() 722 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local 723 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 2023 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallSite() local 2024 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite() 2248 Type *PTy = getPromotedType((*AI)->getType()); in transformConstExprCastCall() local 2249 if (PTy != (*AI)->getType()) { in transformConstExprCastCall() 2252 CastInst::getCastOpcode(*AI, false, PTy, false); in transformConstExprCastCall() 2253 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); in transformConstExprCastCall() 2342 PointerType *PTy = cast<PointerType>(Callee->getType()); in transformCallThroughTrampoline() local 2343 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline() 2489 NestF->getType() == PTy ? NestF : in transformCallThroughTrampoline() 2490 ConstantExpr::getBitCast(NestF, PTy); in transformCallThroughTrampoline()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpander.h | 255 PointerType *PTy, Type *Ty, Value *V);
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 2030 llvm::Type *PTy = FTy->getParamType(i); in EmitBuiltinExpr() local 2031 if (PTy != ArgValue->getType()) { in EmitBuiltinExpr() 2032 assert(PTy->canLosslesslyBitCastTo(FTy->getParamType(i)) && in EmitBuiltinExpr() 2034 ArgValue = Builder.CreateBitCast(ArgValue, PTy); in EmitBuiltinExpr() 5735 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy->getVectorElementType()); in EmitAArch64BuiltinExpr() local 5736 Ops[1] = Builder.CreateBitCast(Ops[1], PTy); in EmitAArch64BuiltinExpr() 5737 llvm::Type *Tys[2] = { VTy, PTy }; in EmitAArch64BuiltinExpr() 5765 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy->getVectorElementType()); in EmitAArch64BuiltinExpr() local 5766 llvm::Type *Tys[2] = { VTy, PTy }; in EmitAArch64BuiltinExpr() 5820 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy); in EmitAArch64BuiltinExpr() local [all …]
|
D | CGDeclCXX.cpp | 158 llvm::PointerType *PTy = llvm::PointerType::get(LTy, ExpectedAddrSpace); in EmitCXXGlobalVarDeclInit() local 159 DeclPtr = llvm::ConstantExpr::getAddrSpaceCast(DeclPtr, PTy); in EmitCXXGlobalVarDeclInit()
|
D | CodeGenTypes.cpp | 503 const PointerType *PTy = cast<PointerType>(Ty); in ConvertType() local 504 QualType ETy = PTy->getPointeeType(); in ConvertType()
|
D | CGCall.cpp | 1629 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local 1630 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList() 1631 RetAttrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy) in ConstructAttributeList() 1633 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList() 1741 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local 1742 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList() 1743 Attrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy) in ConstructAttributeList() 1745 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList()
|
D | CodeGenModule.cpp | 1880 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetOrCreateLLVMFunction() local 1881 return llvm::ConstantExpr::getBitCast(F, PTy); in GetOrCreateLLVMFunction() 2122 llvm::PointerType *PTy = in GetAddrOfGlobalVar() local 2126 return GetOrCreateLLVMGlobal(MangledName, PTy, D); in GetAddrOfGlobalVar() 2978 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetAddrOfConstantString() local 2979 V = llvm::ConstantExpr::getBitCast(GV, PTy); in GetAddrOfConstantString() 2985 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); in GetAddrOfConstantString() local 2986 GV = CreateRuntimeVariable(PTy, str); in GetAddrOfConstantString() 2988 V = llvm::ConstantExpr::getGetElementPtr(PTy, GV, Zeros); in GetAddrOfConstantString()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2897 PointerType *PTy = cast<PointerType>(CurTy); in parseConstants() local 2898 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), in parseConstants() 2922 PointerType *PTy = cast<PointerType>(CurTy); in parseConstants() local 2923 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), in parseConstants() 3534 if (auto *PTy = dyn_cast<PointerType>(Ty)) in parseModule() local 3535 Ty = PTy->getElementType(); in parseModule() 3623 auto *PTy = dyn_cast<PointerType>(Ty); in parseModule() local 3624 if (!PTy) in parseModule() 3626 Ty = PTy->getElementType(); in parseModule() 3627 AddrSpace = PTy->getAddressSpace(); in parseModule() [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 706 auto *PTy = dyn_cast<PointerType>(AliaseeType); in ParseAlias() local 707 if (!PTy) in ParseAlias() 709 unsigned AddrSpace = PTy->getAddressSpace(); in ParseAlias() 711 if (Ty != PTy->getElementType()) in ParseAlias() 1067 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy, in createGlobalFwdRef() argument 1069 if (auto *FT = dyn_cast<FunctionType>(PTy->getElementType())) in createGlobalFwdRef() 1072 return new GlobalVariable(*M, PTy->getElementType(), false, in createGlobalFwdRef() 1075 PTy->getAddressSpace()); in createGlobalFwdRef() 1083 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local 1084 if (!PTy) { in GetGlobalVal() [all …]
|
/external/clang/lib/Sema/ |
D | SemaPseudoObject.cpp | 1139 if (const ObjCObjectPointerType *PTy = in findAtIndexGetter() local 1141 ResultType = PTy->getPointeeType(); in findAtIndexGetter() 1245 if (const ObjCObjectPointerType *PTy = in findAtIndexSetter() local 1247 ResultType = PTy->getPointeeType(); in findAtIndexSetter()
|