Home
last modified time | relevance | path

Searched refs:Ptrs (Results 1 – 25 of 34) sorted by relevance

12

/external/llvm-project/clang/lib/AST/
DMicrosoftCXXABI.cpp219 unsigned Ptrs = 0; in getMSMemberPointerSlots() local
222 Ptrs = 1; in getMSMemberPointerSlots()
232 return std::make_pair(Ptrs, Ints); in getMSMemberPointerSlots()
243 unsigned Ptrs, Ints; in getMemberPointerInfo() local
244 std::tie(Ptrs, Ints) = getMSMemberPointerSlots(MPT); in getMemberPointerInfo()
247 MPI.Width = Ptrs * PtrSize + Ints * IntSize; in getMemberPointerInfo()
252 if (Ptrs + Ints > 1 && Target.getTriple().isArch32Bit()) in getMemberPointerInfo()
254 else if (Ptrs) in getMemberPointerInfo()
261 MPI.HasPadding = MPI.Width != (Ptrs * PtrSize + Ints * IntSize); in getMemberPointerInfo()
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/
Dbasic.cpp47 void *Ptrs[kNumSlots]; in TEST_F() local
49 Ptrs[i] = GPA.allocate(1); in TEST_F()
50 EXPECT_NE(nullptr, Ptrs[i]); in TEST_F()
51 EXPECT_TRUE(GPA.pointerIsMine(Ptrs[i])); in TEST_F()
60 GPA.deallocate(Ptrs[i]); in TEST_F()
Dslot_reuse.cpp46 std::set<void *> Ptrs; in runNoReuseBeforeNecessary() local
51 EXPECT_EQ(0u, Ptrs.count(Ptr)); in runNoReuseBeforeNecessary()
53 Ptrs.insert(Ptr); in runNoReuseBeforeNecessary()
/external/clang/lib/AST/
DMicrosoftCXXABI.cpp225 unsigned Ptrs = 0; in getMSMemberPointerSlots() local
228 Ptrs = 1; in getMSMemberPointerSlots()
238 return std::make_pair(Ptrs, Ints); in getMSMemberPointerSlots()
249 unsigned Ptrs, Ints; in getMemberPointerWidthAndAlign() local
250 std::tie(Ptrs, Ints) = getMSMemberPointerSlots(MPT); in getMemberPointerWidthAndAlign()
251 uint64_t Width = Ptrs * PtrSize + Ints * IntSize; in getMemberPointerWidthAndAlign()
257 if (Ptrs + Ints > 1 && Target.getTriple().isArch32Bit()) in getMemberPointerWidthAndAlign()
259 else if (Ptrs) in getMemberPointerWidthAndAlign()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dcombined_test.cpp500 std::set<scudo::uptr> Ptrs; in TEST() local
505 if (Ptrs.count(P - Size)) { in TEST()
510 if (Ptrs.count(P + Size)) { in TEST()
515 Ptrs.insert(P); in TEST()
526 std::vector<void *> Ptrs(65536, nullptr); in TEST() local
540 for (unsigned I = 0; I != Ptrs.size(); ++I) { in TEST()
541 Ptrs[I] = Allocator->allocate(Size, Origin); in TEST()
542 memset(Ptrs[I], 0xaa, Size); in TEST()
544 for (unsigned I = 0; I != Ptrs.size(); ++I) in TEST()
545 Allocator->deallocate(Ptrs[I], Origin, Size); in TEST()
[all …]
/external/gwp_asan/gwp_asan/tests/
Dbasic.cpp78 void *Ptrs[kNumSlots]; in TEST_F() local
80 Ptrs[i] = GPA.allocate(1); in TEST_F()
81 EXPECT_NE(nullptr, Ptrs[i]); in TEST_F()
82 EXPECT_TRUE(GPA.pointerIsMine(Ptrs[i])); in TEST_F()
91 GPA.deallocate(Ptrs[i]); in TEST_F()
Dslot_reuse.cpp46 std::set<void *> Ptrs; in runNoReuseBeforeNecessary() local
51 EXPECT_EQ(0u, Ptrs.count(Ptr)); in runNoReuseBeforeNecessary()
53 Ptrs.insert(Ptr); in runNoReuseBeforeNecessary()
/external/llvm/lib/CodeGen/SelectionDAG/
DStatepointLowering.cpp250 SmallVectorImpl<const Value *> &Ptrs, in removeDuplicateGCPtrs() argument
258 for (size_t i = 0, e = Ptrs.size(); i < e; i++) { in removeDuplicateGCPtrs()
259 SDValue SD = Builder.getValue(Ptrs[i]); in removeDuplicateGCPtrs()
265 NewPtrs.push_back(Ptrs[i]); in removeDuplicateGCPtrs()
267 Seen[SD] = Ptrs[i]; in removeDuplicateGCPtrs()
270 SSM.DuplicateMap[Ptrs[i]] = SeenIt->second; in removeDuplicateGCPtrs()
274 assert(Ptrs.size() >= NewPtrs.size()); in removeDuplicateGCPtrs()
277 Ptrs = NewPtrs; in removeDuplicateGCPtrs()
279 assert(Ptrs.size() == Bases.size()); in removeDuplicateGCPtrs()
280 assert(Ptrs.size() == Relocs.size()); in removeDuplicateGCPtrs()
[all …]
/external/scudo/standalone/tests/
Dcombined_test.cpp590 std::set<scudo::uptr> Ptrs; in TEST() local
595 if (Ptrs.count(P - Size)) { in TEST()
600 if (Ptrs.count(P + Size)) { in TEST()
605 Ptrs.insert(P); in TEST()
616 std::vector<void *> Ptrs(65536, nullptr); in TEST() local
630 for (unsigned I = 0; I != Ptrs.size(); ++I) { in TEST()
631 Ptrs[I] = Allocator->allocate(Size, Origin); in TEST()
632 memset(Ptrs[I], 0xaa, Size); in TEST()
634 for (unsigned I = 0; I != Ptrs.size(); ++I) in TEST()
635 Allocator->deallocate(Ptrs[I], Origin, Size); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DStatepointLowering.cpp277 SmallVectorImpl<const Value *> &Ptrs, in removeDuplicateGCPtrs() argument
285 for (size_t i = 0, e = Ptrs.size(); i < e; i++) { in removeDuplicateGCPtrs()
286 SDValue SD = Builder.getValue(Ptrs[i]); in removeDuplicateGCPtrs()
292 NewPtrs.push_back(Ptrs[i]); in removeDuplicateGCPtrs()
294 Seen[SD] = Ptrs[i]; in removeDuplicateGCPtrs()
297 SSM.DuplicateMap[Ptrs[i]] = SeenIt->second; in removeDuplicateGCPtrs()
301 assert(Ptrs.size() >= NewPtrs.size()); in removeDuplicateGCPtrs()
304 Ptrs = NewPtrs; in removeDuplicateGCPtrs()
306 assert(Ptrs.size() == Bases.size()); in removeDuplicateGCPtrs()
307 assert(Ptrs.size() == Relocs.size()); in removeDuplicateGCPtrs()
[all …]
/external/llvm-project/compiler-rt/lib/scudo/standalone/benchmarks/
Dmalloc_benchmark.cpp69 void *Ptrs[NumIters]; in BM_malloc_free_loop() local
73 for (void *&Ptr : Ptrs) { in BM_malloc_free_loop()
81 for (void *&Ptr : Ptrs) in BM_malloc_free_loop()
/external/scudo/standalone/benchmarks/
Dmalloc_benchmark.cpp77 std::vector<void *> Ptrs(NumIters); in BM_malloc_free_loop() local
81 for (void *&Ptr : Ptrs) { in BM_malloc_free_loop()
89 for (void *&Ptr : Ptrs) in BM_malloc_free_loop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp391 Value *Ptrs = CI->getArgOperand(0); in scalarizeMaskedGather() local
416 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedGather()
461 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedGather()
516 Value *Ptrs = CI->getArgOperand(1); in scalarizeMaskedScatter() local
522 assert(isa<VectorType>(Ptrs->getType()) && in scalarizeMaskedScatter()
523 isa<PointerType>(Ptrs->getType()->getVectorElementType()) && in scalarizeMaskedScatter()
542 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedScatter()
583 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedScatter()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DStatepointLowering.cpp519 for (const Value *V : SI.Ptrs) { in lowerStatepointMetaArgs()
526 assert(SI.Bases.size() == SI.Ptrs.size() && "Pointer without base!"); in lowerStatepointMetaArgs()
529 assert(SI.Ptrs.empty() && "No gc specified, so cannot relocate pointers!"); in lowerStatepointMetaArgs()
576 for (const Value *V : SI.Ptrs) in lowerStatepointMetaArgs()
609 for (const Value *V : SI.Ptrs) { in lowerStatepointMetaArgs()
680 pushStackMapConstant(Ops, Builder, SI.Ptrs.size()); in lowerStatepointMetaArgs()
682 for (unsigned i = 0; i < SI.Ptrs.size(); ++i) { in lowerStatepointMetaArgs()
687 SDValue Derived = Builder.getValue(SI.Ptrs[i]); in lowerStatepointMetaArgs()
703 assert(SI.Bases.size() == SI.Ptrs.size() && in LowerAsSTATEPOINT()
704 SI.Ptrs.size() <= SI.GCRelocates.size()); in LowerAsSTATEPOINT()
[all …]
DSelectionDAGBuilder.h578 SmallVector<const Value *, 16> Ptrs; member
/external/llvm-project/llvm/lib/Transforms/Scalar/
DScalarizeMaskedMemIntrin.cpp395 Value *Ptrs = CI->getArgOperand(0); in scalarizeMaskedGather() local
420 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedGather()
465 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedGather()
520 Value *Ptrs = CI->getArgOperand(1); in scalarizeMaskedScatter() local
527 isa<VectorType>(Ptrs->getType()) && in scalarizeMaskedScatter()
528 isa<PointerType>(cast<VectorType>(Ptrs->getType())->getElementType()) && in scalarizeMaskedScatter()
547 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedScatter()
588 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx)); in scalarizeMaskedScatter()
/external/llvm/lib/IR/
DIRBuilder.cpp262 CallInst *IRBuilderBase::CreateMaskedGather(Value *Ptrs, unsigned Align, in CreateMaskedGather() argument
265 auto PtrsTy = cast<VectorType>(Ptrs->getType()); in CreateMaskedGather()
274 Value * Ops[] = {Ptrs, getInt32(Align), Mask, UndefValue::get(DataTy)}; in CreateMaskedGather()
288 CallInst *IRBuilderBase::CreateMaskedScatter(Value *Data, Value *Ptrs, in CreateMaskedScatter() argument
290 auto PtrsTy = cast<VectorType>(Ptrs->getType()); in CreateMaskedScatter()
304 Value * Ops[] = {Data, Ptrs, getInt32(Align), Mask}; in CreateMaskedScatter()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DIRBuilder.cpp528 CallInst *IRBuilderBase::CreateMaskedGather(Value *Ptrs, unsigned Align, in CreateMaskedGather() argument
531 auto PtrsTy = cast<VectorType>(Ptrs->getType()); in CreateMaskedGather()
544 Value * Ops[] = {Ptrs, getInt32(Align), Mask, PassThru}; in CreateMaskedGather()
559 CallInst *IRBuilderBase::CreateMaskedScatter(Value *Data, Value *Ptrs, in CreateMaskedScatter() argument
561 auto PtrsTy = cast<VectorType>(Ptrs->getType()); in CreateMaskedScatter()
577 Value * Ops[] = {Data, Ptrs, getInt32(Align), Mask}; in CreateMaskedScatter()
/external/clang/test/Sema/
Dscope-check.c147 void *Ptrs[] = { in test9() local
/external/llvm-project/clang/test/Sema/
Dscope-check.c147 void *Ptrs[] = { in test9() local
/external/llvm-project/llvm/lib/IR/
DIRBuilder.cpp527 CallInst *IRBuilderBase::CreateMaskedGather(Value *Ptrs, Align Alignment, in CreateMaskedGather() argument
530 auto *PtrsTy = cast<FixedVectorType>(Ptrs->getType()); in CreateMaskedGather()
543 Value *Ops[] = {Ptrs, getInt32(Alignment.value()), Mask, PassThru}; in CreateMaskedGather()
558 CallInst *IRBuilderBase::CreateMaskedScatter(Value *Data, Value *Ptrs, in CreateMaskedScatter() argument
560 auto *PtrsTy = cast<FixedVectorType>(Ptrs->getType()); in CreateMaskedScatter()
576 Value *Ops[] = {Data, Ptrs, getInt32(Alignment.value()), Mask}; in CreateMaskedScatter()
/external/llvm-project/openmp/libomptarget/plugins/cuda/src/
Drtl.cpp856 std::vector<void *> Ptrs(ArgNum); in runTargetTeamRegion() local
859 Ptrs[I] = (void *)((intptr_t)TgtArgs[I] + TgtOffsets[I]); in runTargetTeamRegion()
860 Args[I] = &Ptrs[I]; in runTargetTeamRegion()
/external/llvm-project/clang/lib/CodeGen/
DCGNonTrivialStruct.cpp494 llvm::Value *Ptrs[N]; in callFunc() local
498 Ptrs[I] = in callFunc()
505 CallerCGF.EmitNounwindRuntimeCall(F, Ptrs); in callFunc()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1444 Value *Ptrs = CI->getArgOperand(0); in scalarizeMaskedGather() local
1476 Value *Ptr = Builder.CreateExtractElement(Ptrs, Builder.getInt32(Idx), in scalarizeMaskedGather()
1525 Value *Ptr = Builder.CreateExtractElement(Ptrs, Builder.getInt32(Idx), in scalarizeMaskedGather()
1580 Value *Ptrs = CI->getArgOperand(1); in scalarizeMaskedScatter() local
1586 assert(isa<VectorType>(Ptrs->getType()) && in scalarizeMaskedScatter()
1587 isa<PointerType>(Ptrs->getType()->getVectorElementType()) && in scalarizeMaskedScatter()
1608 Value *Ptr = Builder.CreateExtractElement(Ptrs, Builder.getInt32(Idx), in scalarizeMaskedScatter()
1641 Value *Ptr = Builder.CreateExtractElement(Ptrs, Builder.getInt32(Idx), in scalarizeMaskedScatter()
/external/llvm-project/llvm/include/llvm/IR/
DIRBuilder.h779 CallInst *CreateMaskedGather(Value *Ptrs, unsigned Alignment,
784 return CreateMaskedGather(Ptrs, Align(Alignment), Mask, PassThru, Name);
788 CallInst *CreateMaskedGather(Value *Ptrs, Align Alignment,
794 CallInst *CreateMaskedScatter(Value *Val, Value *Ptrs, unsigned Alignment,
797 return CreateMaskedScatter(Val, Ptrs, Align(Alignment), Mask);
801 CallInst *CreateMaskedScatter(Value *Val, Value *Ptrs, Align Alignment,

12