brintos

brintos / llvm-project-archived public Read only

0
0
Text · 867 B · beee29d Raw
26 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// Defines RPC opcodes that are specifically used by the OpenMP device runtime.10//11//===----------------------------------------------------------------------===//12 13#ifndef OMPTARGET_SHARED_RPC_OPCODES_H14#define OMPTARGET_SHARED_RPC_OPCODES_H15 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_OPCODE24 25#endif // OMPTARGET_SHARED_RPC_OPCODES_H26