Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/llvm-project-15.0.7/clang/lib/Headers/
H A DCMakeLists.txt453 COMPONENT core-resource-headers)
465 COMPONENT arm-resource-headers)
477 COMPONENT cuda-resource-headers)
483 COMPONENT cuda-resource-headers)
495 COMPONENT hip-resource-headers)
501 COMPONENT mips-resource-headers)
507 COMPONENT ppc-resource-headers)
513 COMPONENT ppc-resource-headers)
537 COMPONENT ve-resource-headers)
549 COMPONENT x86-resource-headers)
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DSideEffectInterfaces.h99 static bool classof(const Resource *resource) { in classof() argument
142 : effect(effect), resource(resource) {} in effect()
144 Resource *resource = DefaultResource::get())
145 : effect(effect), resource(resource), value(value) {} in effect()
147 Resource *resource = DefaultResource::get())
148 : effect(effect), resource(resource), value(symbol) {} in effect()
151 : effect(effect), resource(resource), parameters(parameters) {} in effect()
154 : effect(effect), resource(resource), value(value), in effect()
158 : effect(effect), resource(resource), value(symbol), in effect()
175 Resource *getResource() const { return resource; } in getResource()
[all …]
H A DSideEffectInterfaces.td37 class MemoryEffect<string effectName, Resource resource>
49 // resource. An 'allocate' effect implies only allocation of the resource, and
51 class MemAlloc<Resource resource>
58 class MemFree<Resource resource>
59 : MemoryEffect<"::mlir::MemoryEffects::Free", resource>;
63 // resource. A 'read' effect implies only dereferencing of the resource, and
65 class MemRead<Resource resource>
66 : MemoryEffect<"::mlir::MemoryEffects::Read", resource>;
70 // resource. A 'write' effect implies only mutating a resource, and not any
72 class MemWrite<Resource resource>
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCrashRecoveryContext.h162 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()
202 CrashRecoveryContextDeleteCleanup<T>, T>(context, resource) {} in CrashRecoveryContextDeleteCleanup()
204 void recoverResources() override { delete this->resource; } in recoverResources()
213 T *resource) in CrashRecoveryContextReleaseRefCleanup() argument
215 T>(context, resource) {} in CrashRecoveryContextReleaseRefCleanup()
[all …]
/llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
H A Dresource.pass.cpp37 std::is_same<decltype(a.resource()), ex::memory_resource*>::value in main()
44 assert(a.resource() == mptr); in main()
48 assert(a.resource() == nullptr); in main()
49 assert(a.resource() == nullptr); in main()
53 assert(a.resource() == ex::get_default_resource()); in main()
59 assert(a.resource() == mptr); in main()
60 assert(a.resource() == ex::get_default_resource()); in main()
H A Dselect_on_container_copy_construction.pass.cpp43 assert(a.resource() == mptr); in main()
45 assert(other.resource() == ex::get_default_resource()); in main()
46 assert(a.resource() == mptr); in main()
52 assert(a.resource() == nullptr); in main()
54 assert(other.resource() == ex::get_default_resource()); in main()
55 assert(other.resource() == mptr); in main()
56 assert(a.resource() == nullptr); in main()
/llvm-project-15.0.7/llvm/test/tools/llvm-mca/X86/
H A Dcpus.s2 # 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…
10 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=haswell -resource-pressure=false -instruct…
12 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=knl -resource-pressure=false -instruction-…
13 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=skylake -resource-pressure=false -instruct…
18 # RUN: llvm-mca %s -mtriple=x86_64-unknown-unknown -mcpu=tigerlake -resource-pressure=false -instru…
[all …]
H A Dread-after-ld-1.s2 # 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 Dvariable-blend-read-after-ld-1.s2 …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 Dvariable-blend-read-after-ld-2.s2 …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 Dfma3-read-after-ld-1.s2 # 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 Dfma3-read-after-ld-2.s2 # 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 Dread-after-ld-3.s2 # 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…
/llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.ctor/
H A Dother_alloc.pass.cpp49 assert(a.resource() == a2.resource()); in main()
50 assert(a2.resource() == (ex::memory_resource*)42); in main()
55 assert(a.resource() == a2.resource()); in main()
56 assert(a2.resource() == (ex::memory_resource*)42); in main()
H A Dcopy.pass.cpp40 assert(a.resource() == a2.resource()); in main()
46 assert(a.resource() == a2.resource()); in main()
47 assert(a2.resource() == (ex::memory_resource*)42); in main()
H A Ddefault.pass.cpp50 assert(a.resource() == &R1); in main()
54 assert(a.resource() == &R1); in main()
55 assert(a2.resource() == ex::new_delete_resource()); in main()
/llvm-project-15.0.7/lld/test/COFF/
H A Dlinkrepro-res.test6 # 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-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dimage-resource-id.ll13 %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 …]
H A Dresource-optimization-remarks.ll1 …dhsa -mcpu=gfx908 -pass-remarks-output=%t -pass-remarks-analysis=kernel-resource-usage -filetype=o…
15 ; REMARK: Pass: kernel-resource-usage
24 ; REMARK-NEXT: Pass: kernel-resource-usage
33 ; REMARK-NEXT: Pass: kernel-resource-usage
42 ; REMARK-NEXT: Pass: kernel-resource-usage
51 ; REMARK-NEXT: Pass: kernel-resource-usage
60 ; REMARK-NEXT: Pass: kernel-resource-usage
69 ; REMARK-NEXT: Pass: kernel-resource-usage
78 ; REMARK-NEXT: Pass: kernel-resource-usage
87 ; REMARK-NEXT: Pass: kernel-resource-usage
/llvm-project-15.0.7/libcxx/test/libcxx/experimental/memory/memory.resource.global/
H A Dglobal_memory_resource_lifetime.pass.cpp57 ex::memory_resource* resource = ex::get_default_resource(); variable
59 POSType constructed_after_resources(resource, resource->allocate(1024), 1024);
60 POSType constructed_after_resources2(nullptr, resource->allocate(1024), 1024);
/llvm-project-15.0.7/mlir/test/IR/
H A Dtest-side-effects.mlir6 // expected-remark@+2 {{found an instance of 'read' on resource '<Default>'}}
7 // expected-remark@+1 {{found an instance of 'free' on resource '<Default>'}}
12 // expected-remark@+1 {{found an instance of 'write' on resource '<Test>'}}
17 // expected-remark@+1 {{found an instance of 'allocate' on a value, on resource '<Test>'}}
22 // expected-remark@+1 {{found an instance of 'read' on a symbol '@foo_ref', on resource '<Test>'}}
/llvm-project-15.0.7/mlir/test/Conversion/AMDGPUToROCDL/
H A Damdgpu-to-rocdl.mlir10 // CHECK: %[[resource:.*]] = llvm.insertelement{{.*}}%[[word3]]
11 // CHECK: %[[ret:.*]] = rocdl.raw.buffer.load %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i32
21 // RDNA: %[[resource:.*]] = llvm.insertelement{{.*}}%[[word3]]
22 // RDNA: %[[ret:.*]] = rocdl.raw.buffer.load %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i32
71 // CHECK: %[[resource:.*]] = llvm.insertelement{{.*}}%[[word3]]
72 // CHECK: rocdl.raw.buffer.store %{{.*}} %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : i32
99 // CHECK: %[[resource:.*]] = llvm.insertelement{{.*}}%[[word3]]
100 // CHECK: rocdl.raw.buffer.atomic.fadd %{{.*}} %[[resource]], %{{.*}}, %{{.*}}, %{{.*}} : f32
/llvm-project-15.0.7/libcxx/include/experimental/
H A Dmemory_resource50 // The default memory resource
97 // 8.5, memory.resource
102 // 8.5.2, memory.resource.public
118 // 8.5.3, memory.resource.priv
125 // 8.5.4, memory.resource.eq
177 : __res_(__other.resource())
321 return *__lhs.resource() == *__rhs.resource();
332 // 8.7, memory.resource.adaptor
334 // 8.7.1, memory.resource.adaptor.overview
361 // 8.7.2, memory.resource.adaptor.ctor
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Downing-memory.rst24 ``malloc()``-like resource functions are considered to produce resources.
40 // Something not a resource or owner should not be assigned to owners
42 gsl::owner<int*> Owned = &Stack; // Bad, not a resource assigned
44 In the case of dynamic memory as resource, only ``gsl::owner<T*>`` variables are allowed
49 // Example Bad, non-owner as resource handle, will be caught.
58 argument get called with either a ``gsl::owner<T*>`` or a newly created resource.
71 expects_owner(new int(42)); // Good as well, recognized created resource
73 // Port legacy code for better resource-safety
96 resource owners as pointer arguments but cannot introduce ``gsl::owner<>``.
168 Owner2 = Owner1; // Conceptual Leak of initial resource of Owner2!
[all …]
/llvm-project-15.0.7/lldb/cmake/modules/
H A DLLDBFramework.cmake95 add_custom_target(liblldb-resource-headers DEPENDS ${lldb_staged_headers})
96 set_target_properties(liblldb-resource-headers PROPERTIES FOLDER "lldb misc")
97 add_dependencies(liblldb liblldb-resource-headers)
109 if (TARGET clang-resource-headers)
110 add_dependencies(liblldb clang-resource-headers)
111 … set(clang_resource_headers_dir $<TARGET_PROPERTY:clang-resource-headers,RUNTIME_OUTPUT_DIRECTORY>)
115 …message(WARNING "Expected directory for clang-resource headers not found: ${clang_resource_headers…

12345678910>>...15