/llvm-project/clang/lib/Headers/ |
H A D | CMakeLists.txt | 482 "target specific header lists! The resource-headers " 494 # The catch-all clang-resource-headers target 495 add_library(clang-resource-headers INTERFACE ${out_files}) 496 set_target_properties("clang-resource-headers" PROPERTIES 499 add_dependencies("clang-resource-headers" 500 "core-resource-headers" 501 "arm-common-resource-headers" 502 "arm-resource-headers" 503 "aarch64-resource-headers" 504 "cuda-resource [all...] |
/llvm-project/mlir/include/mlir/Interfaces/ |
H A D | SideEffectInterfaces.h | 99 static bool classof(const Resource *resource) { in classof() argument 100 return resource->getResourceID() == BaseT::getResourceID(); in classof() 141 EffectInstance(EffectT *effect, Resource *resource = DefaultResource::get()) 142 : effect(effect), resource(resource), stage(0), in effect() 145 Resource *resource = DefaultResource::get()) 146 : effect(effect), resource(resource), stage(stage), in effect() 153 Resource *resource = DefaultResource::get()) 154 : effect(effect), resource(resource), value(value), stage(0), in effect() 161 Resource *resource = DefaultResource::get()) 162 : effect(effect), resource(resource), value(value), stage(stage), in effect() [all …]
|
H A D | SideEffectInterfaces.td | 37 class MemoryEffect<string effectName, Resource resource, int stage, 39 : SideEffect<MemoryEffectsOpInterface, effectName, resource, stage, range>; 50 // resource. An 'allocate' effect implies only allocation of the resource, and 52 class MemAlloc<Resource resource, int stage = 0, 54 : MemoryEffect<"::mlir::MemoryEffects::Allocate", resource, stage, range>; 59 // The following effect indicates that the operation frees some resource that 61 // resource, and not any visible allocation, mutation or dereference. 62 class MemFree<Resource resource, int stage = 0, 64 : MemoryEffect<"::mlir::MemoryEffects::Free", resource, stage, range>; 70 // resource. A 'read' effect implies only dereferencing of the resource, and [all …]
|
/llvm-project/flang/test/HLFIR/ |
H A D | memory-effects.fir | 6 // expected-remark@+2 {{found an instance of 'allocate' on a op result, on resource '<Default>'}} 7 // expected-remark@+1 {{found an instance of 'read' on a op operand, on resource '<Default>'}} 19 // expected-remark@+2 {{found an instance of 'allocate' on a op result, on resource '<Default>'}} 20 // expected-remark@+1 {{found an instance of 'read' on a op operand, on resource '<Default>'}} 32 // expected-remark@+2 {{found an instance of 'allocate' on a op result, on resource '<Default>'}} 33 // expected-remark@+1 {{found an instance of 'read' on a op operand, on resource '<Default>'}} 45 // expected-remark@+1 {{found an instance of 'read' on a op operand, on resource '<Default>'}} 57 // expected-remark@+2 {{found an instance of 'allocate' on a op result, on resource '<Default>'}} 58 // expected-remark@+1 {{found an instance of 'read' on a op operand, on resource '<Default>'}} 64 // expected-remark@+2 {{found an instance of 'allocate' on a op result, on resource '<Default>'}} [all …]
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | CrashRecoveryContext.h | 162 T *resource; 163 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase() argument 164 : CrashRecoveryContextCleanup(context), resource(resource) {} in CrashRecoveryContextCleanupBase() 186 T *resource) in CrashRecoveryContextDestructorCleanup() argument 188 CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDestructorCleanup() 191 this->resource->~T(); in recoverResources() 200 CrashRecoveryContextDeleteCleanup(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextDeleteCleanup() argument 202 CrashRecoveryContextDeleteCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDeleteCleanup() 204 void recoverResources() override { delete this->resource; } in recoverResources() 213 T *resource) in CrashRecoveryContextReleaseRefCleanup() argument [all …]
|
/llvm-project/llvm/test/tools/llvm-mca/X86/ |
H A D | cpus.s | 2 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -resource-pressure=false -instructi… 3 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -resource-pressure=false -instructi… 4 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=btver2 -resource-pressure=false -instructi… 5 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver1 -resource-pressure=false -instructi… 6 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver2 -resource-pressure=false -instructi… 7 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver3 -resource-pressure=false -instructi… 8 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=znver4 -resource-pressure=false -instructi… 9 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=sandybridge -resource-pressure=false -inst… 10 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=ivybridge -resource-pressure=false -instru… 11 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=haswell -resource-pressure=false -instruct… [all …]
|
H A D | read-after-ld-1.s | 2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sandybridge -iterations=1 -resource-pressure=… 3 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -resource-pressure=fals… 4 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -resource-pressure=fa… 5 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -resource-pressure=fals… 6 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=icelake-server -iterations=1 -resource-pressu… 7 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=1 -resource-pressure=false… 8 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -iterations=1 -resource-pressure=false… 9 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=1 -resource-pressure=false… 10 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -resource-pressure=false… 11 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1 -resource-pressure=false… [all …]
|
H A D | variable-blend-read-after-ld-1.s | 2 …nown -mcpu=sandybridge -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 4 …nknown -mcpu=ivybridge -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 6 …unknown -mcpu=haswell -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 8 …nknown -mcpu=broadwell -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 10 …-unknown -mcpu=skylake -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 12 …n -mcpu=icelake-server -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 14 …n-unknown -mcpu=bdver2 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 16 …n-unknown -mcpu=btver2 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 18 …n-unknown -mcpu=znver1 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 20 …n-unknown -mcpu=znver2 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < …
|
H A D | variable-blend-read-after-ld-2.s | 2 …nown -mcpu=sandybridge -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 4 …nknown -mcpu=ivybridge -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 6 …unknown -mcpu=haswell -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 8 …nknown -mcpu=broadwell -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 10 …-unknown -mcpu=skylake -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 12 …n -mcpu=icelake-server -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 14 …n-unknown -mcpu=bdver2 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 16 …n-unknown -mcpu=btver2 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 18 …n-unknown -mcpu=znver1 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < … 20 …n-unknown -mcpu=znver2 -iterations=1 -timeline -instruction-info=false -resource-pressure=false < …
|
H A D | fma3-read-after-ld-2.s | 2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -resource-pressure=fal… 4 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -resource-pressure=fa… 6 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -resource-pressure=fals… 8 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=icelake-server -iterations=1 -resource-pressu… 10 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -resource-pressure=false… 12 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1 -resource-pressure=false…
|
H A D | fma3-read-after-ld-1.s | 2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -iterations=1 -resource-pressure=fal… 4 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=broadwell -iterations=1 -resource-pressure=fa… 6 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=skylake -iterations=1 -resource-pressure=fals… 8 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=icelake-server -iterations=1 -resource-pressu… 10 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1 -resource-pressure=false… 12 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver2 -iterations=1 -resource-pressure=false…
|
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/ |
H A D | resource.pass.cpp | 29 ASSERT_SAME_TYPE(decltype(a.resource()), std::pmr::memory_resource*); in main() 34 assert(a.resource() == mptr); in main() 38 assert(a.resource() == nullptr); in main() 39 assert(a.resource() == nullptr); in main() 43 assert(a.resource() == std::pmr::get_default_resource()); in main() 49 assert(a.resource() == mptr); in main() 50 assert(a.resource() == std::pmr::get_default_resource()); in main()
|
H A D | select_on_container_copy_construction.pass.cpp | 34 assert(a.resource() == mptr); in main() 36 assert(other.resource() == std::pmr::get_default_resource()); in main() 37 assert(a.resource() == mptr); in main() 43 assert(a.resource() == nullptr); in main() 45 assert(other.resource() == std::pmr::get_default_resource()); in main() 46 assert(other.resource() == mptr); in main() 47 assert(a.resource() == nullptr); in main()
|
/llvm-project/mlir/test/Conversion/AMDGPUToROCDL/ |
H A D | amdgpu-to-rocdl.mlir | 13 // CHECK: %[[resource:.*]] = rocdl.make.buffer.rsrc %{{.*}}, %[[stride]], %[[numRecords]], %[[flags]] : !llvm.ptr to <8> 14 // CHECK: %[[ret:.*]] = rocdl.raw.ptr.buffer.load %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i32 26 // CHECK: %[[resource:.*]] = rocdl.make.buffer.rsrc %{{.*}}, %[[stride]], %[[numRecords]], %[[flags]] : !llvm.ptr to <8> 27 // CHECK: %[[ret:.*]] = rocdl.raw.ptr.buffer.load %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i32 72 // CHECK: %[[resource:.*]] = rocdl.make.buffer.rsrc %{{.*}}, %{{.*}}, %{{.*}}, %[[flags]] 73 // CHECK: %[[ret:.*]] = rocdl.raw.ptr.buffer.load %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i32 90 // CHECK: %[[resource:.*]] = rocdl.make.buffer.rsrc %{{.*}}, %{{.*}}, %[[numRecords]], %{{.*}} 91 // CHECK: %[[ret:.*]] = rocdl.raw.ptr.buffer.load %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i8 100 // CHECK: %[[resource:.*]] = rocdl.make.buffer.rsrc %{{.*}}, %{{.*}}, %[[numRecords]], %{{.*}} 101 // CHECK: %[[loaded:.*]] = rocdl.raw.ptr.buffer.load %[[resource]], [all...] |
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.ctor/ |
H A D | other_alloc.pass.cpp | 38 assert(a.resource() == a2.resource()); in main() 39 assert(a2.resource() == (std::pmr::memory_resource*)42); in main() 44 assert(a.resource() == a2.resource()); in main() 45 assert(a2.resource() == (std::pmr::memory_resource*)42); in main()
|
H A D | copy.pass.cpp | 34 assert(a.resource() == a2.resource()); in main() 40 assert(a.resource() == a2.resource()); in main() 41 assert(a2.resource() == (std::pmr::memory_resource*)42); in main()
|
H A D | default.pass.cpp | 40 assert(a.resource() == &R1); in main() 44 assert(a.resource() == &R1); in main() 45 assert(a2.resource() == std::pmr::new_delete_resource()); in main()
|
/llvm-project/llvm/test/CodeGen/AMDGPU/ |
H A D | image-resource-id.ll | 13 %0 = call i32 @llvm.OpenCL.image.get.resource.id.2d( 27 %0 = call i32 @llvm.OpenCL.image.get.resource.id.3d( 43 %0 = call i32 @llvm.OpenCL.image.get.resource.id.2d( 57 %0 = call i32 @llvm.OpenCL.image.get.resource.id.3d( 74 %0 = call i32 @llvm.OpenCL.image.get.resource.id.2d( 89 %0 = call i32 @llvm.OpenCL.image.get.resource.id.2d( 104 %0 = call i32 @llvm.OpenCL.image.get.resource.id.3d( 119 %0 = call i32 @llvm.OpenCL.image.get.resource.id.3d( 136 %0 = call i32 @llvm.OpenCL.image.get.resource.id.2d( 151 %0 = call i32 @llvm.OpenCL.image.get.resource.id.2d( [all …]
|
/llvm-project/mlir/test/IR/ |
H A D | test-side-effects.mlir | 7 // expected-remark@+2 {{found an instance of 'read' on resource '<Default>'}} 8 // expected-remark@+1 {{found an instance of 'free' on resource '<Default>'}} 13 // expected-remark@+1 {{found an instance of 'write' on resource '<Test>'}} 18 // expected-remark@+1 {{found an instance of 'allocate' on a op result, on resource '<Test>'}} 23 // expected-remark@+1 {{found an instance of 'read' on a symbol '@foo_ref', on resource '<Test>'}} 41 // expected-remark@+1 {{found an instance of 'allocate' on a op operand, on resource '<Test>'}} 47 // expected-remark@+1 {{found an instance of 'allocate' on a op result, on resource '<Test>'}} 53 …// expected-remark@+1 {{found an instance of 'allocate' on a block argument, on resource '<Test>'}}
|
/llvm-project/clang/test/Modules/ |
H A D | relative-resource-dir.m | 4 // RUN: EXPECTED_RESOURCE_DIR=`%clang -print-resource-dir` && \ 5 // RUN: mkdir -p %t && rm -rf %t/resource-dir && \ 6 // RUN: cp -R $EXPECTED_RESOURCE_DIR %t/resource-dir 10 // RUN: -resource-dir resource-dir \
|
/llvm-project/lld/test/COFF/ |
H A D | linkrepro-res.test | 6 # RUN: lld-link %p/Inputs/resource.res /subsystem:console /machine:x64 \ 9 # RUN: diff %p/Inputs/resource.res repro/%:p/Inputs/resource.res 12 # RSP: resource.res
|
/llvm-project/mlir/test/Bytecode/ |
H A D | resources_elision.mlir | 1 // RUN: mlir-opt -emit-bytecode -elide-resource-data-from-bytecode %s | mlir-opt | FileCheck %s 6 // CHECK: bytecode.test2 = dense_resource<resource> : tensor<4xf64> 9 bytecode.test2 = dense_resource<resource> : tensor<4xf64>, 17 resource: "0x08000000010000000000000002000000000000000300000000000000",
|
H A D | resources.mlir | 6 // CHECK: bytecode.test2 = dense_resource<resource> : tensor<4xf64> 9 bytecode.test2 = dense_resource<resource> : tensor<4xf64>, 14 // CHECK-NEXT: resource: "0x08000000010000000000000002000000000000000300000000000000" 20 resource: "0x08000000010000000000000002000000000000000300000000000000",
|
/llvm-project/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.members/ |
H A D | str.allocator_propagation.pass.cpp | 84 assert(ss.rdbuf()->get_allocator().resource() == &mr1); in test_no_foreign_allocations() 90 assert(copied.get_allocator().resource() == &mr1); in test_no_foreign_allocations() 91 assert(ss.rdbuf()->get_allocator().resource() == &mr1); in test_no_foreign_allocations() 98 assert(moved.get_allocator().resource() == &mr1); in test_no_foreign_allocations() 99 assert(ss.rdbuf()->get_allocator().resource() == &mr1); in test_no_foreign_allocations()
|
/llvm-project/libcxx/benchmarks/ |
H A D | monotonic_buffer.bench.cpp |
|