| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/scripts/ |
| H A D | unbalanced_allocs.py | 37 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 D | test_fallback_malloc.pass.cpp | 146 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 D | BufferUtils.h | 53 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 D | Passes.td | 196 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 D | rss.c | 28 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 D | compute_size_class_config.cpp | 21 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 D | soft_rss_limit_mb_test.cpp | 30 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 D | TestMultiBuffer.cpp | 41 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 D | one-shot-module-bufferize-allow-return-allocs.mlir | 1 // 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 D | one-shot-bufferize-allow-return-allocs.mlir | 1 // 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 D | one-shot-bufferize-partial.mlir | 1 // 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 D | one-shot-module-bufferize-out-params.mlir | 1 // 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 D | one-shot-bufferize-alloc-tensor-elimination.mlir | 1 …-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 D | one-shot-bufferize.mlir | 1 // 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 D | copy_assign.pass.cpp | 94 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 D | one-shot-bufferize.mlir | 1 // 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 D | one-shot-bufferize-tensor-copy-insertion.mlir | 2 // 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 D | BufferUtils.cpp | 85 allocs.push_back(std::make_tuple(allocValue, *dealloc)); in build() 96 : aliases(op), allocs(op), liveness(op) {} in BufferPlacementTransformationBase()
|
| H A D | BufferDeallocation.cpp | 211 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 D | BufferOptimizations.cpp | 132 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 D | one_shot_bufferize_tensor_copy_insertion.mlir | 1 // 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 D | one-shot-bufferize.mlir | 1 // 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 D | one-shot-bufferize-analysis-init-tensor-elimination.mlir | 1 …bufferize="bufferize-function-boundaries test-analysis-only allow-return-allocs" -split-input-file…
|
| /llvm-project-15.0.7/mlir/test/Dialect/SCF/ |
| H A D | one-shot-bufferize.mlir | 1 // 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 D | one-shot-bufferize-tensor-copy-insertion.mlir | 1 // 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…
|