Home
last modified time | relevance | path

Searched refs:PtrTy (Results 1 – 25 of 130) sorted by relevance

123456

/external/clang/include/clang/Sema/
DOwnership.h45 template <class PtrTy>
50 typedef llvm::PointerLikeTypeTraits<PtrTy> Traits;
55 static OpaquePtr make(PtrTy P) { OpaquePtr OP; OP.set(P); return OP; } in make()
75 PtrTy get() const { in get()
79 void set(PtrTy P) { in set()
144 template<class PtrTy,
145 bool CompressInvalid = IsResultPtrLowBitFree<PtrTy>::value>
147 PtrTy Val;
152 : Val(PtrTy()), Invalid(Invalid) {}
153 ActionResult(PtrTy val) : Val(val), Invalid(false) {}
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSmallPtrSet.h172 template<typename PtrTy>
174 typedef PointerLikeTypeTraits<PtrTy> PtrTraits;
177 typedef PtrTy value_type;
178 typedef PtrTy reference;
179 typedef PtrTy pointer;
188 const PtrTy operator*() const {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp195 Type *PtrTy = Ty->getPointerTo(); in initializeCallbacks() local
198 M.getOrInsertFunction(AtomicLoadName, Attr, Ty, PtrTy, OrdTy)); in initializeCallbacks()
202 AtomicStoreName, Attr, IRB.getVoidTy(), PtrTy, Ty, OrdTy)); in initializeCallbacks()
226 M.getOrInsertFunction(RMWName, Attr, Ty, PtrTy, Ty, OrdTy)); in initializeCallbacks()
232 AtomicCASName, Attr, Ty, PtrTy, Ty, Ty, OrdTy, OrdTy)); in initializeCallbacks()
298 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType()); in shouldInstrumentReadWriteFromAddress() local
299 if (PtrTy->getPointerAddressSpace() != 0) in shouldInstrumentReadWriteFromAddress()
607 Type *PtrTy = Ty->getPointerTo(); in instrumentAtomic() local
608 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
622 Type *PtrTy = Ty->getPointerTo(); in instrumentAtomic() local
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp182 Type *PtrTy = Ty->getPointerTo(); in initializeCallbacks() local
185 M.getOrInsertFunction(AtomicLoadName, Ty, PtrTy, OrdTy, nullptr)); in initializeCallbacks()
189 AtomicStoreName, IRB.getVoidTy(), PtrTy, Ty, OrdTy, nullptr)); in initializeCallbacks()
213 M.getOrInsertFunction(RMWName, Ty, PtrTy, Ty, OrdTy, nullptr)); in initializeCallbacks()
219 AtomicCASName, Ty, PtrTy, Ty, Ty, OrdTy, OrdTy, nullptr)); in initializeCallbacks()
283 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType()); in shouldInstrumentReadWriteFromAddress() local
284 if (PtrTy->getPointerAddressSpace() != 0) in shouldInstrumentReadWriteFromAddress()
576 Type *PtrTy = Ty->getPointerTo(); in instrumentAtomic() local
577 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy), in instrumentAtomic()
597 Type *PtrTy = Ty->getPointerTo(); in instrumentAtomic() local
[all …]
/external/clang/lib/CodeGen/
DCGObjCGNU.cpp138 llvm::PointerType *PtrTy; member in __anonc6edbebb0111::CGObjCGNU
740 llvm::StructType *SlotStructTy = llvm::StructType::get(PtrTy, in CGObjCGNUstep()
741 PtrTy, PtrTy, IntTy, IMPTy, nullptr); in CGObjCGNUstep()
753 EnterCatchFn.init(&CGM, "__cxa_begin_catch", PtrTy, PtrTy, nullptr); in CGObjCGNUstep()
758 PtrTy, nullptr); in CGObjCGNUstep()
762 EnterCatchFn.init(&CGM, "objc_begin_catch", IdTy, PtrTy, nullptr); in CGObjCGNUstep()
767 PtrTy, nullptr); in CGObjCGNUstep()
780 CxxAtomicObjectSetFn.init(&CGM, "objc_setCppObjectAtomic", VoidTy, PtrTy, in CGObjCGNUstep()
781 PtrTy, PtrTy, nullptr); in CGObjCGNUstep()
784 CxxAtomicObjectGetFn.init(&CGM, "objc_getCppObjectAtomic", VoidTy, PtrTy, in CGObjCGNUstep()
[all …]
/external/llvm/include/llvm/ADT/
DSmallPtrSet.h231 template<typename PtrTy>
233 typedef PointerLikeTypeTraits<PtrTy> PtrTraits;
236 typedef PtrTy value_type;
237 typedef PtrTy reference;
238 typedef PtrTy pointer;
247 const PtrTy operator*() const {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DRandomIRBuilder.cpp142 if (auto PtrTy = dyn_cast<PointerType>(Inst->getType())) { in findPointer() local
144 if (!PtrTy->getElementType()->isSized() || in findPointer()
145 !PtrTy->getElementType()->isFirstClassType()) in findPointer()
149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType())); in findPointer()
/external/llvm/lib/IR/
DIRBuilder.cpp215 PointerType *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedLoad() local
216 Type *DataTy = PtrTy->getElementType(); in CreateMaskedLoad()
220 Type *OverloadedTypes[] = { DataTy, PtrTy }; in CreateMaskedLoad()
234 PointerType *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedStore() local
235 Type *DataTy = PtrTy->getElementType(); in CreateMaskedStore()
237 Type *OverloadedTypes[] = { DataTy, PtrTy }; in CreateMaskedStore()
266 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedGather() local
268 Type *DataTy = VectorType::get(PtrTy->getElementType(), NumElts); in CreateMaskedGather()
295 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedScatter() local
297 PtrTy->getElementType() == DataTy->getElementType() && in CreateMaskedScatter()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallPtrSet.h258 template<typename PtrTy>
260 typedef PointerLikeTypeTraits<PtrTy> PtrTraits;
263 typedef PtrTy value_type;
264 typedef PtrTy reference;
265 typedef PtrTy pointer;
274 const PtrTy operator*() const {
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DStackProtector.cpp168 PointerType *PtrTy = Type::getInt8PtrTy(RI->getContext()); in InsertStackProtectors() local
175 PointerType::get(PtrTy, AddressSpace)); in InsertStackProtectors()
177 StackGuardVar = M->getOrInsertGlobal("__stack_chk_guard", PtrTy); in InsertStackProtectors()
183 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt); in InsertStackProtectors()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSmallPtrSet.h266 template <typename PtrTy>
269 using PtrTraits = PointerLikeTypeTraits<PtrTy>;
272 using value_type = PtrTy;
273 using reference = PtrTy;
274 using pointer = PtrTy;
284 const PtrTy operator*() const {
/external/llvm/tools/lli/
DOrcLazyJIT.cpp103 template <typename PtrTy>
104 static PtrTy fromTargetAddress(orc::TargetAddress Addr) { in fromTargetAddress()
105 return reinterpret_cast<PtrTy>(static_cast<uintptr_t>(Addr)); in fromTargetAddress()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64LegalizerInfo.cpp415 LLT PtrTy = MRI.getType(ListPtr); in legalizeVaArg() local
416 LLT IntPtrTy = LLT::scalar(PtrTy.getSizeInBits()); in legalizeVaArg()
418 const unsigned PtrSize = PtrTy.getSizeInBits() / 8; in legalizeVaArg()
419 unsigned List = MRI.createGenericVirtualRegister(PtrTy); in legalizeVaArg()
430 unsigned ListTmp = MRI.createGenericVirtualRegister(PtrTy); in legalizeVaArg()
433 DstPtr = MRI.createGenericVirtualRegister(PtrTy); in legalizeVaArg()
447 unsigned NewList = MRI.createGenericVirtualRegister(PtrTy); in legalizeVaArg()
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp76 Type *PtrTy = Ptr->getType(); in visitLoadInst() local
77 Type *ElemTy = PtrTy->getPointerElementType(); in visitLoadInst()
81 PointerType::get(v4i32,PtrTy->getPointerAddressSpace())); in visitLoadInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCallLowering.cpp53 PointerType *PtrTy = PointerType::get(ParamTy, AMDGPUASI.CONSTANT_ADDRESS); in lowerParameterPtr() local
54 LLT PtrType = getLLTForType(*PtrTy, DL); in lowerParameterPtr()
75 PointerType *PtrTy = PointerType::get(ParamTy, AMDGPUASI.CONSTANT_ADDRESS); in lowerParameter() local
76 MachinePointerInfo PtrInfo(UndefValue::get(PtrTy)); in lowerParameter()
DAMDGPULegalizerInfo.cpp113 for (LLT PtrTy : AddrSpaces) { in AMDGPULegalizerInfo() local
114 LLT IdxTy = LLT::scalar(PtrTy.getSizeInBits()); in AMDGPULegalizerInfo()
115 setAction({G_GEP, PtrTy}, Legal); in AMDGPULegalizerInfo()
DAMDGPUHSAMetadataStreamer.cpp357 if (auto PtrTy = dyn_cast<PointerType>(Ty)) { in emitKernelArg() local
358 if (PtrTy->getAddressSpace() == AMDGPUASI.LOCAL_ADDRESS) { in emitKernelArg()
361 PointeeAlign = DL.getABITypeAlignment(PtrTy->getElementType()); in emitKernelArg()
386 if (auto PtrTy = dyn_cast<PointerType>(Ty)) in emitKernelArg() local
387 Arg.mAddrSpaceQual = getAddressSpaceQualifer(PtrTy->getAddressSpace()); in emitKernelArg()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DIRBuilder.cpp473 auto *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedLoad() local
474 Type *DataTy = PtrTy->getElementType(); in CreateMaskedLoad()
479 Type *OverloadedTypes[] = { DataTy, PtrTy }; in CreateMaskedLoad()
493 auto *PtrTy = cast<PointerType>(Ptr->getType()); in CreateMaskedStore() local
494 Type *DataTy = PtrTy->getElementType(); in CreateMaskedStore()
497 Type *OverloadedTypes[] = { DataTy, PtrTy }; in CreateMaskedStore()
526 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedGather() local
528 Type *DataTy = VectorType::get(PtrTy->getElementType(), NumElts); in CreateMaskedGather()
560 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedScatter() local
562 PtrTy->getElementType() == DataTy->getElementType() && in CreateMaskedScatter()
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUISelDAGToDAG.cpp406 EVT PtrTy = SPUtli.getPointerTy(); in DFormAddressPredicate() local
415 Base = CurDAG->getTargetConstant(0, PtrTy); in DFormAddressPredicate()
416 Index = CurDAG->getTargetFrameIndex(FI, PtrTy); in DFormAddressPredicate()
426 Base = CurDAG->getTargetConstant(0, PtrTy); in DFormAddressPredicate()
441 Base = CurDAG->getTargetConstant(offset, PtrTy); in DFormAddressPredicate()
442 Index = CurDAG->getTargetFrameIndex(FI, PtrTy); in DFormAddressPredicate()
446 Base = CurDAG->getTargetConstant(offset, PtrTy); in DFormAddressPredicate()
462 Base = CurDAG->getTargetConstant(offset, PtrTy); in DFormAddressPredicate()
463 Index = CurDAG->getTargetFrameIndex(FI, PtrTy); in DFormAddressPredicate()
467 Base = CurDAG->getTargetConstant(offset, PtrTy); in DFormAddressPredicate()
[all …]
/external/llvm/include/llvm/ExecutionEngine/Orc/
DExecutionUtils.h160 template <typename PtrTy>
161 TargetAddress toTargetAddress(PtrTy* P) { in toTargetAddress()
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp64 PointerType *PtrTy; member in __anon7e6996ae0111::Scatterer
188 PtrTy = dyn_cast<PointerType>(Ty); in Scatterer()
189 if (PtrTy) in Scatterer()
190 Ty = PtrTy->getElementType(); in Scatterer()
207 if (PtrTy) { in operator []()
210 PointerType::get(PtrTy->getElementType()->getVectorElementType(), in operator []()
211 PtrTy->getAddressSpace()); in operator []()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp88 PointerType *PtrTy; member in __anon57f6c6060111::Scatterer
222 PtrTy = dyn_cast<PointerType>(Ty); in Scatterer()
223 if (PtrTy) in Scatterer()
224 Ty = PtrTy->getElementType(); in Scatterer()
241 if (PtrTy) { in operator []()
244 PointerType::get(PtrTy->getElementType()->getVectorElementType(), in operator []()
245 PtrTy->getAddressSpace()); in operator []()
/external/llvm/lib/ExecutionEngine/Orc/
DOrcCBindingsStack.h111 template <typename PtrTy> in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
112 static PtrTy fromTargetAddress(orc::TargetAddress Addr) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
113 return reinterpret_cast<PtrTy>(static_cast<uintptr_t>(Addr)); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DConstantsTest.cpp378 Type *PtrTy = PointerType::get(IntTy, 0); in TEST() local
386 new GlobalVariable(*M, PtrTy, false, GlobalValue::ExternalLinkage, GEP); in TEST()
389 auto *Global = new GlobalVariable(*M, PtrTy, false, in TEST()
474 auto *PtrTy = PointerType::get(i32, 0); in TEST() local
475 auto *C = ConstantExpr::getBitCast(G, PtrTy); in TEST()
/external/llvm/unittests/IR/
DConstantsTest.cpp377 Type *PtrTy = PointerType::get(IntTy, 0); in TEST() local
385 new GlobalVariable(*M, PtrTy, false, GlobalValue::ExternalLinkage, GEP); in TEST()
388 auto *Global = new GlobalVariable(*M, PtrTy, false, in TEST()
473 auto *PtrTy = PointerType::get(i32, 0); in TEST() local
474 auto *C = ConstantExpr::getBitCast(G, PtrTy); in TEST()

123456