Home
last modified time | relevance | path

Searched refs:PTy (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-9-stable/contrib/llvm/lib/Transforms/ObjCARC/
DObjCARCUtil.cpp97 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) { in GetFunctionClass() local
98 Type *ETy = PTy->getElementType(); in GetFunctionClass()
132 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) in GetFunctionClass() local
133 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass()
/freebsd-9-stable/contrib/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1088 const PointerType *PTy = GVar->getType(); in printModuleLevelGV() local
1089 Type *ETy = PTy->getElementType(); in printModuleLevelGV()
1204 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV()
1222 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1223 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && in printModuleLevelGV()
1245 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1246 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && in printModuleLevelGV()
1371 const PointerType *PTy = GVar->getType(); in emitPTXGlobalVariable() local
1372 Type *ETy = PTy->getElementType(); in emitPTXGlobalVariable()
1375 emitPTXAddressSpace(PTy->getAddressSpace(), O); in emitPTXGlobalVariable()
[all …]
DNVPTXISelLowering.cpp456 const PointerType *PTy = dyn_cast<PointerType>(Ty); in getPrototype() local
457 assert(PTy && "Param with byval attribute should be a pointer type"); in getPrototype()
458 Type *ETy = PTy->getElementType(); in getPrototype()
793 const PointerType *PTy = dyn_cast<PointerType>(Args[i].Ty); in LowerCall() local
794 assert(PTy && "Type of a byval parameter should be pointer"); in LowerCall()
795 ComputeValueVTs(*this, PTy->getElementType(), vtparts); in LowerCall()
1367 const PointerType *PTy = dyn_cast<PointerType>(Ty); in isImageOrSamplerVal() local
1369 if (!PTy) in isImageOrSamplerVal()
1375 const StructType *STy = dyn_cast<StructType>(PTy->getElementType()); in isImageOrSamplerVal()
/freebsd-9-stable/contrib/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp394 PointerType *PTy, in expandAddToGEP() argument
397 Type *ElTy = PTy->getElementType(); in expandAddToGEP()
407 ? SE.TD->getIntPtrType(PTy) in expandAddToGEP()
408 : Type::getInt64Ty(PTy->getContext()); in expandAddToGEP()
519 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP()
599 if (V->getType() != PTy) in expandAddToGEP()
600 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP()
730 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local
743 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr()
744 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { in visitAddExpr() local
[all …]
DLazyValueInfo.cpp615 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local
616 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
643 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local
644 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
DConstantFolding.cpp390 PointerType *PTy = cast<PointerType>(C->getType()); in FoldReinterpretLoadFromConstPtr() local
391 Type *LoadTy = PTy->getElementType(); in FoldReinterpretLoadFromConstPtr()
396 unsigned AS = PTy->getAddressSpace(); in FoldReinterpretLoadFromConstPtr()
/freebsd-9-stable/contrib/llvm/lib/IR/
DVerifier.cpp488 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() local
489 Assert1(PTy, "wrong type for intrinsic global variable", &GV); in visitGlobalVariable()
858 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in VerifyParameterAttrs() local
860 PTy->getElementType()->isSized(), in VerifyParameterAttrs()
1762 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local
1763 Assert1(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst()
1764 Type *ElTy = PTy->getElementType(); in visitLoadInst()
1836 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local
1837 Assert1(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst()
1838 Type *ElTy = PTy->getElementType(); in visitStoreInst()
[all …]
DModule.cpp264 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local
265 if (GVTy != PTy) in getOrInsertGlobal()
266 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
DConstantFold.cpp107 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local
109 if (PTy->getAddressSpace() == DPTy->getAddressSpace() in FoldBitCast()
115 Type *ElTy = PTy->getElementType(); in FoldBitCast()
369 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local
370 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf()
372 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
373 PTy->getAddressSpace()), in getFoldedSizeOf()
434 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local
435 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedAlignOf()
437 getFoldedAlignOf(PointerType::get(IntegerType::get(PTy->getContext(), in getFoldedAlignOf()
[all …]
DAsmWriter.cpp243 PointerType *PTy = cast<PointerType>(Ty); in print() local
244 print(PTy->getElementType(), OS); in print()
245 if (unsigned AddressSpace = PTy->getAddressSpace()) in print()
258 VectorType *PTy = cast<VectorType>(Ty); in print() local
259 OS << "<" << PTy->getNumElements() << " x "; in print()
260 print(PTy->getElementType(), OS); in print()
1889 PointerType *PTy = cast<PointerType>(Operand->getType()); in printInstruction() local
1890 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in printInstruction()
1922 PointerType *PTy = cast<PointerType>(Operand->getType()); in printInstruction() local
1923 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in printInstruction()
/freebsd-9-stable/contrib/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp943 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallSite() local
944 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite()
1156 Type *PTy = getPromotedType((*AI)->getType()); in transformConstExprCastCall() local
1157 if (PTy != (*AI)->getType()) { in transformConstExprCastCall()
1160 CastInst::getCastOpcode(*AI, false, PTy, false); in transformConstExprCastCall()
1161 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); in transformConstExprCastCall()
1239 PointerType *PTy = cast<PointerType>(Callee->getType()); in transformCallThroughTrampoline() local
1240 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline()
1386 NestF->getType() == PTy ? NestF : in transformCallThroughTrampoline()
1387 ConstantExpr::getBitCast(NestF, PTy); in transformCallThroughTrampoline()
/freebsd-9-stable/contrib/llvm/patches/
Dpatch-r275759-clang-r221170-ppc-vaarg.diff110 + llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty));
111 + llvm::Value *Result1 = Builder.CreateIntToPtr(OurReg, PTy);
125 + llvm::Value *Result2 = Builder.CreateIntToPtr(OverflowAreaAsInt, PTy);
132 + llvm::PHINode *Result = CGF.Builder.CreatePHI(PTy, 2, "vaarg.addr");
/freebsd-9-stable/contrib/llvm/tools/clang/lib/CodeGen/
DTargetInfo.cpp1020 llvm::Type *PTy = in EmitVAArg() local
1022 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
2684 llvm::Type *PTy = in EmitVAArg() local
2686 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
2817 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); in EmitVAArg() local
2818 llvm::Value *Result1 = Builder.CreateIntToPtr(OurReg, PTy); in EmitVAArg()
2832 llvm::Value *Result2 = Builder.CreateIntToPtr(OverflowAreaAsInt, PTy); in EmitVAArg()
2839 llvm::PHINode *Result = CGF.Builder.CreatePHI(PTy, 2, "vaarg.addr"); in EmitVAArg()
3089 llvm::Type *PTy = llvm::PointerType::getUnqual(CGF.ConvertType(Ty)); in EmitVAArg() local
3090 return Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
[all …]
DCodeGenTypes.cpp417 const PointerType *PTy = cast<PointerType>(Ty); in ConvertType() local
418 QualType ETy = PTy->getPointeeType(); in ConvertType()
DCodeGenModule.cpp1488 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetOrCreateLLVMFunction() local
1489 return llvm::ConstantExpr::getBitCast(F, PTy); in GetOrCreateLLVMFunction()
1684 llvm::PointerType *PTy = in GetAddrOfGlobalVar() local
1688 return GetOrCreateLLVMGlobal(MangledName, PTy, D); in GetAddrOfGlobalVar()
2440 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetAddrOfConstantString() local
2441 V = llvm::ConstantExpr::getBitCast(GV, PTy); in GetAddrOfConstantString()
2447 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); in GetAddrOfConstantString() local
2448 GV = CreateRuntimeVariable(PTy, str); in GetAddrOfConstantString()
DCGExprCXX.cpp68 if (const PointerType *PTy = T->getAs<PointerType>()) in getCXXRecord() local
69 T = PTy->getPointeeType(); in getCXXRecord()
1723 if (const PointerType *PTy = DestTy->getAs<PointerType>()) { in EmitDynamicCastCall() local
1724 if (PTy->getPointeeType()->isVoidType()) { in EmitDynamicCastCall()
/freebsd-9-stable/contrib/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h214 PointerType *PTy, Type *Ty, Value *V);
/freebsd-9-stable/contrib/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp402 PointerType *PTy = cast<PointerType>(T); in WriteTypeTable() local
405 TypeVals.push_back(VE.getTypeID(PTy->getElementType())); in WriteTypeTable()
406 unsigned AddressSpace = PTy->getAddressSpace(); in WriteTypeTable()
1321 PointerType *PTy = cast<PointerType>(Callee->getType()); in WriteInstruction() local
1322 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()
1454 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); in WriteInstruction() local
1455 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()
/freebsd-9-stable/contrib/llvm/lib/AsmParser/
DLLParser.cpp971 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local
972 if (PTy == 0) { in GetGlobalVal()
1000 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) in GetGlobalVal()
1003 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false, in GetGlobalVal()
1006 PTy->getAddressSpace()); in GetGlobalVal()
1013 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local
1014 if (PTy == 0) { in GetGlobalVal()
1040 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) in GetGlobalVal()
1043 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false, in GetGlobalVal()
2793 PointerType *PTy = dyn_cast<PointerType>(Ty); in ConvertValIDToValue() local
[all …]
/freebsd-9-stable/contrib/llvm/tools/clang/lib/Sema/
DSemaPseudoObject.cpp1085 if (const ObjCObjectPointerType *PTy = in findAtIndexGetter() local
1087 ResultType = PTy->getPointeeType(); in findAtIndexGetter()
1194 if (const ObjCObjectPointerType *PTy = in findAtIndexSetter() local
1196 ResultType = PTy->getPointeeType(); in findAtIndexSetter()
DSemaExpr.cpp683 QualType PTy = Context.isPromotableBitField(E); in UsualUnaryConversions() local
684 if (!PTy.isNull()) { in UsualUnaryConversions()
685 E = ImpCastExprToType(E, PTy, CK_IntegralCast).take(); in UsualUnaryConversions()
3744 } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) { in CreateBuiltinArraySubscriptExpr() local
3747 ResultType = PTy->getPointeeType(); in CreateBuiltinArraySubscriptExpr()
3748 } else if (const ObjCObjectPointerType *PTy = in CreateBuiltinArraySubscriptExpr() local
3758 ResultType = PTy->getPointeeType(); in CreateBuiltinArraySubscriptExpr()
3759 } else if (const PointerType *PTy = RHSTy->getAs<PointerType>()) { in CreateBuiltinArraySubscriptExpr() local
3763 ResultType = PTy->getPointeeType(); in CreateBuiltinArraySubscriptExpr()
3764 } else if (const ObjCObjectPointerType *PTy = in CreateBuiltinArraySubscriptExpr() local
[all …]
/freebsd-9-stable/contrib/llvm/lib/Analysis/IPA/
DInlineCost.cpp989 PointerType *PTy = cast<PointerType>(CS.getArgument(I)->getType()); in analyzeCall() local
990 unsigned TypeSize = TD->getTypeSizeInBits(PTy->getElementType()); in analyzeCall()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/AST/
DDeclPrinter.cpp110 else if (const PointerType* PTy = BaseType->getAs<PointerType>()) in GetBaseType() local
111 BaseType = PTy->getPointeeType(); in GetBaseType()
/freebsd-9-stable/contrib/llvm/include/llvm/Target/
DTargetLowering.h584 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) variable
585 return getPointerTy(PTy->getAddressSpace());
/freebsd-9-stable/contrib/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp1689 EVT PTy = TM.getTargetLowering()->getPointerTy(); in visitJumpTable() local
1691 JT.Reg, PTy); in visitJumpTable()
1692 SDValue Table = DAG.getJumpTable(JT.JTI, PTy); in visitJumpTable()
2451 EVT PTy = TLI->getPointerTy(); in handleBitTestsSwitchCase() local
2452 unsigned IntPtrBits = PTy.getSizeInBits(); in handleBitTestsSwitchCase()
2462 if (!TLI->isOperationLegal(ISD::SHL, PTy)) in handleBitTestsSwitchCase()
3288 EVT PTy = TLI->getPointerTy(AS); in visitGetElementPtr() local
3289 unsigned PtrBits = PTy.getSizeInBits(); in visitGetElementPtr()
3291 OffsVal = DAG.getNode(ISD::TRUNCATE, getCurSDLoc(), PTy, in visitGetElementPtr()
3294 OffsVal = DAG.getConstant(Offs, PTy); in visitGetElementPtr()
[all …]

12