/external/llvm/runtime/libprofile/ |
D | CommonProfiling.c | 103 int PTy = ArgumentInfo; in getOutFile() local 105 write(OutFile, &PTy, sizeof(int)); in getOutFile() 123 int PTy; in write_profiling_data() local 127 PTy = PT; in write_profiling_data() 128 if( write(outFile, &PTy, sizeof(int)) < 0 || in write_profiling_data()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 368 PointerType *PTy, in expandAddToGEP() argument 371 Type *ElTy = PTy->getElementType(); in expandAddToGEP() 489 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP() 572 if (V->getType() != PTy) in expandAddToGEP() 573 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP() 720 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local 733 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr() 734 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { in visitAddExpr() local 743 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, expand(Op)); in visitAddExpr() 1072 if (PointerType *PTy = dyn_cast<PointerType>(ExpandTy)) { in expandAddRecExprLiterally() local [all …]
|
D | LazyValueInfo.cpp | 633 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local 634 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal() 661 PointerType *PTy = cast<PointerType>(Val->getType()); in solveBlockValueNonLocal() local 662 Result = LVILatticeVal::getNot(ConstantPointerNull::get(PTy)); in solveBlockValueNonLocal()
|
D | ValueTracking.cpp | 1406 CompositeType *PTy = cast<CompositeType>(V->getType()); in FindInsertedValue() local 1409 return UndefValue::get(ExtractValueInst::getIndexedType(PTy, in FindInsertedValue() 1412 return Constant::getNullValue(ExtractValueInst::getIndexedType(PTy, in FindInsertedValue()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 80 VectorType *PTy = cast<VectorType>(V->getType()); in FindScalarElement() local 81 unsigned Width = PTy->getNumElements(); in FindScalarElement() 83 return UndefValue::get(PTy->getElementType()); in FindScalarElement() 86 return UndefValue::get(PTy->getElementType()); in FindScalarElement() 88 return Constant::getNullValue(PTy->getElementType()); in FindScalarElement() 113 return UndefValue::get(PTy->getElementType()); in FindScalarElement()
|
D | InstCombineCalls.cpp | 886 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallSite() local 887 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite() 1091 Type *PTy = getPromotedType((*AI)->getType()); in transformConstExprCastCall() local 1092 if (PTy != (*AI)->getType()) { in transformConstExprCastCall() 1095 CastInst::getCastOpcode(*AI, false, PTy, false); in transformConstExprCastCall() 1096 Args.push_back(Builder->CreateCast(opcode, *AI, PTy, "tmp")); in transformConstExprCastCall() 1170 PointerType *PTy = cast<PointerType>(Callee->getType()); in transformCallThroughTrampoline() local 1171 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline() 1311 NestF->getType() == PTy ? NestF : in transformCallThroughTrampoline() 1312 ConstantExpr::getBitCast(NestF, PTy); in transformCallThroughTrampoline()
|
/external/llvm/lib/VMCore/ |
D | Verifier.cpp | 544 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { in VerifyParameterAttrs() local 545 Assert1(!ByValI || PTy->getElementType()->isSized(), in VerifyParameterAttrs() 1289 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local 1290 Assert1(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst() 1291 Type *ElTy = PTy->getElementType(); in visitLoadInst() 1298 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local 1299 Assert1(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst() 1300 Type *ElTy = PTy->getElementType(); in visitStoreInst() 1308 PointerType *PTy = AI.getType(); in visitAllocaInst() local 1309 Assert1(PTy->getAddressSpace() == 0, in visitAllocaInst() [all …]
|
D | AsmWriter.cpp | 238 PointerType *PTy = cast<PointerType>(Ty); in print() local 239 print(PTy->getElementType(), OS); in print() 240 if (unsigned AddressSpace = PTy->getAddressSpace()) in print() 253 VectorType *PTy = cast<VectorType>(Ty); in print() local 254 OS << "<" << PTy->getNumElements() << " x "; in print() 255 print(PTy->getElementType(), OS); in print() 1733 PointerType *PTy = cast<PointerType>(Operand->getType()); in printInstruction() local 1734 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in printInstruction() 1766 PointerType *PTy = cast<PointerType>(Operand->getType()); in printInstruction() local 1767 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in printInstruction()
|
D | ConstantFold.cpp | 105 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local 107 if (PTy->getAddressSpace() == DPTy->getAddressSpace()) { in FoldBitCast() 112 Type *ElTy = PTy->getElementType(); in FoldBitCast() 367 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local 368 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf() 370 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf() 371 PTy->getAddressSpace()), in getFoldedSizeOf() 432 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local 433 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedAlignOf() 435 getFoldedAlignOf(PointerType::get(IntegerType::get(PTy->getContext(), in getFoldedAlignOf() [all …]
|
D | Instructions.cpp | 1072 PointerType *PTy = dyn_cast<PointerType>(Ptr); in getIndexedTypeInternal() local 1073 if (!PTy) return 0; // Type isn't a pointer type! in getIndexedTypeInternal() 1074 Type *Agg = PTy->getElementType(); in getIndexedTypeInternal() 1114 PointerType *PTy = dyn_cast<PointerType>(Ptr); in getIndexedType() local 1115 if (!PTy) return 0; // Type isn't a pointer type! in getIndexedType() 1118 if (!PTy->indexValid(Idx)) return 0; in getIndexedType() 1120 return PTy->getElementType(); in getIndexedType() 1592 if (VectorType *PTy = dyn_cast<VectorType>(Op->getType())) { in CreateNot() local 1593 C = Constant::getAllOnesValue(PTy->getElementType()); in CreateNot() 1595 std::vector<Constant*>(PTy->getNumElements(), C)); in CreateNot() [all …]
|
D | Constants.cpp | 105 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue() local 106 C = ConstantExpr::getIntToPtr(C, PTy); in getIntegerValue() 512 if (VectorType *PTy = dyn_cast<VectorType>(Ty)) in getZeroValueForNegation() local 513 if (PTy->getElementType()->isFloatingPointTy()) { in getZeroValueForNegation() 514 SmallVector<Constant*, 16> zeros(PTy->getNumElements(), in getZeroValueForNegation() 515 getNegativeZero(PTy->getElementType())); in getZeroValueForNegation()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpander.h | 161 PointerType *PTy, Type *Ty, Value *V);
|
/external/clang/lib/CodeGen/ |
D | CodeGenModule.cpp | 943 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetOrCreateLLVMFunction() local 944 return llvm::ConstantExpr::getBitCast(F, PTy); in GetOrCreateLLVMFunction() 1114 llvm::PointerType *PTy = in GetAddrOfGlobalVar() local 1118 return GetOrCreateLLVMGlobal(MangledName, PTy, D); in GetAddrOfGlobalVar() 1808 llvm::Type *PTy = llvm::PointerType::getUnqual(Ty); in GetAddrOfConstantString() local 1810 llvm::ConstantExpr::getBitCast(GV, PTy); in GetAddrOfConstantString() 1815 llvm::Type *PTy = llvm::ArrayType::get(Ty, 0); in GetAddrOfConstantString() local 1816 GV = CreateRuntimeVariable(PTy, str); in GetAddrOfConstantString()
|
D | CGExprCXX.cpp | 75 if (const PointerType *PTy = DerivedType->getAs<PointerType>()) in getMostDerivedClassDecl() local 76 DerivedType = PTy->getPointeeType(); in getMostDerivedClassDecl() 183 if (const PointerType * PTy = dyn_cast<PointerType>(PQTy)) { in EmitCXXMemberCallExpr() local 184 DI->getOrCreateRecordType(PTy->getPointeeType(), in EmitCXXMemberCallExpr() 1561 if (const PointerType *PTy = DestTy->getAs<PointerType>()) { in EmitDynamicCastCall() local 1562 if (PTy->getPointeeType()->isVoidType()) { in EmitDynamicCastCall()
|
D | CodeGenTypes.cpp | 386 const PointerType *PTy = cast<PointerType>(Ty); in ConvertType() local 387 QualType ETy = PTy->getPointeeType(); in ConvertType()
|
D | CGExpr.cpp | 860 llvm::Type *PTy = llvm::Type::getIntNPtrTy(getLLVMContext(), in EmitLoadOfBitfieldLValue() local 863 Ptr = Builder.CreateBitCast(Ptr, PTy); in EmitLoadOfBitfieldLValue() 1088 llvm::Type *PTy = AccessLTy->getPointerTo(addressSpace); in EmitStoreThroughBitfieldLValue() local 1089 Ptr = Builder.CreateBitCast(Ptr, PTy); in EmitStoreThroughBitfieldLValue() 1759 const PointerType *PTy = in EmitMemberExpr() local 1761 BaseQuals = PTy->getPointeeType().getQualifiers(); in EmitMemberExpr() 2202 const PointerType *PTy = BaseExpr->getType()->getAs<PointerType>(); in EmitCallExpr() local 2203 BaseQuals = PTy->getPointeeType().getQualifiers(); in EmitCallExpr()
|
D | TargetInfo.cpp | 734 llvm::Type *PTy = in EmitVAArg() local 736 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg() 2208 llvm::Type *PTy = in EmitVAArg() local 2210 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg() 2590 llvm::Type *PTy = in EmitVAArg() local 2592 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
|
D | CodeGenModule.h | 732 llvm::PointerType *PTy,
|
/external/llvm/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 240 PointerType *PTy = cast<PointerType>(T); in WriteTypeTable() local 243 TypeVals.push_back(VE.getTypeID(PTy->getElementType())); in WriteTypeTable() 244 unsigned AddressSpace = PTy->getAddressSpace(); in WriteTypeTable() 1086 PointerType *PTy = cast<PointerType>(Callee->getType()); in WriteInstruction() local 1087 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction() 1152 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); in WriteInstruction() local 1153 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 749 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local 750 if (PTy == 0) { in GetGlobalVal() 778 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) in GetGlobalVal() 781 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false, in GetGlobalVal() 789 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local 790 if (PTy == 0) { in GetGlobalVal() 816 if (FunctionType *FT = dyn_cast<FunctionType>(PTy->getElementType())) in GetGlobalVal() 819 FwdVal = new GlobalVariable(*M, PTy->getElementType(), false, in GetGlobalVal() 2429 PointerType *PTy = dyn_cast<PointerType>(Ty); in ConvertValIDToValue() local 2431 PTy ? dyn_cast<FunctionType>(PTy->getElementType()) : 0; in ConvertValIDToValue()
|
/external/llvm/lib/Target/CBackend/ |
D | CBackend.cpp | 536 PointerType *PTy = cast<PointerType>(Ty); in printType() local 539 if (PTy->getElementType()->isArrayTy() || in printType() 540 PTy->getElementType()->isVectorTy()) in printType() 545 return printType(Out, PTy->getElementType(), false, ptrName, true, PAL); in printType() 546 return printType(Out, PTy->getElementType(), false, ptrName); in printType() 2922 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallInst() local 2923 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallInst()
|
/external/clang/lib/AST/ |
D | DeclPrinter.cpp | 99 else if (const PointerType* PTy = BaseType->getAs<PointerType>()) in GetBaseType() local 100 BaseType = PTy->getPointeeType(); in GetBaseType()
|
/external/llvm/lib/CodeGen/ |
D | ELFWriter.cpp | 488 VectorType *PTy = CP->getType(); in EmitGlobalConstant() local 489 for (unsigned I = 0, E = PTy->getNumElements(); I < E; ++I) in EmitGlobalConstant()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ObjCARC.cpp | 216 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) { in GetFunctionClass() local 217 Type *ETy = PTy->getElementType(); in GetFunctionClass() 249 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) in GetFunctionClass() local 250 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass()
|
/external/clang/lib/Sema/ |
D | SemaExpr.cpp | 406 QualType PTy = Context.isPromotableBitField(E); in UsualUnaryConversions() local 407 if (!PTy.isNull()) { in UsualUnaryConversions() 408 E = ImpCastExprToType(E, PTy, CK_IntegralCast).take(); in UsualUnaryConversions() 3000 } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) { in CreateBuiltinArraySubscriptExpr() local 3003 ResultType = PTy->getPointeeType(); in CreateBuiltinArraySubscriptExpr() 3004 } else if (const PointerType *PTy = RHSTy->getAs<PointerType>()) { in CreateBuiltinArraySubscriptExpr() local 3008 ResultType = PTy->getPointeeType(); in CreateBuiltinArraySubscriptExpr() 3009 } else if (const ObjCObjectPointerType *PTy = in CreateBuiltinArraySubscriptExpr() local 3013 ResultType = PTy->getPointeeType(); in CreateBuiltinArraySubscriptExpr() 3014 } else if (const ObjCObjectPointerType *PTy = in CreateBuiltinArraySubscriptExpr() local [all …]
|