Home
last modified time | relevance | path

Searched refs:POSType (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/experimental/memory/memory.resource.global/
H A Dglobal_memory_resource_lifetime.pass.cpp33 struct POSType { struct
37 POSType() {} in POSType() argument
38 POSType(ex::memory_resource* r, void* p, int s) : res(r), ptr(p), n(s) {} in POSType() argument
39 ~POSType() { in ~POSType() argument
47 void swap(POSType & L, POSType & R) { in swap()
53 POSType constructed_before_resources;
54 POSType constructed_before_resources2;
59 POSType constructed_after_resources(resource, resource->allocate(1024), 1024);
60 POSType constructed_after_resources2(nullptr, resource->allocate(1024), 1024);
H A Dnew_delete_resource_lifetime.pass.cpp33 struct POSType { struct
37 POSType() {res = ex::new_delete_resource(); ptr = res->allocate(42); n = 42; } in POSType() argument
38 POSType(ex::memory_resource* r, void* p, int s) : res(r), ptr(p), n(s) {} in POSType() argument
39 ~POSType() { if (ptr) res->deallocate(ptr, n); } in ~POSType() argument
42 void swap(POSType & L, POSType & R) { in swap()
48 POSType constructed_before_resources;
53 POSType constructed_after_resources(resource, resource->allocate(1024), 1024);
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExpr.cpp944 int POSType = POSAttr->getType(); in LoadPassedObjectSize() local
945 if (POSType != 0 && POSType != 1) in LoadPassedObjectSize()