/external/llvm/unittests/Support/ |
D | Casting.cpp | 249 class PTy { class 252 PTy(Base *B) : B(B) {} in PTy() function in __anon719097030311::pointer_wrappers::PTy 262 template <> struct simplify_type<pointer_wrappers::PTy> { 264 static SimpleType getSimplifiedValue(pointer_wrappers::PTy &P) { in getSimplifiedValue() 268 template <> struct simplify_type<const pointer_wrappers::PTy> { 270 static SimpleType getSimplifiedValue(const pointer_wrappers::PTy &P) { in getSimplifiedValue() 285 pointer_wrappers::PTy MN(nullptr); 286 pointer_wrappers::PTy MB(&B); 287 pointer_wrappers::PTy MD(&D); 290 const pointer_wrappers::PTy CN(nullptr); [all …]
|
/external/swiftshader/third_party/LLVM/runtime/libprofile/ |
D | CommonProfiling.c | 103 int PTy = ArgumentInfo; in getOutFile() local 105 if (write(OutFile, &PTy, sizeof(int)) < 0 || in getOutFile() 130 int PTy; in write_profiling_data() local 134 PTy = PT; in write_profiling_data() 135 if( write(outFile, &PTy, sizeof(int)) < 0 || in write_profiling_data()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAlloca.cpp | 72 auto PTy = dyn_cast<PointerType>(allocaInst->getType()); in runOnBasicBlock() local 73 auto ETy = PTy->getElementType(); in runOnBasicBlock()
|
D | NVPTXAsmPrinter.cpp | 1056 PointerType *PTy = GVar->getType(); in printModuleLevelGV() local 1176 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV() 1200 if ((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1201 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) { in printModuleLevelGV() 1216 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV() 1234 if (((PTy->getAddressSpace() == llvm::ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1235 (PTy->getAddressSpace() == llvm::ADDRESS_SPACE_CONST)) && in printModuleLevelGV() 1520 auto *PTy = dyn_cast<PointerType>(Ty); in emitFunctionParamList() local 1522 if (PTy) { in emitFunctionParamList() 1528 Type *ETy = PTy->getElementType(); in emitFunctionParamList() [all …]
|
D | NVPTXAsmPrinter.h | 161 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local 163 if (PTy && PTy->getAddressSpace() != 0) { in print()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | IndirectCallPromotion.cpp | 240 Type *PTy = DirectCalleeType->getFunctionParamType(I); in isPromotionLegal() local 242 if (PTy == ATy) in isPromotionLegal() 244 if (!CastInst::castIsValid(Instruction::BitCast, CS.getArgument(I), PTy)) in isPromotionLegal() 483 Type *PTy = DirectCalleeType->getParamType(I); in createDirectCallInst() local 484 if (ATy != PTy) { in createDirectCallInst() 485 BitCastInst *BI = new BitCastInst(NewCS.getArgument(I), PTy, "", NewInst); in createDirectCallInst()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 170 Type *PTy; // Type of the pointer operand. member 172 GepNode() : Flags(0), Parent(0), Idx(0), PTy(0) {} in GepNode() 173 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode() 231 if (GN.PTy->isStructTy()) { in operator <<() 232 StructType *STy = cast<StructType>(GN.PTy); in operator <<() 234 OS << GN.PTy->getStructName(); in operator <<() 239 OS << *GN.PTy; in operator <<() 337 N->PTy = PtrOp->getType(); in processGepInst() 367 Nx->PTy = PtrTy; in processGepInst() 472 ID.AddPointer(N->PTy); in node_hash() [all …]
|
D | HexagonTargetObjectFile.cpp | 278 const VectorType *PTy = cast<const VectorType>(Ty); in getSmallestAddressableSize() local 279 return getSmallestAddressableSize(PTy->getElementType(), GV, TM); in getSmallestAddressableSize()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Verifier.cpp | 559 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { in VerifyParameterAttrs() local 560 Assert1(!ByValI || PTy->getElementType()->isSized(), in VerifyParameterAttrs() 1313 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local 1314 Assert1(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst() 1315 Type *ElTy = PTy->getElementType(); in visitLoadInst() 1331 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local 1332 Assert1(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst() 1333 Type *ElTy = PTy->getElementType(); in visitStoreInst() 1350 PointerType *PTy = AI.getType(); in visitAllocaInst() local 1351 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() 1795 PointerType *PTy = cast<PointerType>(Operand->getType()); in printInstruction() local 1796 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in printInstruction() 1828 PointerType *PTy = cast<PointerType>(Operand->getType()); in printInstruction() local 1829 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() 366 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local 367 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf() 369 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf() 370 PTy->getAddressSpace()), in getFoldedSizeOf() 431 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local 432 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedAlignOf() 434 getFoldedAlignOf(PointerType::get(IntegerType::get(PTy->getContext(), in getFoldedAlignOf() [all …]
|
/external/swiftshader/third_party/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 | 960 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallSite() local 961 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite() 1165 Type *PTy = getPromotedType((*AI)->getType()); in transformConstExprCastCall() local 1166 if (PTy != (*AI)->getType()) { in transformConstExprCastCall() 1169 CastInst::getCastOpcode(*AI, false, PTy, false); in transformConstExprCastCall() 1170 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); in transformConstExprCastCall() 1247 PointerType *PTy = cast<PointerType>(Callee->getType()); in transformCallThroughTrampoline() local 1248 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline() 1388 NestF->getType() == PTy ? NestF : in transformCallThroughTrampoline() 1389 ConstantExpr::getBitCast(NestF, PTy); in transformCallThroughTrampoline()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 372 PointerType *PTy, in expandAddToGEP() argument 375 Type *ElTy = PTy->getElementType(); in expandAddToGEP() 493 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP() 576 if (V->getType() != PTy) in expandAddToGEP() 577 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP() 723 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local 736 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr() 737 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { in visitAddExpr() local 746 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, expand(Op)); in visitAddExpr() 1143 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()
|
/external/llvm/lib/IR/ |
D | Globals.cpp | 353 PointerType *PTy = Aliasee->getType(); in create() local 354 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name, in create()
|
D | Module.cpp | 237 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local 238 if (GVTy != PTy) in getOrInsertGlobal() 239 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
|
D | ConstantFold.cpp | 107 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local 109 if (PTy->getAddressSpace() == DPTy->getAddressSpace() in FoldBitCast() 110 && PTy->getElementType()->isSized()) { in FoldBitCast() 115 Type *ElTy = PTy->getElementType(); in FoldBitCast() 133 return ConstantExpr::getInBoundsGetElementPtr(PTy->getElementType(), in FoldBitCast() 383 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local 384 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf() 386 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf() 387 PTy->getAddressSpace()), in getFoldedSizeOf() 447 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local [all …]
|
D | Verifier.cpp | 586 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() local 587 Assert(PTy, "wrong type for intrinsic global variable", &GV); in visitGlobalVariable() 1411 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) { in verifyParameterAttrs() local 1413 if (!PTy->getElementType()->isSized(&Visited)) { in verifyParameterAttrs() 1419 if (!isa<PointerType>(PTy->getElementType())) in verifyParameterAttrs() 2977 PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType()); in visitLoadInst() local 2978 Assert(PTy, "Load operand must be a pointer.", &LI); in visitLoadInst() 3004 PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType()); in visitStoreInst() local 3005 Assert(PTy, "Store operand must be a pointer.", &SI); in visitStoreInst() 3006 Type *ElTy = PTy->getElementType(); in visitStoreInst() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 387 PointerType *PTy, in expandAddToGEP() argument 390 Type *OriginalElTy = PTy->getElementType(); in expandAddToGEP() 400 Type *IntPtrTy = DL.getIntPtrType(PTy); in expandAddToGEP() 492 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP() 570 if (V->getType() != PTy) in expandAddToGEP() 571 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP() 692 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local 705 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr() 706 } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) { in visitAddExpr() local 715 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, expand(Op)); in visitAddExpr() [all …]
|
D | ObjCARCInstKind.cpp | 101 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) { in GetFunctionClass() local 102 Type *ETy = PTy->getElementType(); in GetFunctionClass() 140 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) in GetFunctionClass() local 141 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass()
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | ScalarEvolutionExpander.h | 188 PointerType *PTy, Type *Ty, Value *V);
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 2578 PointerType *PTy = cast<PointerType>(Callee->getType()); in visitCallSite() local 2579 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite() 2802 Type *PTy = getPromotedType((*AI)->getType()); in transformConstExprCastCall() local 2803 if (PTy != (*AI)->getType()) { in transformConstExprCastCall() 2806 CastInst::getCastOpcode(*AI, false, PTy, false); in transformConstExprCastCall() 2807 Args.push_back(Builder->CreateCast(opcode, *AI, PTy)); in transformConstExprCastCall() 2894 PointerType *PTy = cast<PointerType>(Callee->getType()); in transformCallThroughTrampoline() local 2895 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in transformCallThroughTrampoline() 3045 NestF->getType() == PTy ? NestF : in transformCallThroughTrampoline() 3046 ConstantExpr::getBitCast(NestF, PTy); in transformCallThroughTrampoline()
|
/external/clang/lib/CodeGen/ |
D | CGCall.cpp | 1836 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local 1837 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList() 1838 RetAttrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy) in ConstructAttributeList() 1840 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList() 1952 QualType PTy = RefTy->getPointeeType(); in ConstructAttributeList() local 1953 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) in ConstructAttributeList() 1954 Attrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy) in ConstructAttributeList() 1956 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList() 1976 auto PTy = ParamType->getPointeeType(); in ConstructAttributeList() local 1977 if (!PTy->isIncompleteType() && PTy->isConstantSizeType()) { in ConstructAttributeList() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 276 PointerType *PTy = cast<PointerType>(T); in WriteTypeTable() local 279 TypeVals.push_back(VE.getTypeID(PTy->getElementType())); in WriteTypeTable() 280 unsigned AddressSpace = PTy->getAddressSpace(); in WriteTypeTable() 1123 PointerType *PTy = cast<PointerType>(Callee->getType()); in WriteInstruction() local 1124 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction() 1252 PointerType *PTy = cast<PointerType>(CI.getCalledValue()->getType()); in WriteInstruction() local 1253 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in WriteInstruction()
|