1//===- SandboxIRValues.def --------------------------------------*- 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// ClassID, Class 10#ifndef DEF_VALUE 11#define DEF_VALUE(ID, CLASS) 12#endif 13DEF_VALUE(Function, Function) 14DEF_VALUE(Argument, Argument) 15 16#ifndef DEF_USER 17#define DEF_USER(ID, CLASS) 18#endif 19DEF_USER(User, User) 20DEF_VALUE(Block, BasicBlock) 21DEF_USER(Constant, Constant) 22 23#ifndef DEF_INSTR 24#define DEF_INSTR(ID, OPCODE, CLASS) 25#endif 26// ClassID, Opcode(s), Class 27DEF_INSTR(Opaque, OP(Opaque), OpaqueInst) 28DEF_INSTR(Select, OP(Select), SelectInst) 29DEF_INSTR(Load, OP(Load), LoadInst) 30DEF_INSTR(Store, OP(Store), StoreInst) 31DEF_INSTR(Ret, OP(Ret), ReturnInst) 32 33#ifdef DEF_VALUE 34#undef DEF_VALUE 35#endif 36#ifdef DEF_USER 37#undef DEF_USER 38#endif 39#ifdef DEF_INSTR 40#undef DEF_INSTR 41#endif 42#ifdef OP 43#undef OP 44#endif 45