Searched refs:PTy (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-10.2-release/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCUtil.cpp97 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()))
/freebsd-10.2-release/contrib/llvm/lib/IR/
H A DVerifier.cpp488 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); local
489 Assert1(PTy, "wrong type for intrinsic global variable", &GV);
858 if (PointerType *PTy = dyn_cast<PointerType>(Ty))
860 PTy->getElementType()->isSized(),
1762 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); local
1763 Assert1(PTy, "Load operand must be a pointer.", &LI);
1764 Type *ElTy = PTy->getElementType();
1836 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); local
1837 Assert1(PTy, "Store operand must be a pointer.", &SI);
1838 Type *ElTy = PTy
1864 PointerType *PTy = AI.getType(); local
1880 PointerType *PTy = dyn_cast<PointerType>(CXI.getOperand(0)->getType()); local
1904 PointerType *PTy = dyn_cast<PointerType>(RMWI.getOperand(0)->getType()); local
[all...]
H A DModule.cpp264 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); local
265 if (GVTy != PTy)
266 return ConstantExpr::getBitCast(GV, PTy);
H A DConstantFold.cpp107 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 DAsmWriter.cpp243 PointerType *PTy = cast<PointerType>(Ty); local
244 print(PTy->getElementType(), OS);
245 if (unsigned AddressSpace = PTy->getAddressSpace())
258 VectorType *PTy = cast<VectorType>(Ty); local
259 OS << "<" << PTy->getNumElements() << " x ";
260 print(PTy->getElementType(), OS);
1889 PointerType *PTy = cast<PointerType>(Operand->getType()); local
1890 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
1922 PointerType *PTy = cast<PointerType>(Operand->getType()); local
1923 FunctionType *FTy = cast<FunctionType>(PTy
[all...]
/freebsd-10.2-release/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1088 const PointerType *PTy = GVar->getType(); local
1089 Type *ETy = PTy->getElementType();
1204 emitPTXAddressSpace(PTy->getAddressSpace(), O);
1222 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) ||
1223 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) &&
1245 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) ||
1246 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) &&
1371 const PointerType *PTy = GVar->getType(); local
1372 Type *ETy = PTy->getElementType();
1375 emitPTXAddressSpace(PTy
1542 const PointerType *PTy = dyn_cast<PointerType>(Ty); local
1602 const PointerType *PTy = dyn_cast<PointerType>(Ty); local
[all...]
H A DNVPTXISelLowering.cpp456 const PointerType *PTy = dyn_cast<PointerType>(Ty); local
457 assert(PTy && "Param with byval attribute should be a pointer type");
458 Type *ETy = PTy->getElementType();
793 const PointerType *PTy = dyn_cast<PointerType>(Args[i].Ty); local
794 assert(PTy && "Type of a byval parameter should be pointer");
795 ComputeValueVTs(*this, PTy->getElementType(), vtparts);
1367 const PointerType *PTy = dyn_cast<PointerType>(Ty); local
1369 if (!PTy)
1375 const StructType *STy = dyn_cast<StructType>(PTy->getElementType());
/freebsd-10.2-release/contrib/llvm/lib/Analysis/
H A DScalarEvolutionExpander.cpp394 PointerType *PTy,
397 Type *ElTy = PTy->getElementType();
407 ? SE.TD->getIntPtrType(PTy)
408 : Type::getInt64Ty(PTy->getContext());
519 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace()));
599 if (V->getType() != PTy)
600 Casted = InsertNoopCastOfTo(Casted, PTy);
730 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) {
743 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum);
744 } else if (PointerType *PTy
392 expandAddToGEP(const SCEV *const *op_begin, const SCEV *const *op_end, PointerType *PTy, Type *Ty, Value *V) argument
[all...]
H A DLazyValueInfo.cpp615 PointerType *PTy = cast<PointerType>(Val->getType()); local
616 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
643 PointerType *PTy = cast<PointerType>(Val->getType()); local
644 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
H A DConstantFolding.cpp390 PointerType *PTy = cast<PointerType>(C->getType()); local
391 Type *LoadTy = PTy->getElementType();
396 unsigned AS = PTy->getAddressSpace();
/freebsd-10.2-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp943 PointerType *PTy = cast<PointerType>(Callee->getType());
944 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
1156 Type *PTy = getPromotedType((*AI)->getType()); local
1157 if (PTy != (*AI)->getType()) {
1160 CastInst::getCastOpcode(*AI, false, PTy, false);
1161 Args.push_back(Builder->CreateCast(opcode, *AI, PTy));
1239 PointerType *PTy = cast<PointerType>(Callee->getType()); local
1240 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
1386 NestF->getType() == PTy ? NestF :
1387 ConstantExpr::getBitCast(NestF, PTy);
[all...]
/freebsd-10.2-release/contrib/llvm/include/llvm/Analysis/
H A DScalarEvolutionExpander.h214 PointerType *PTy, Type *Ty, Value *V);
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DTargetInfo.cpp1020 llvm::Type *PTy = local
1022 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy);
2684 llvm::Type *PTy =
2686 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy);
2817 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty));
2818 llvm::Value *Result1 = Builder.CreateIntToPtr(OurReg, PTy);
2832 llvm::Value *Result2 = Builder.CreateIntToPtr(OverflowAreaAsInt, PTy);
2839 llvm::PHINode *Result = CGF.Builder.CreatePHI(PTy, 2, "vaarg.addr");
3089 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty));
3090 return Builder.CreateBitCast(Addr, PTy);
[all...]
H A DCodeGenTypes.cpp417 const PointerType *PTy = cast<PointerType>(Ty); local
418 QualType ETy = PTy->getPointeeType();
H A DCodeGenModule.cpp1488 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); local
1489 return llvm::ConstantExpr::getBitCast(F, PTy);
1684 llvm::PointerType *PTy = local
1688 return GetOrCreateLLVMGlobal(MangledName, PTy, D);
2440 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); local
2441 V = llvm::ConstantExpr::getBitCast(GV, PTy);
2447 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); local
2448 GV = CreateRuntimeVariable(PTy, str);
H A DCGExprCXX.cpp68 if (const PointerType *PTy = T->getAs<PointerType>())
69 T = PTy->getPointeeType();
1723 if (const PointerType *PTy = DestTy->getAs<PointerType>()) {
1724 if (PTy->getPointeeType()->isVoidType()) {
H A DCodeGenModule.h1019 llvm::PointerType *PTy,
/freebsd-10.2-release/contrib/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp402 PointerType *PTy = cast<PointerType>(T); local
405 TypeVals.push_back(VE.getTypeID(PTy->getElementType()));
406 unsigned AddressSpace = PTy->getAddressSpace();
1321 PointerType *PTy = cast<PointerType>(Callee->getType()); local
1322 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
1454 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); local
1455 FunctionType *FTy = cast<FunctionType>(PTy->getElementType());
/freebsd-10.2-release/contrib/llvm/lib/AsmParser/
H A DLLParser.cpp971 PointerType *PTy = dyn_cast<PointerType>(Ty); local
972 if (PTy == 0) {
1000 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType()))
1003 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false,
1006 PTy->getAddressSpace());
1013 PointerType *PTy = dyn_cast<PointerType>(Ty); local
1014 if (PTy == 0) {
1040 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType()))
1043 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false,
2793 PointerType *PTy
[all...]
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaPseudoObject.cpp1085 if (const ObjCObjectPointerType *PTy =
1087 ResultType = PTy->getPointeeType();
1194 if (const ObjCObjectPointerType *PTy =
1196 ResultType = PTy->getPointeeType();
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/AST/
H A DDeclPrinter.cpp110 else if (const PointerType* PTy = BaseType->getAs<PointerType>())
111 BaseType = PTy->getPointeeType();
/freebsd-10.2-release/contrib/llvm/include/llvm/Target/
H A DTargetLowering.h584 if (PointerType *PTy = dyn_cast<PointerType>(Ty))
585 return getPointerTy(PTy->getAddressSpace());
/freebsd-10.2-release/contrib/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp989 PointerType *PTy = cast<PointerType>(CS.getArgument(I)->getType()); local
990 unsigned TypeSize = TD->getTypeSizeInBits(PTy->getElementType());
/freebsd-10.2-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1689 EVT PTy = TM.getTargetLowering()->getPointerTy();
1691 JT.Reg, PTy);
1692 SDValue Table = DAG.getJumpTable(JT.JTI, PTy);
2451 EVT PTy = TLI->getPointerTy();
2452 unsigned IntPtrBits = PTy.getSizeInBits();
2462 if (!TLI->isOperationLegal(ISD::SHL, PTy))
3288 EVT PTy = TLI->getPointerTy(AS);
3289 unsigned PtrBits = PTy.getSizeInBits();
3291 OffsVal = DAG.getNode(ISD::TRUNCATE, getCurSDLoc(), PTy,
3294 OffsVal = DAG.getConstant(Offs, PTy);
[all...]
/freebsd-10.2-release/contrib/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp1354 EVT PTy = getPointerTy(); local
1358 Index = DAG.getNode(ISD::MUL, DL, PTy, Index,
1359 DAG.getConstant(EntrySize, PTy));
1360 SDValue Addr = DAG.getNode(ISD::ADD, DL, PTy, Index, Table);
1363 Addr = DAG.getExtLoad(ISD::SEXTLOAD, DL, PTy, Chain, Addr,
1372 Addr = DAG.getNode(ISD::ADD, DL, PTy, Addr,

Completed in 389 milliseconds

12