32 : _region(nullptr), _region_owned(nullptr)
37 : _region(nullptr), _region_owned(memory)
39 _region_owned = memory;
40 _region = _region_owned.get();
44 : _region(memory), _region_owned(nullptr)
71 auto cl_region = utils::cast::polymorphic_downcast<ICLMemoryRegion *>(
region);
72 _region_owned =
nullptr;
78 _region_owned = utils::cast::polymorphic_downcast_unique_ptr<ICLMemoryRegion>(std::move(region));
79 _region = _region_owned.get();
OpenCL memory region interface.
Copyright (c) 2017-2021 Arm Limited.
CLMemory()
Default Constructor.
void set_owned_region(std::unique_ptr< IMemoryRegion > region) final
Sets a memory region.
IMemoryRegion * region() final
Region accessor.
ICLMemoryRegion * cl_region()
OpenCL Region accessor.
void set_region(IMemoryRegion *region) final
Sets a memory region.