/external/llvm/unittests/CodeGen/ |
D | DIEHashTest.cpp | 26 BumpPtrAllocator Alloc; member in __anonc13761f40111::DIEHashTest 41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F() 43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); in TEST_F() 50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F() 55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); in TEST_F() 56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); in TEST_F() 65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F() 68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); in TEST_F() 69 Foo.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F() [all …]
|
/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 19 BumpPtrAllocator Alloc; in TEST() local 20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 33 BumpPtrAllocator Alloc2 = std::move(Alloc); in TEST() 34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); in TEST() 44 Alloc = std::move(Alloc2); in TEST() 46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 51 BumpPtrAllocator Alloc; in TEST() local [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 19 GrVkAlloc* alloc) { in AllocAndBindBufferMemory() argument 38 allocator->getAllocInfo(memory, alloc); in AllocAndBindBufferMemory() 42 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(gpu->device(), buffer, alloc->fMemory, in AllocAndBindBufferMemory() 43 alloc->fOffset)); in AllocAndBindBufferMemory() 45 FreeBufferMemory(gpu, *alloc); in AllocAndBindBufferMemory() 52 void GrVkMemory::FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc) { in FreeBufferMemory() argument 53 SkASSERT(alloc.fBackendMemory); in FreeBufferMemory() 55 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory() 61 GrVkAlloc* alloc) { in AllocAndBindImageMemory() argument 92 allocator->getAllocInfo(memory, alloc); in AllocAndBindImageMemory() [all …]
|
/external/crosvm/resources/src/ |
D | address_allocator.rs | 9 use crate::{Alloc, Error, Result}; 13 /// Allocations must be uniquely tagged with an Alloc enum, which can be used for lookup. 23 allocs: HashMap<Alloc, (u64, u64, String)>, 101 alloc: Alloc, in internal_allocate_with_align() argument 108 if self.allocs.contains_key(&alloc) { in internal_allocate_with_align() 109 return Err(Error::ExistingAlloc(alloc)); in internal_allocate_with_align() 162 self.allocs.insert(alloc, (start, size, tag)); in internal_allocate_with_align() 176 alloc: Alloc, in reverse_allocate_with_align() argument 180 self.internal_allocate_with_align(size, alloc, tag, alignment, true) in reverse_allocate_with_align() 189 alloc: Alloc, in allocate_with_align() argument [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBUnknownFieldSetTest.m | 64 GPBUnknownFieldSet *set = [[[GPBUnknownFieldSet alloc] init] autorelease]; 65 GPBUnknownField* field = [[[GPBUnknownField alloc] initWithNumber:0] autorelease]; 72 GPBUnknownFieldSet *set1 = [[[GPBUnknownFieldSet alloc] init] autorelease]; 75 GPBUnknownFieldSet *set2 = [[[GPBUnknownFieldSet alloc] init] autorelease]; 81 GPBUnknownField* field1 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease]; 85 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease]; 93 field1 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease]; 97 field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease]; 105 field1 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease]; 109 field2 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease]; [all …]
|
/external/libcxx/test/support/ |
D | uses_alloc_types.hpp | 22 // (1) UA_AllocArg: 'T(allocator_arg_t, Alloc const&, Args&&...)' 23 // (2) UA_AllocLast: 'T(Args&&..., Alloc const&)' 58 template <class Alloc, std::size_t N> 61 // 'Alloc' type and exactly 'N' additional arguments. It also provides 65 template <class Alloc, std::size_t N> 68 // 'Alloc' type and exactly 'N' additional arguments. It also provides 71 template <class Alloc, std::size_t N> 74 // the specified 'Alloc' type and exactly 'N' additional arguments. It also 77 template <class Alloc, std::size_t> 80 // the specified 'Alloc' type and exactly 'N' additional arguments. It also [all …]
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_shrink.c | 41 static void get_pages(int fd, uint64_t alloc) in get_pages() argument 43 uint32_t handle = gem_create(fd, alloc); in get_pages() 48 static void get_pages_dirty(int fd, uint64_t alloc) in get_pages_dirty() argument 50 uint32_t handle = gem_create(fd, alloc); in get_pages_dirty() 55 static void pwrite_(int fd, uint64_t alloc) in pwrite_() argument 58 uint32_t handle = gem_create(fd, alloc); in pwrite_() 59 for (int page = 0; page < alloc>>12; page++) in pwrite_() 64 static void pread_(int fd, uint64_t alloc) in pread_() argument 67 uint32_t handle = gem_create(fd, alloc); in pread_() 68 for (int page = 0; page < alloc>>12; page++) in pread_() [all …]
|
/external/mesa3d/src/vulkan/util/ |
D | vk_alloc.h | 32 vk_alloc(const VkAllocationCallbacks *alloc, in vk_alloc() argument 36 return alloc->pfnAllocation(alloc->pUserData, size, align, scope); in vk_alloc() 40 vk_zalloc(const VkAllocationCallbacks *alloc, in vk_zalloc() argument 44 void *mem = vk_alloc(alloc, size, align, scope); in vk_zalloc() 54 vk_realloc(const VkAllocationCallbacks *alloc, in vk_realloc() argument 58 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope); in vk_realloc() 62 vk_free(const VkAllocationCallbacks *alloc, void *data) in vk_free() argument 67 alloc->pfnFree(alloc->pUserData, data); in vk_free() 71 vk_strdup(const VkAllocationCallbacks *alloc, const char *s, in vk_strdup() argument 78 char *copy = vk_alloc(alloc, size, 1, scope); in vk_strdup() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | compare-alloca.ll | 6 %alloc = alloca i64 7 %cmp = icmp eq i64* %arg, %alloc 14 %alloc = alloca i64 15 %cmp = icmp eq i64* %alloc, %arg 22 %alloc = alloca i64 23 %cmp = icmp ne i64* %arg, %alloc 30 %alloc = alloca i64, i64 8 32 %q = getelementptr i64, i64* %alloc, i64 3 41 %alloc = alloca i64 42 call void @escape(i64* %alloc) [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/tests/ |
D | buffer_reuse.mlir | 5 // CHECK: alloc 8 %result_1 = memref.alloc() : memref<2x3xi64> 15 // CHECK: alloc 17 %mem = memref.alloc() : memref<2x3xi64> 18 %other_mem = memref.alloc() : memref<2x3xi64> 34 // CHECK: alloc 36 %result = memref.alloc() : memref<2x3xi64> 44 // CHECK: alloc 46 %result = memref.alloc(%n) : memref<?xi64, offset: 2, strides: [3]> 62 // CHECK: alloc [all …]
|
/external/clang/test/OpenMP/ |
D | target_enter_data_ast_print.cpp | 24 #pragma omp target enter data map(alloc: x[0:10], c) in tmain() 26 #pragma omp target enter data map(to: c) map(alloc: d) in tmain() 28 #pragma omp target enter data map(always,alloc: e) in tmain() 40 #pragma omp target enter data nowait map(alloc: x[0:10], c) in tmain() 42 #pragma omp target enter data nowait map(to: c) map(alloc: d) in tmain() 44 #pragma omp target enter data nowait map(always,alloc: e) in tmain() 56 #pragma omp target enter data nowait map(alloc: x[0:10], c) depend(in : argc, argv[i:argc], x[:]) in tmain() 58 #pragma omp target enter data nowait depend(in : argc, argv[i:argc], x[:]) map(to: c) map(alloc: d) in tmain() 60 #pragma omp target enter data nowait map(always,alloc: e) depend(in : argc, argv[i:argc], x[:]) in tmain() 73 // CHECK-NEXT: #pragma omp target enter data map(alloc: x[0:10],c) [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
D | alloc_function.pass.cpp | 29 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 41 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FunctionObject() 53 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 65 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FreeFunction() 75 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 87 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_MemFunClass() 96 template <class Alloc> 97 void test_for_alloc(Alloc& alloc) in test_for_alloc() argument 100 test_FunctionObject<int()>(alloc); in test_for_alloc() 101 test_FunctionObject<int(int)>(alloc); in test_for_alloc() [all …]
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsTsiFrameProtectorTest.java | 77 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameLengthNegativeFails() local 81 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameLengthNegativeFails() 86 unprotector.unprotect(in, out, alloc); in parserHeader_frameLengthNegativeFails() 97 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameTooSmall() local 101 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTooSmall() 108 unprotector.unprotect(in, out, alloc); in parserHeader_frameTooSmall() 119 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameTooLarge() local 123 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTooLarge() 133 unprotector.unprotect(in, out, alloc); in parserHeader_frameTooLarge() 144 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameTypeInvalid() local [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/tests/ |
D | buffer_reuse.mlir | 9 %0 = memref.alloc() : memref<2xf32> 15 %1 = memref.alloc() : memref<2xf32> 19 %3 = memref.alloc() : memref<2xf32> 22 %4 = memref.alloc() : memref<2xf32> 28 // CHECK-NEXT: %[[ALLOC0:.*]] = memref.alloc() 44 // Expected behavior: Every alloc can be replaced by %0. 47 %0 = memref.alloc() : memref<2xf32> 48 %1 = memref.alloc() : memref<2xf32> 49 %2 = memref.alloc() : memref<2xf32> 50 %3 = memref.alloc() : memref<2xf32> [all …]
|
/external/perfetto/src/profiling/memory/ |
D | bookkeeping.h | 44 // | | | +---->alloc:1280+----------------->bar| | 49 // | +---->alloc: 512+---+ | | | | 58 // | | | +---->alloc:1779+---+ | 63 // | |alloc:2048+---------------+ 75 // Note that (1280 - 1024) = 256, so alloc - free is equal to the total of the 151 const CallstackAllocations& alloc = it->second; in GetCallstackAllocations() local 157 if (alloc.allocs == 0 && in GetCallstackAllocations() 159 alloc.value.totals.allocation_count == allocated)) { in GetCallstackAllocations() 170 const CallstackAllocations& alloc = it->second; in GetCallstackAllocations() local 171 fn(alloc); in GetCallstackAllocations() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/container/internal/ |
D | unordered_map_constructor_test.h | 78 A alloc(0); in TYPED_TEST_P() 79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 111 A alloc(0); 112 TypeParam m(123, alloc); 113 EXPECT_EQ(m.get_allocator(), alloc); 131 A alloc(0); 132 TypeParam m(123, hasher, alloc); 134 EXPECT_EQ(m.get_allocator(), alloc); 161 A alloc(0); [all …]
|
D | unordered_set_constructor_test.h | 79 A alloc(0); in TYPED_TEST_P() 80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P() 120 A alloc(0); 121 TypeParam m(123, alloc); 122 EXPECT_EQ(m.get_allocator(), alloc); 140 A alloc(0); 141 TypeParam m(123, hasher, alloc); 143 EXPECT_EQ(m.get_allocator(), alloc); [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/internal/ |
D | unordered_map_constructor_test.h | 78 A alloc(0); in TYPED_TEST_P() 79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 111 A alloc(0); 112 TypeParam m(123, alloc); 113 EXPECT_EQ(m.get_allocator(), alloc); 131 A alloc(0); 132 TypeParam m(123, hasher, alloc); 134 EXPECT_EQ(m.get_allocator(), alloc); 161 A alloc(0); [all …]
|
D | unordered_set_constructor_test.h | 79 A alloc(0); in TYPED_TEST_P() 80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P() 120 A alloc(0); 121 TypeParam m(123, alloc); 122 EXPECT_EQ(m.get_allocator(), alloc); 140 A alloc(0); 141 TypeParam m(123, hasher, alloc); 143 EXPECT_EQ(m.get_allocator(), alloc); [all …]
|
/external/libtextclassifier/abseil-cpp/absl/container/internal/ |
D | unordered_map_constructor_test.h | 77 A alloc(0); in TYPED_TEST_P() 78 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 81 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 110 A alloc(0); 111 TypeParam m(123, alloc); 112 EXPECT_EQ(m.get_allocator(), alloc); 130 A alloc(0); 131 TypeParam m(123, hasher, alloc); 133 EXPECT_EQ(m.get_allocator(), alloc); 160 A alloc(0); [all …]
|
/external/angle/third_party/abseil-cpp/absl/container/internal/ |
D | unordered_map_constructor_test.h | 78 A alloc(0); in TYPED_TEST_P() 79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 111 A alloc(0); 112 TypeParam m(123, alloc); 113 EXPECT_EQ(m.get_allocator(), alloc); 131 A alloc(0); 132 TypeParam m(123, hasher, alloc); 134 EXPECT_EQ(m.get_allocator(), alloc); 161 A alloc(0); [all …]
|
D | unordered_set_constructor_test.h | 79 A alloc(0); in TYPED_TEST_P() 80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P() 120 A alloc(0); 121 TypeParam m(123, alloc); 122 EXPECT_EQ(m.get_allocator(), alloc); 140 A alloc(0); 141 TypeParam m(123, hasher, alloc); 143 EXPECT_EQ(m.get_allocator(), alloc); [all …]
|
/external/abseil-cpp/absl/container/internal/ |
D | unordered_map_constructor_test.h | 78 A alloc(0); in TYPED_TEST_P() 79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 111 A alloc(0); 112 TypeParam m(123, alloc); 113 EXPECT_EQ(m.get_allocator(), alloc); 131 A alloc(0); 132 TypeParam m(123, hasher, alloc); 134 EXPECT_EQ(m.get_allocator(), alloc); 161 A alloc(0); [all …]
|
D | unordered_set_constructor_test.h | 79 A alloc(0); in TYPED_TEST_P() 80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P() 120 A alloc(0); 121 TypeParam m(123, alloc); 122 EXPECT_EQ(m.get_allocator(), alloc); 140 A alloc(0); 141 TypeParam m(123, hasher, alloc); 143 EXPECT_EQ(m.get_allocator(), alloc); [all …]
|
/external/openscreen/third_party/abseil/src/absl/container/internal/ |
D | unordered_map_constructor_test.h | 77 A alloc(0); in TYPED_TEST_P() 78 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P() 81 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P() 110 A alloc(0); 111 TypeParam m(123, alloc); 112 EXPECT_EQ(m.get_allocator(), alloc); 130 A alloc(0); 131 TypeParam m(123, hasher, alloc); 133 EXPECT_EQ(m.get_allocator(), alloc); 160 A alloc(0); [all …]
|