xref: /llvm-project/offload/unittests/OffloadAPI/platform/olPlatformInfo.hpp (revision fd3907ccb583df99e9c19d2fe84e4e7c52d75de9)
1 //===------- Offload API tests - Helpers for platform info query testing --===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #pragma once
9 
10 #include <vector>
11 
12 // TODO: We could autogenerate these
13 
14 inline std::vector<ol_platform_info_t> PlatformQueries = {
15     OL_PLATFORM_INFO_NAME, OL_PLATFORM_INFO_VENDOR_NAME,
16     OL_PLATFORM_INFO_VERSION, OL_PLATFORM_INFO_BACKEND};
17 
18 inline std::unordered_map<ol_platform_info_t, size_t> PlatformInfoSizeMap = {
19     {OL_PLATFORM_INFO_BACKEND, sizeof(ol_platform_backend_t)},
20 };
21