forked from llvm/offload-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuffer.h
More file actions
42 lines (31 loc) · 994 Bytes
/
Buffer.h
File metadata and controls
42 lines (31 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//===- Buffer.h - Offload API Buffer --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
#ifndef OFFLOADTEST_API_BUFFER_H
#define OFFLOADTEST_API_BUFFER_H
#include "API/API.h"
#include "API/Resources.h"
#include "llvm/Support/Casting.h"
namespace offloadtest {
struct BufferCreateDesc {
MemoryLocation Location;
};
class Buffer {
GPUAPI API;
public:
virtual ~Buffer();
Buffer(const Buffer &) = delete;
Buffer &operator=(const Buffer &) = delete;
GPUAPI getAPI() const { return API; }
protected:
explicit Buffer(GPUAPI API) : API(API) {}
};
} // namespace offloadtest
#endif // OFFLOADTEST_API_BUFFER_H