Searched defs:PTy (Results 1 - 25 of 33) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp70 auto *PTy = cast<PointerType>(I->getType()); local
72 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
/external/clang/lib/CodeGen/
H A DCodeGenTypes.cpp415 const PointerType *PTy = cast<PointerType>(Ty); local
416 QualType ETy = PTy->getPointeeType();
H A DCGDecl.cpp214 llvm::PointerType *PTy = llvm::PointerType::get(LTy, ExpectedAddrSpace); local
215 return llvm::ConstantExpr::getAddrSpaceCast(GV, PTy);
H A DCGBuiltin.cpp1642 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 DCGExpr.cpp2991 const PointerType *PTy = BaseExpr->getType()->getAs<PointerType>(); local
2992 BaseQuals = PTy->getPointeeType().getQualifiers();
/external/llvm/lib/CodeGen/
H A DGlobalMerge.cpp228 auto *PTy = cast<PointerType>(GEP->getType()); local
229 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
/external/llvm/lib/IR/
H A DGlobals.cpp272 PointerType *PTy = Aliasee->getType(); local
273 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name,
H A DModule.cpp213 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); local
214 if (GVTy != PTy)
215 return ConstantExpr::getBitCast(GV, PTy);
H A DAsmWriter.cpp246 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...]
H A DVerifier.cpp444 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 DInstructions.cpp1373 PointerType *PTy = dyn_cast<PointerType>(Ptr->getScalarType()); local
1374 if (!PTy) return nullptr; // Type isn't a pointer type!
1375 Type *Agg = PTy->getElementType();
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.h160 PointerType *PTy = dyn_cast<PointerType>(GVar->getType()); local
162 if (PTy && PTy->getAddressSpace() != 0) {
H A DNVPTXAsmPrinter.cpp1362 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 DNVPTXISelLowering.cpp588 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/AsmParser/
H A DLLParser.cpp744 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/Analysis/
H A DConstantFolding.cpp395 PointerType *PTy = cast<PointerType>(C->getType()); local
396 Type *LoadTy = PTy->getElementType();
401 unsigned AS = PTy->getAddressSpace();
H A DLazyValueInfo.cpp616 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 DScalarEvolutionExpander.cpp393 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...]
/external/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp1010 PointerType *PTy = cast<PointerType>(CS.getArgument(I)->getType()); local
1011 unsigned TypeSize = DL->getTypeSizeInBits(PTy->getElementType());
/external/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp1361 PointerType *PTy = G->getType(); local
1362 auto *GA = GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
H A DGlobalOpt.cpp1175 PointerType *PTy = cast<PointerType>(PN->getType()); local
1176 StructType *ST = cast<StructType>(PTy->getElementType());
1178 unsigned AS = PTy->getAddressSpace();
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1544 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(),
/external/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp407 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/Linker/
H A DLinkModules.cpp1108 auto *PTy = cast<PointerType>(TypeMap.get(SGA->getType())); local
1110 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp1189 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...]

Completed in 519 milliseconds

12