/external/llvm/unittests/Support/ |
D | Casting.cpp | 249 class PTy { class 252 PTy(Base *B) : B(B) {} in PTy() function in __anon7d25e98a0311::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/llvm-project/llvm/unittests/Support/ |
D | Casting.cpp | 329 class PTy { class 332 PTy(Base *B) : B(B) {} in PTy() function in __anon7e6d81b80311::pointer_wrappers::PTy 342 template <> struct simplify_type<pointer_wrappers::PTy> { 344 static SimpleType getSimplifiedValue(pointer_wrappers::PTy &P) { in getSimplifiedValue() 348 template <> struct simplify_type<const pointer_wrappers::PTy> { 350 static SimpleType getSimplifiedValue(const pointer_wrappers::PTy &P) { in getSimplifiedValue() 365 pointer_wrappers::PTy MN(nullptr); 366 pointer_wrappers::PTy MB(&B); 367 pointer_wrappers::PTy MD(&D); 370 const pointer_wrappers::PTy CN(nullptr); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() local 30 unsigned AddrSpace = PTy->getAddressSpace(); in getLLTForType()
|
/external/llvm-project/llvm/lib/Transforms/CFGuard/ |
D | CFGuard.cpp | 194 PointerType *PTy = PointerType::get(CalledOperandType, 0); in insertCFGuardDispatch() local 195 if (GuardFnGlobal->getType() != PTy) in insertCFGuardDispatch() 196 GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy); in insertCFGuardDispatch()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/CFGuard/ |
D | CFGuard.cpp | 194 PointerType *PTy = PointerType::get(CalledOperandType, 0); in insertCFGuardDispatch() local 195 if (GuardFnGlobal->getType() != PTy) in insertCFGuardDispatch() 196 GuardFnGlobal = ConstantExpr::getBitCast(GuardFnGlobal, PTy); in insertCFGuardDispatch()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 30 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() local 31 unsigned AddrSpace = PTy->getAddressSpace(); in getLLTForType()
|
/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/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Module.cpp | 159 auto *PTy = PointerType::get(Ty, F->getAddressSpace()); in getOrInsertFunction() local 160 if (F->getType() != PTy) in getOrInsertFunction() 161 return {Ty, ConstantExpr::getBitCast(F, PTy)}; in getOrInsertFunction() 216 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local 217 if (GVTy != PTy) in getOrInsertGlobal() 218 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 191 Type *PTy = nullptr; // Type of the pointer operand. member 194 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode() 205 if (auto *PTy = dyn_cast<PointerType>(Ty)) in next_type() local 206 return PTy->getElementType(); in next_type() 248 if (GN.PTy->isStructTy()) { in operator <<() 249 StructType *STy = cast<StructType>(GN.PTy); in operator <<() 251 OS << GN.PTy->getStructName(); in operator <<() 256 OS << *GN.PTy; in operator <<() 350 N->PTy = PtrOp->getType(); in processGepInst() 380 Nx->PTy = PtrTy; in processGepInst() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonCommonGEP.cpp | 191 Type *PTy = nullptr; // Type of the pointer operand. member 194 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode() 205 if (auto *PTy = dyn_cast<PointerType>(Ty)) in next_type() local 206 return PTy->getElementType(); in next_type() 258 if (GN.PTy->isStructTy()) { in operator <<() 259 StructType *STy = cast<StructType>(GN.PTy); in operator <<() 261 OS << GN.PTy->getStructName(); in operator <<() 266 OS << *GN.PTy; in operator <<() 360 N->PTy = PtrOp->getType(); in processGepInst() 390 Nx->PTy = PtrTy; in processGepInst() [all …]
|
/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-project/llvm/lib/IR/ |
D | Module.cpp | 159 auto *PTy = PointerType::get(Ty, F->getAddressSpace()); in getOrInsertFunction() local 160 if (F->getType() != PTy) in getOrInsertFunction() 161 return {Ty, ConstantExpr::getBitCast(F, PTy)}; in getOrInsertFunction() 216 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local 217 if (GVTy != PTy) in getOrInsertGlobal() 218 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
|
/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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 1012 PointerType *PTy = GVar->getType(); in printModuleLevelGV() local 1131 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV() 1156 if ((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1157 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) { in printModuleLevelGV() 1172 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV() 1191 if (((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1192 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) && in printModuleLevelGV() 1487 auto *PTy = dyn_cast<PointerType>(Ty); in emitFunctionParamList() local 1489 if (PTy) { in emitFunctionParamList() 1495 Type *ETy = PTy->getElementType(); in emitFunctionParamList() [all …]
|
D | NVPTXAsmPrinter.h | 163 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local 165 if (PTy && PTy->getAddressSpace() != 0) { in print()
|
/external/llvm-project/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 1003 PointerType *PTy = GVar->getType(); in printModuleLevelGV() local 1122 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV() 1147 if ((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1148 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) { in printModuleLevelGV() 1163 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV() 1182 if (((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV() 1183 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) && in printModuleLevelGV() 1476 auto *PTy = dyn_cast<PointerType>(Ty); in emitFunctionParamList() local 1478 if (PTy) { in emitFunctionParamList() 1484 Type *ETy = PTy->getElementType(); in emitFunctionParamList() [all …]
|
D | NVPTXAsmPrinter.h | 163 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local 165 if (PTy && PTy->getAddressSpace() != 0) { in print()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 404 PointerType *PTy, in expandAddToGEP() argument 407 Type *OriginalElTy = PTy->getElementType(); in expandAddToGEP() 417 Type *IntIdxTy = DL.getIndexType(PTy); in expandAddToGEP() 509 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP() 586 if (V->getType() != PTy) in expandAddToGEP() 587 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP() 596 Value *SCEVExpander::expandAddToGEP(const SCEV *Op, PointerType *PTy, Type *Ty, in expandAddToGEP() argument 599 return expandAddToGEP(Ops, Ops + 1, PTy, Ty, V); in expandAddToGEP() 714 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local 727 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr() [all …]
|
/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()
|
/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 …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | DataLayout.h | 399 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() local 400 return PTy && isNonIntegralPointerType(PTy); in isNonIntegralPointerType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | DataLayout.h | 385 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() local 386 return PTy && isNonIntegralPointerType(PTy); in isNonIntegralPointerType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/ |
D | BPFAbstractMemberAccess.cpp | 380 const auto *PTy = dyn_cast<DICompositeType>(PType); in IsValidAIChain() local 382 assert(PTy && CTy && "ParentType or ChildType is null or not composite"); in IsValidAIChain() 384 uint32_t PTyTag = PTy->getTag(); in IsValidAIChain() 396 return PTy->getBaseType() == CTy->getBaseType(); in IsValidAIChain() 400 Ty = PTy->getBaseType(); in IsValidAIChain() 402 Ty = dyn_cast<DIType>(PTy->getElements()[ParentAI]); in IsValidAIChain()
|