Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- Shared/RPCOpcodes.h - Offload specific RPC opcodes ----- C++ ------===//
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//
9// Defines RPC opcodes that are specifically used by the OpenMP device runtime.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef OMPTARGET_SHARED_RPC_OPCODES_H
14#define OMPTARGET_SHARED_RPC_OPCODES_H
15
16#define LLVM_OFFLOAD_RPC_BASE 'o'
17#define LLVM_OFFLOAD_OPCODE(n) (LLVM_OFFLOAD_RPC_BASE << 24 | n)
18
19typedef enum {
20 OFFLOAD_HOST_CALL = LLVM_OFFLOAD_OPCODE(0),
21} offload_opcode_t;
22
23#undef LLVM_OFFLOAD_OPCODE
24
25#endif // OMPTARGET_SHARED_RPC_OPCODES_H
26

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of offload/include/Shared/RPCOpcodes.h