/external/llvm/lib/Transforms/Utils/ |
H A D | CloneModule.cpp | 70 auto *PTy = cast<PointerType>(I->getType()); local 72 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
|
/external/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCUtil.cpp | 97 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) { 98 Type *ETy = PTy->getElementType(); 132 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) 133 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType()))
|
/external/llvm/lib/IR/ |
H A D | Globals.cpp | 272 PointerType *PTy = Aliasee->getType(); local 273 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name,
|
H A D | Module.cpp | 213 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); local 214 if (GVTy != PTy) 215 return ConstantExpr::getBitCast(GV, PTy);
|
H A D | ConstantFold.cpp | 107 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) 109 if (PTy->getAddressSpace() == DPTy->getAddressSpace() 115 Type *ElTy = PTy->getElementType(); 369 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) 370 if (!PTy->getElementType()->isIntegerTy(1)) 372 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), 373 PTy->getAddressSpace()), 434 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) 435 if (!PTy->getElementType()->isIntegerTy(1)) 437 getFoldedAlignOf(PointerType::get(IntegerType::get(PTy [all...] |
H A D | Verifier.cpp | 444 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); local 445 Assert1(PTy, "wrong type for intrinsic global variable", &GV); 853 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { 854 if (!PTy->getElementType()->isSized()) { 1890 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); local 1891 Assert1(PTy, "Load operand must be a pointer.", &LI); 1892 Type *ElTy = PTy->getElementType(); 1964 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); local 1965 Assert1(PTy, "Store operand must be a pointer.", &SI); 1966 Type *ElTy = PTy 1993 PointerType *PTy = AI.getType(); local 2023 PointerType *PTy = dyn_cast<PointerType>(CXI.getOperand(0)->getType()); local 2047 PointerType *PTy = dyn_cast<PointerType>(RMWI.getOperand(0)->getType()); local [all...] |
H A D | AsmWriter.cpp | 246 PointerType *PTy = cast<PointerType>(Ty); local 247 print(PTy->getElementType(), OS); 248 if (unsigned AddressSpace = PTy->getAddressSpace()) 261 VectorType *PTy = cast<VectorType>(Ty); local 262 OS << "<" << PTy->getNumElements() << " x "; 263 print(PTy->getElementType(), OS); 1931 PointerType *PTy = cast<PointerType>(Operand->getType()); local 1932 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); 1964 PointerType *PTy = cast<PointerType>(Operand->getType()); local 1965 FunctionType *FTy = cast<FunctionType>(PTy [all...] |
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 1362 const PointerType *PTy = GVar->getType(); local 1363 Type *ETy = PTy->getElementType(); 1482 emitPTXAddressSpace(PTy->getAddressSpace(), O); 1506 if ((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || 1507 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) { 1520 llvm::utostr_32(PTy->getAddressSpace()) + ")"; 1539 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || 1540 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && 1665 const PointerType *PTy = GVar->getType(); local 1666 Type *ETy = PTy 1850 const PointerType *PTy = dyn_cast<PointerType>(Ty); local 1910 const PointerType *PTy = dyn_cast<PointerType>(Ty); local 2075 PointerType *PTy = dyn_cast<PointerType>(GVar->getType()); local 2091 PointerType *PTy = dyn_cast<PointerType>(Cexpr->getType()); local [all...] |
H A D | NVPTXAsmPrinter.h | 160 PointerType *PTy = dyn_cast<PointerType>(GVar->getType()); local 162 if (PTy && PTy->getAddressSpace() != 0) {
|
H A D | NVPTXISelLowering.cpp | 588 const PointerType *PTy = dyn_cast<PointerType>(Ty); local 589 assert(PTy && "Param with byval attribute should be a pointer type"); 590 Type *ETy = PTy->getElementType(); 918 const PointerType *PTy = dyn_cast<PointerType>(Args[i].Ty); local 919 assert(PTy && "Type of a byval parameter should be pointer"); 920 ComputePTXValueVTs(*this, PTy->getElementType(), vtparts, &Offsets, 0); 1608 const PointerType *PTy = dyn_cast<PointerType>(Ty); local 1610 if (!PTy) 1616 const StructType *STy = dyn_cast<StructType>(PTy->getElementType());
|
/external/llvm/lib/CodeGen/ |
H A D | GlobalMerge.cpp | 228 auto *PTy = cast<PointerType>(GEP->getType()); local 229 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
|
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 393 PointerType *PTy, 396 Type *ElTy = PTy->getElementType(); 406 ? SE.DL->getIntPtrType(PTy) 407 : Type::getInt64Ty(PTy->getContext()); 518 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); 598 if (V->getType() != PTy) 599 Casted = InsertNoopCastOfTo(Casted, PTy); 729 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { 742 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); 743 } else if (PointerType *PTy 391 expandAddToGEP(const SCEV *const *op_begin, const SCEV *const *op_end, PointerType *PTy, Type *Ty, Value *V) argument [all...] |
H A D | LazyValueInfo.cpp | 616 PointerType *PTy = cast<PointerType>(Val->getType()); local 617 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); 644 PointerType *PTy = cast<PointerType>(Val->getType()); local 645 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
|
H A D | ConstantFolding.cpp | 395 PointerType *PTy = cast<PointerType>(C->getType()); local 396 Type *LoadTy = PTy->getElementType(); 401 unsigned AS = PTy->getAddressSpace();
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 1189 PointerType *PTy = cast<PointerType>(Callee->getType()); 1190 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); 1405 Type *PTy = getPromotedType((*AI)->getType()); local 1406 if (PTy != (*AI)->getType()) { 1409 CastInst::getCastOpcode(*AI, false, PTy, false); 1410 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); 1490 PointerType *PTy = cast<PointerType>(Callee->getType()); local 1491 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); 1637 NestF->getType() == PTy ? NestF : 1638 ConstantExpr::getBitCast(NestF, PTy); [all...] |
/external/llvm/include/llvm/Analysis/ |
H A D | ScalarEvolutionExpander.h | 214 PointerType *PTy, Type *Ty, Value *V);
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenTypes.cpp | 415 const PointerType *PTy = cast<PointerType>(Ty); local 416 QualType ETy = PTy->getPointeeType();
|
H A D | TargetInfo.cpp | 1079 llvm::Type *PTy = local 1081 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); 2786 llvm::Type *PTy = 2788 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); 3170 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); 3171 return Builder.CreateBitCast(Addr, PTy); 3801 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); local 3802 return Builder.CreateBitCast(Addr, PTy); 3822 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); local 3823 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); 4547 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); local 4605 llvm::Type *PTy = local 5378 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); local 5611 llvm::Type *PTy = local [all...] |
H A D | CGBuiltin.cpp | 1642 llvm::Type *PTy = FTy->getParamType(i); local 1643 if (PTy != ArgValue->getType()) { 1644 assert(PTy->canLosslesslyBitCastTo(FTy->getParamType(i)) && 1646 ArgValue = Builder.CreateBitCast(ArgValue, PTy); 5240 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy->getVectorElementType()); local 5241 Ops[1] = Builder.CreateBitCast(Ops[1], PTy); 5242 llvm::Type *Tys[2] = { VTy, PTy }; 5270 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy->getVectorElementType()); local 5271 llvm::Type *Tys[2] = { VTy, PTy }; 5325 llvm::Type *PTy local 5336 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy); local 5347 llvm::Type *PTy = llvm::PointerType::getUnqual(VTy); local 5358 llvm::Type *PTy = local 5370 llvm::Type *PTy = local 5382 llvm::Type *PTy = local [all...] |
H A D | CodeGenModule.cpp | 1541 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); local 1542 return llvm::ConstantExpr::getBitCast(F, PTy); 1737 llvm::PointerType *PTy = local 1741 return GetOrCreateLLVMGlobal(MangledName, PTy, D); 2587 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); local 2588 V = llvm::ConstantExpr::getBitCast(GV, PTy); 2594 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); local 2595 GV = CreateRuntimeVariable(PTy, str);
|
/external/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 744 auto *PTy = dyn_cast<PointerType>(AliaseeType); local 745 if (!PTy) 747 Type *Ty = PTy->getElementType(); 748 unsigned AddrSpace = PTy->getAddressSpace(); 1081 PointerType *PTy = dyn_cast<PointerType>(Ty); local 1082 if (!PTy) { 1110 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) 1113 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false, 1116 PTy->getAddressSpace()); 1123 PointerType *PTy local [all...] |
/external/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 407 PointerType *PTy = cast<PointerType>(T); local 410 TypeVals.push_back(VE.getTypeID(PTy->getElementType())); 411 unsigned AddressSpace = PTy->getAddressSpace(); 1368 PointerType *PTy = cast<PointerType>(Callee->getType()); local 1369 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); 1504 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); local 1505 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
|
/external/llvm/lib/Transforms/IPO/ |
H A D | MergeFunctions.cpp | 1361 PointerType *PTy = G->getType(); local 1362 auto *GA = GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
|
/external/clang/lib/Sema/ |
H A D | SemaPseudoObject.cpp | 1115 if (const ObjCObjectPointerType *PTy = 1117 ResultType = PTy->getPointeeType(); 1224 if (const ObjCObjectPointerType *PTy = 1226 ResultType = PTy->getPointeeType();
|
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 1544 PointerType *PTy = cast<PointerType>(CurTy); local 1545 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), 1569 PointerType *PTy = cast<PointerType>(CurTy); local 1570 V = InlineAsm::get(cast<FunctionType>(PTy->getElementType()), 2015 auto *PTy = dyn_cast<PointerType>(Ty); 2016 if (!PTy) 2020 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
|