Home
last modified time | relevance | path

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

12345

/external/llvm/unittests/Support/
DCasting.cpp249 class PTy { class
252 PTy(Base *B) : B(B) {} in PTy() function in __anon0d00deae0311::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-7.0/llvm/unittests/Support/
DCasting.cpp324 class PTy { class
327 PTy(Base *B) : B(B) {} in PTy() function in __anoncd4d29460311::pointer_wrappers::PTy
337 template <> struct simplify_type<pointer_wrappers::PTy> {
339 static SimpleType getSimplifiedValue(pointer_wrappers::PTy &P) { in getSimplifiedValue()
343 template <> struct simplify_type<const pointer_wrappers::PTy> {
345 static SimpleType getSimplifiedValue(const pointer_wrappers::PTy &P) { in getSimplifiedValue()
360 pointer_wrappers::PTy MN(nullptr);
361 pointer_wrappers::PTy MB(&B);
362 pointer_wrappers::PTy MD(&D);
365 const pointer_wrappers::PTy CN(nullptr);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DLowLevelType.cpp28 } else if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() local
29 return LLT::pointer(PTy->getAddressSpace(), DL.getTypeSizeInBits(&Ty)); in getLLTForType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXLowerAlloca.cpp72 auto PTy = dyn_cast<PointerType>(allocaInst->getType()); in runOnBasicBlock() local
73 auto ETy = PTy->getElementType(); in runOnBasicBlock()
DNVPTXAsmPrinter.cpp1014 PointerType *PTy = GVar->getType(); in printModuleLevelGV() local
1133 emitPTXAddressSpace(PTy->getAddressSpace(), O); in printModuleLevelGV()
1158 if ((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1159 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) { in printModuleLevelGV()
1174 Twine(PTy->getAddressSpace()) + ")"); in printModuleLevelGV()
1193 if (((PTy->getAddressSpace() == ADDRESS_SPACE_GLOBAL) || in printModuleLevelGV()
1194 (PTy->getAddressSpace() == ADDRESS_SPACE_CONST)) && in printModuleLevelGV()
1488 auto *PTy = dyn_cast<PointerType>(Ty); in emitFunctionParamList() local
1490 if (PTy) { in emitFunctionParamList()
1496 Type *ETy = PTy->getElementType(); in emitFunctionParamList()
[all …]
DNVPTXAsmPrinter.h164 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local
166 if (PTy && PTy->getAddressSpace() != 0) { in print()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAlloca.cpp72 auto PTy = dyn_cast<PointerType>(allocaInst->getType()); in runOnBasicBlock() local
73 auto ETy = PTy->getElementType(); in runOnBasicBlock()
DNVPTXAsmPrinter.cpp1056 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 …]
DNVPTXAsmPrinter.h161 PointerType *PTy = dyn_cast<PointerType>(v0->getType()); in print() local
163 if (PTy && PTy->getAddressSpace() != 0) { in print()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp190 Type *PTy = nullptr; // Type of the pointer operand. member
193 GepNode(const GepNode *N) : Flags(N->Flags), Idx(N->Idx), PTy(N->PTy) { in GepNode()
204 if (auto *PTy = dyn_cast<PointerType>(Ty)) in next_type() local
205 return PTy->getElementType(); in next_type()
257 if (GN.PTy->isStructTy()) { in operator <<()
258 StructType *STy = cast<StructType>(GN.PTy); in operator <<()
260 OS << GN.PTy->getStructName(); in operator <<()
265 OS << *GN.PTy; in operator <<()
359 N->PTy = PtrOp->getType(); in processGepInst()
389 Nx->PTy = PtrTy; in processGepInst()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp240 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/
DHexagonCommonGEP.cpp170 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-7.0/llvm/lib/Analysis/
DObjCARCInstKind.cpp101 PointerType *PTy = dyn_cast<PointerType>(A0->getType()); in GetFunctionClass() local
102 if (!PTy) in GetFunctionClass()
105 Type *ETy = PTy->getElementType(); in GetFunctionClass()
144 if (PointerType *PTy = dyn_cast<PointerType>(A0->getType())) in GetFunctionClass() local
145 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass()
DScalarEvolutionExpander.cpp400 PointerType *PTy, in expandAddToGEP() argument
403 Type *OriginalElTy = PTy->getElementType(); in expandAddToGEP()
413 Type *IntPtrTy = DL.getIntPtrType(PTy); in expandAddToGEP()
505 Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); in expandAddToGEP()
582 if (V->getType() != PTy) in expandAddToGEP()
583 Casted = InsertNoopCastOfTo(Casted, PTy); in expandAddToGEP()
592 Value *SCEVExpander::expandAddToGEP(const SCEV *Op, PointerType *PTy, Type *Ty, in expandAddToGEP() argument
595 return expandAddToGEP(Ops, Ops + 1, PTy, Ty, V); in expandAddToGEP()
710 } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) { in visitAddExpr() local
723 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDataLayout.h353 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() local
354 return PTy && isNonIntegralPointerType(PTy); in isNonIntegralPointerType()
/external/llvm/lib/IR/
DGlobals.cpp353 PointerType *PTy = Aliasee->getType(); in create() local
354 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name, in create()
DModule.cpp237 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local
238 if (GVTy != PTy) in getOrInsertGlobal()
239 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()
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 …]
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp387 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 …]
DObjCARCInstKind.cpp101 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-7.0/llvm/lib/IR/
DGlobals.cpp438 PointerType *PTy = Aliasee->getType(); in create() local
439 return create(PTy->getElementType(), PTy->getAddressSpace(), Link, Name, in create()
DModule.cpp216 PointerType *PTy = PointerType::get(Ty, GVTy->getPointerAddressSpace()); in getOrInsertGlobal() local
217 if (GVTy != PTy) in getOrInsertGlobal()
218 return ConstantExpr::getBitCast(GV, PTy); in getOrInsertGlobal()
DConstantFold.cpp108 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() local
110 if (PTy->getAddressSpace() == DPTy->getAddressSpace() in FoldBitCast()
111 && PTy->getElementType()->isSized()) { in FoldBitCast()
116 Type *ElTy = PTy->getElementType(); in FoldBitCast()
133 return ConstantExpr::getInBoundsGetElementPtr(PTy->getElementType(), in FoldBitCast()
382 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedSizeOf() local
383 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf()
385 getFoldedSizeOf(PointerType::get(IntegerType::get(PTy->getContext(), 1), in getFoldedSizeOf()
386 PTy->getAddressSpace()), in getFoldedSizeOf()
445 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) in getFoldedAlignOf() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp194 PointerType *PTy = cast<PointerType>(U->get()->getType()); in runOnModule() local
195 FunctionType *Ty = dyn_cast<FunctionType>(PTy->getElementType()); in runOnModule()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DScalarEvolutionExpander.h337 PointerType *PTy, Type *Ty, Value *V);
338 Value *expandAddToGEP(const SCEV *Op, PointerType *PTy, Type *Ty, Value *V);

12345