Home
last modified time | relevance | path

Searched refs:allocs (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/lib/fuzzer/scripts/
H A Dunbalanced_allocs.py37 def ProcessFree(line, f, allocs): argument
43 if addr in allocs:
44 del allocs[addr]
49 def ProcessMalloc(line, f, allocs): argument
51 return ProcessFree(line, f, allocs)
54 assert not addr in allocs
57 allocs[addr] = (line, stack)
64 allocs = {}
71 for _, (l, s) in allocs.items():
75 line = ProcessMalloc(line, f, allocs)
/llvm-project-15.0.7/libcxxabi/test/
H A Dtest_fallback_malloc.pass.cpp146 const size_t allocs [] = { 124, 60, 252, 60, 4 }; in exhaustion_test3() local
153 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
163 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
171 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Bufferization/Transforms/
H A DBufferUtils.h53 AllocEntryList::const_iterator begin() const { return allocs.begin(); } in begin()
56 AllocEntryList::const_iterator end() const { return allocs.end(); } in end()
59 AllocEntryList::iterator begin() { return allocs.begin(); } in begin()
62 AllocEntryList::iterator end() { return allocs.end(); } in end()
65 void registerAlloc(const AllocEntry &entry) { allocs.push_back(entry); } in registerAlloc()
73 AllocEntryList allocs;
117 BufferPlacementAllocs allocs; variable
H A DPasses.td196 One-Shot Bufferize. Such IR can be allowed with `allow-return-allocs`. In
267 Option<"allowReturnAllocs", "allow-return-allocs", "bool",
335 Note: By default, all newly inserted tensor copies/allocs (i.e., newly
337 annotated with `escape = false`. If `create-allocs` is unset, all newly
338 inserted tensor copies/allocs are annotated with `escape = true`. In that
342 Option<"allowReturnAllocs", "allow-return-allocs", "bool",
/llvm-project-15.0.7/compiler-rt/test/scudo/
H A Drss.c28 static void *allocs[kNumAllocs]; variable
36 allocs[i] = malloc(kAllocSize); in main()
37 if (allocs[i]) in main()
38 memset(allocs[i], 0xff, kAllocSize); // Dirty the pages. in main()
43 free(allocs[i]); in main()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tools/
H A Dcompute_size_class_config.cpp21 size_t measureWastage(const std::vector<Alloc> &allocs, in measureWastage() argument
25 for (auto &a : allocs) { in measureWastage()
40 void readAllocs(std::vector<Alloc> &allocs, const char *path) { in readAllocs() argument
59 allocs.push_back(a); in readAllocs()
79 std::vector<Alloc> allocs; in main() local
97 readAllocs(allocs, argv[i]); in main()
101 if (allocs.empty()) in main()
118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main()
147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dsoft_rss_limit_mb_test.cpp30 static char *allocs[kMaxNumAllocs]; variable
42 allocs[j] = (char*)malloc(kAllocSize); in main()
43 if (allocs[j]) in main()
44 memset(allocs[j], -1, kAllocSize); in main()
55 free(allocs[j]); in main()
/llvm-project-15.0.7/mlir/test/lib/Dialect/MemRef/
H A DTestMultiBuffer.cpp41 SmallVector<memref::AllocOp> allocs; in runOnOperation() local
43 [&allocs](memref::AllocOp alloc) { allocs.push_back(alloc); }); in runOnOperation()
44 for (memref::AllocOp alloc : allocs) in runOnOperation()
/llvm-project-15.0.7/mlir/test/Dialect/Bufferization/Transforms/
H A Done-shot-module-bufferize-allow-return-allocs.mlir1 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs" -drop…
2 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs" -spli…
5 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs test-a…
6 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs test-a…
7 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs test-a…
10 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs unknow…
H A Done-shot-bufferize-allow-return-allocs.mlir1 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs allow-unknown-ops" -buffer-deallocatio…
4 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
5 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
6 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
H A Done-shot-bufferize-partial.mlir1 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs allow-unkn…
4 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs allow-unkn…
7 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs test-analy…
8 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs test-analy…
9 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs test-analy…
11 …rize="dialect-filter=tensor,bufferization allow-unknown-ops allow-return-allocs" -canonicalize -sp…
12 …fferize="dialect-filter=scf,bufferization allow-unknown-ops allow-return-allocs" -canonicalize -sp…
H A Done-shot-module-bufferize-out-params.mlir1 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries allow-return-allocs function…
2 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries allow-return-allocs function…
3 // RUN: mlir-opt %s -one-shot-bufferize="bufferize-function-boundaries allow-return-allocs function…
H A Done-shot-bufferize-alloc-tensor-elimination.mlir1 …-tensors -one-shot-bufferize="bufferize-function-boundaries allow-return-allocs" -canonicalize -sp…
17 // This allocs the whole dim to allow for a full clone of t.
/llvm-project-15.0.7/mlir/test/Dialect/Arithmetic/
H A Done-shot-bufferize.mlir1 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs bufferize-function-boundaries" -split-…
4 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
5 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
6 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
9 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs unknown-type-conversion=identity-layou…
/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.cons/
H A Dcopy_assign.pass.cpp94 std::ptrdiff_t const allocs = std::count(ca_allocs.begin(), ca_allocs.end(), *it); in balanced_allocs() local
96 std::printf("%d: %td vs %td\n", *it, allocs, deallocs); in balanced_allocs()
97 if (allocs != deallocs) in balanced_allocs()
108 std::ptrdiff_t const allocs = std::count(ca_allocs.begin(), ca_allocs.end(), *it); in balanced_allocs() local
110 std::printf("%d: %td vs %td\n", *it, allocs, deallocs); in balanced_allocs()
111 if (allocs != deallocs) in balanced_allocs()
/llvm-project-15.0.7/mlir/test/Dialect/Tensor/
H A Done-shot-bufferize.mlir1 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs bufferize-function-boundaries" -drop-e…
4 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
5 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
6 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
9 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs unknown-type-conversion=identity-layou…
H A Done-shot-bufferize-tensor-copy-insertion.mlir2 // RUN: mlir-opt %s -tensor-copy-insertion="bufferize-function-boundaries allow-return-allocs" -spl…
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferUtils.cpp85 allocs.push_back(std::make_tuple(allocValue, *dealloc)); in build()
96 : aliases(op), allocs(op), liveness(op) {} in BufferPlacementTransformationBase()
H A DBufferDeallocation.cpp211 for (const BufferPlacementAllocs::AllocEntry &entry : allocs) { in prepare()
286 for (BufferPlacementAllocs::AllocEntry &entry : allocs) { in introduceClones()
311 allocs.registerAlloc(std::make_tuple(value, nullptr)); in introduceClones()
497 for (const BufferPlacementAllocs::AllocEntry &entry : allocs) { in placeDeallocs()
H A DBufferOptimizations.cpp132 for (BufferPlacementAllocs::AllocEntry &entry : allocs) in hoist()
330 for (BufferPlacementAllocs::AllocEntry &entry : allocs) { in promote()
/llvm-project-15.0.7/mlir/test/Dialect/SparseTensor/
H A Done_shot_bufferize_tensor_copy_insertion.mlir1 // RUN: mlir-opt %s -tensor-copy-insertion="allow-return-allocs" | FileCheck %s
2 // RUN: mlir-opt %s -tensor-copy-insertion="bufferize-function-boundaries allow-return-allocs" | Fi…
/llvm-project-15.0.7/mlir/test/Dialect/Linalg/
H A Done-shot-bufferize.mlir1 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs bufferize-function-boundaries" -buffer…
4 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
5 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
6 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs test-analysis-only analysis-fuzzer-see…
9 // RUN: mlir-opt %s -one-shot-bufferize="allow-return-allocs unknown-type-conversion=identity-layou…
H A Done-shot-bufferize-analysis-init-tensor-elimination.mlir1 …bufferize="bufferize-function-boundaries test-analysis-only allow-return-allocs" -split-input-file…
/llvm-project-15.0.7/mlir/test/Dialect/SCF/
H A Done-shot-bufferize.mlir1 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs bufferize-…
4 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs test-analy…
5 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs test-analy…
6 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs test-analy…
9 // RUN: mlir-opt %s -allow-unregistered-dialect -one-shot-bufferize="allow-return-allocs unknown-ty…
290 // 2 allocs and 2 copies).
683 // Additional allocs are inserted in the loop body. We just check that all
684 // allocs have the correct memory space.
H A Done-shot-bufferize-tensor-copy-insertion.mlir1 // RUN: mlir-opt %s -tensor-copy-insertion="allow-return-allocs" -allow-unregistered-dialect -split…
2 // RUN: mlir-opt %s -tensor-copy-insertion="bufferize-function-boundaries allow-return-allocs" -spl…

12