/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXLowerAlloca.cpp | 69 auto PTy = dyn_cast<PointerType>(allocaInst->getType()); local 70 auto ETy = PTy->getElementType();
|
H A D | NVPTXAsmPrinter.h | 161 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); local 163 if (PTy && PTy->getAddressSpace() != 0) {
|
H A D | NVPTXAsmPrinter.cpp | 1032 PointerType *PTy = GVar->getType(); local 1033 Type *ETy = PTy->getElementType(); 1152 emitPTXAddressSpace(PTy->getAddressSpace(), O); 1176 if ((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || 1177 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) { 1192 Twine(PTy->getAddressSpace()) + ")"); 1210 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || 1211 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && 1344 PointerType *PTy = GVar->getType(); local 1345 Type *ETy = PTy 1492 auto *PTy = dyn_cast<PointerType>(Ty); local 1553 auto *PTy = dyn_cast<PointerType>(Ty); local 1718 PointerType *PTy = dyn_cast<PointerType>(GVar->getType()); local 1734 PointerType *PTy = dyn_cast<PointerType>(Cexpr->getType()); local [all...] |
H A D | NVPTXISelLowering.cpp | 989 auto *PTy = dyn_cast<PointerType>(Ty); local 990 assert(PTy && "Param with byval attribute should be a pointer type"); 991 Type *ETy = PTy->getElementType(); 1326 auto *PTy = dyn_cast<PointerType>(Args[i].Ty); local 1327 assert(PTy && "Type of a byval parameter should be pointer"); 1328 ComputePTXValueVTs(*this, DAG.getDataLayout(), PTy->getElementType(), 2036 auto *PTy = dyn_cast<PointerType>(Ty); 2038 if (!PTy) 2044 auto *STy = dyn_cast<StructType>(PTy->getElementType());
|
/external/llvm/lib/IR/ |
H A D | Globals.cpp | 260 PointerType *PTy = Aliasee->getType(); local 261 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name,
|
H A D | Module.cpp | 234 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); local 235 if (GVTy != PTy) 236 return ConstantExpr::getBitCast(GV, PTy);
|
H A D | AsmWriter.cpp | 506 PointerType *PTy = cast<PointerType>(Ty); local 507 print(PTy->getElementType(), OS); 508 if (unsigned AddressSpace = PTy->getAddressSpace()) 521 VectorType *PTy = cast<VectorType>(Ty); local 522 OS << "<" << PTy->getNumElements() << " x "; 523 print(PTy->getElementType(), OS);
|
/external/llvm/unittests/Support/ |
H A D | Casting.cpp | 249 class PTy { class in namespace:__anon12790::pointer_wrappers 252 PTy(Base *B) : B(B) {} function in class:__anon12790::pointer_wrappers::PTy 262 template <> struct simplify_type<pointer_wrappers::PTy> { 264 static SimpleType getSimplifiedValue(pointer_wrappers::PTy &P) { 268 template <> struct simplify_type<const pointer_wrappers::PTy> { 270 static SimpleType getSimplifiedValue(const pointer_wrappers::PTy &P) { 285 pointer_wrappers::PTy MN(nullptr); 286 pointer_wrappers::PTy MB(&B); 287 pointer_wrappers::PTy MD(&D); 290 const pointer_wrappers::PTy C [all...] |
/external/clang/lib/CodeGen/ |
H A D | CodeGenTypes.cpp | 503 const PointerType *PTy = cast<PointerType>(Ty); local 504 QualType ETy = PTy->getPointeeType();
|
H A D | CGDeclCXX.cpp | 158 llvm::PointerType *PTy = llvm::PointerType::get(LTy, ExpectedAddrSpace); local 159 DeclPtr = llvm::ConstantExpr::getAddrSpaceCast(DeclPtr, PTy);
|
H A D | CGDecl.cpp | 233 llvm::PointerType *PTy = llvm::PointerType::get(LTy, ExpectedAddrSpace); local 234 Addr = llvm::ConstantExpr::getAddrSpaceCast(GV, PTy);
|
H A D | CGObjC.cpp | 1453 const ObjCObjectPointerType *PTy = cast<ObjCObjectPointerType>( local 1455 return PTy->getPointeeType();
|
H A D | CodeGenModule.cpp | 1880 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); local 1881 return llvm::ConstantExpr::getBitCast(F, PTy); 2122 llvm::PointerType *PTy = local 2126 return GetOrCreateLLVMGlobal(MangledName, PTy, D); 2978 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); local 2979 V = llvm::ConstantExpr::getBitCast(GV, PTy); 2985 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); local 2986 GV = CreateRuntimeVariable(PTy, str); 2988 V = llvm::ConstantExpr::getGetElementPtr(PTy, GV, Zeros);
|
/external/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 706 auto *PTy = dyn_cast<PointerType>(AliaseeType); local 707 if (!PTy) 709 unsigned AddrSpace = PTy->getAddressSpace(); 711 if (Ty != PTy->getElementType()) 1067 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy, argument 1069 if (auto *FT = dyn_cast<FunctionType>(PTy->getElementType())) 1072 return new GlobalVariable(*M, PTy->getElementType(), false, 1075 PTy->getAddressSpace()); 1083 PointerType *PTy = dyn_cast<PointerType>(Ty); local 1084 if (!PTy) { 1116 PointerType *PTy = dyn_cast<PointerType>(Ty); local [all...] |
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 403 PointerType *PTy = cast<PointerType>(C->getType()); local 404 Type *LoadTy = PTy->getElementType(); 409 unsigned AS = PTy->getAddressSpace();
|
H A D | InlineCost.cpp | 1103 PointerType *PTy = cast<PointerType>(CS.getArgument(I)->getType()); local 1104 unsigned TypeSize = DL.getTypeSizeInBits(PTy->getElementType());
|
H A D | LazyValueInfo.cpp | 694 PointerType *PTy = cast<PointerType>(Val->getType()); local 695 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); 722 PointerType *PTy = cast<PointerType>(Val->getType()); local 723 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
|
H A D | ScalarEvolutionExpander.cpp | 389 PointerType *PTy, 392 Type *OriginalElTy = PTy->getElementType(); 402 Type *IntPtrTy = DL.getIntPtrType(PTy); 494 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); 572 if (V->getType() != PTy) 573 Casted = InsertNoopCastOfTo(Casted, PTy); 696 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { 709 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); 710 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { 719 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, T 387 expandAddToGEP(const SCEV *const *op_begin, const SCEV *const *op_end, PointerType *PTy, Type *Ty, Value *V) argument [all...] |
/external/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 425 PointerType *PTy = cast<PointerType>(T); local 428 TypeVals.push_back(VE.getTypeID(PTy->getElementType())); 429 unsigned AddressSpace = PTy->getAddressSpace();
|
/external/llvm/lib/Target/Hexagon/ |
H A D | HexagonCommonGEP.cpp | 170 Type *PTy; // Type of the pointer operand. member in struct:__anon12156::GepNode 172 GepNode() : Flags(0), Parent(0), Idx(0), PTy(0) {} 173 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { 231 OS << " PTy:"; 232 if (GN.PTy->isStructTy()) { 233 StructType *STy = cast<StructType>(GN.PTy); 235 OS << GN.PTy->getStructName(); 240 OS << *GN.PTy; 338 N->PTy [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 2023 PointerType *PTy = cast<PointerType>(Callee->getType()); 2024 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); 2248 Type *PTy = getPromotedType((*AI)->getType()); local 2249 if (PTy != (*AI)->getType()) { 2252 CastInst::getCastOpcode(*AI, false, PTy, false); 2253 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); 2342 PointerType *PTy = cast<PointerType>(Callee->getType()); local 2343 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); 2489 NestF->getType() == PTy ? NestF : 2490 ConstantExpr::getBitCast(NestF, PTy); [all...] |
H A D | InstCombineCasts.cpp | 83 PointerType *PTy = cast<PointerType>(CI.getType()); local 90 Type *CastElTy = PTy->getElementType();
|
/external/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 1538 PointerType *PTy = cast<PointerType>(Callee->getType()); local 1539 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 1176 PointerType *PTy = cast<PointerType>(PN->getType()); local 1177 StructType *ST = cast<StructType>(PTy->getElementType()); 1179 unsigned AS = PTy->getAddressSpace();
|
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 2897 PointerType *PTy = cast<PointerType>(CurTy); local 2898 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), 2922 PointerType *PTy = cast<PointerType>(CurTy); local 2923 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), 3534 if (auto *PTy = dyn_cast<PointerType>(Ty)) 3535 Ty = PTy->getElementType(); 3623 auto *PTy = dyn_cast<PointerType>(Ty); local 3624 if (!PTy) 3626 Ty = PTy->getElementType(); 3627 AddrSpace = PTy 4814 auto *PTy = dyn_cast_or_null<PointerType>(Ty); local [all...] |