/* * Copyright © 2022 Imagination Technologies Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /** * \file rogue_ctrl_instrs.def * * \brief Contains macros defining control instructions. */ /* * B - B: Block destination operand. * XY - X: Num destinations, Y: Num sources. */ /* * ROGUE_BUILDER_DEFINE_CTRLB * B: Block destination operand. * * ROGUE_BUILDER_DEFINE_CTRLds * d: Number of destinations. * s: Number of sources. */ #ifndef ROGUE_BUILDER_DEFINE_CTRLB #define ROGUE_BUILDER_DEFINE_CTRLB(...) #endif /* ROGUE_BUILDER_DEFINE_CTRLB */ #ifndef ROGUE_BUILDER_DEFINE_CTRL00 #define ROGUE_BUILDER_DEFINE_CTRL00(...) #endif /* ROGUE_BUILDER_DEFINE_CTRL00 */ #ifndef ROGUE_BUILDER_DEFINE_CTRL01 #define ROGUE_BUILDER_DEFINE_CTRL01(...) #endif /* ROGUE_BUILDER_DEFINE_CTRL01 */ ROGUE_BUILDER_DEFINE_CTRLB(BR) ROGUE_BUILDER_DEFINE_CTRL00(END) ROGUE_BUILDER_DEFINE_CTRL00(NOP) ROGUE_BUILDER_DEFINE_CTRL00(WOP) ROGUE_BUILDER_DEFINE_CTRL01(WDF) ROGUE_BUILDER_DEFINE_CTRL01(BA) #undef ROGUE_BUILDER_DEFINE_CTRL01 #undef ROGUE_BUILDER_DEFINE_CTRL00 #undef ROGUE_BUILDER_DEFINE_CTRLB