| 1 |
/*========================== begin_copyright_notice ============================ |
| 2 |
|
| 3 |
Copyright (C) 2017-2021 Intel Corporation |
| 4 |
|
| 5 |
SPDX-License-Identifier: MIT |
| 6 |
|
| 7 |
============================= end_copyright_notice ===========================*/ |
| 8 |
|
| 9 |
/* |
| 10 |
* !!! DO NOT EDIT THIS FILE !!! |
| 11 |
* |
| 12 |
* This file was automagically crafted by GED's model parser. |
| 13 |
*/ |
| 14 |
|
| 15 |
#include "ged.h" |
| 16 |
#include "ged_decoding_tables.h" |
| 17 |
#include "ged_enumerations_internal.h" |
| 18 |
#include "ged_enum_tables.h" |
| 19 |
#include "ged_enum_interpreters.h" |
| 20 |
#include "common/ged_enum_types_internal.h" |
| 21 |
#include "common/ged_string_utils.h" |
| 22 |
#include "xcoder/ged_ins.h" |
| 23 |
#include "xcoder/ged_interpreters.h" |
| 24 |
#include "ged_collectors_tables.h" |
| 25 |
#include "ged_model_none.h" |
| 26 |
#include "ged_model_7.h" |
| 27 |
#include "ged_model_7_5.h" |
| 28 |
#include "ged_model_8.h" |
| 29 |
#include "ged_model_8_1.h" |
| 30 |
#include "ged_model_9.h" |
| 31 |
#include "ged_model_10.h" |
| 32 |
#include "ged_model_11.h" |
| 33 |
#include "ged_model_tgl.h" |
| 34 |
#include "ged_model_xe_hp.h" |
| 35 |
#include "ged_model_xe_hpg.h" |
| 36 |
#include "ged_model_xe_hpc_a.h" |
| 37 |
#include "ged_model_xe_hpc.h" |
| 38 |
#include "ged_model_xe_lpg_md.h" |
| 39 |
#include "ged_model_xe2.h" |
| 40 |
#include "ged_model_xe3.h" |
| 41 |
#include "ged_model_xe3p_cri.h" |
| 42 |
|
| 43 |
#ifdef GED_OBSCURE_MODEL_NAMES |
| 44 |
#define GED_MODEL_NAME_STRING(name) "" |
| 45 |
|
| 46 |
#else // GED_OBSCURE_MODEL_NAMES |
| 47 |
#define GED_MODEL_NAME_STRING(name) name |
| 48 |
#endif // GED_OBSCURE_MODEL_NAMES |
| 49 |
|
| 50 |
#ifndef GED_MODELS_ARRAY_HIDDEN |
| 51 |
ModelData ModelsArray[17] = |
| 52 |
{ |
| 53 |
{ GED_MODEL_NS_NONE::Opcodes, GED_MODEL_NAME_STRING("none"), 160, (const ged_field_enum_table_t)OpcodeTable0, 0, NULL, 3, EnumInterpretersTable0, 0, NULL }, // 0 |
| 54 |
{ GED_MODEL_NS_7::Opcodes, GED_MODEL_NAME_STRING("7"), 160, (const ged_field_enum_table_t)OpcodeTable10, 29, PositionInterpreterTable0, 3, EnumInterpretersTable1, 0, NULL }, // 1 |
| 55 |
{ GED_MODEL_NS_7_5::Opcodes, GED_MODEL_NAME_STRING("7.5"), 160, (const ged_field_enum_table_t)OpcodeTable11, 30, PositionInterpreterTable1, 3, EnumInterpretersTable1, 0, NULL }, // 2 |
| 56 |
{ GED_MODEL_NS_8::Opcodes, GED_MODEL_NAME_STRING("8"), 160, (const ged_field_enum_table_t)OpcodeTable12, 33, PositionInterpreterTable2, 3, EnumInterpretersTable2, 0, NULL }, // 3 |
| 57 |
{ GED_MODEL_NS_8_1::Opcodes, GED_MODEL_NAME_STRING("8.1"), 160, (const ged_field_enum_table_t)OpcodeTable12, 33, PositionInterpreterTable2, 3, EnumInterpretersTable2, 0, NULL }, // 4 |
| 58 |
{ GED_MODEL_NS_9::Opcodes, GED_MODEL_NAME_STRING("9"), 160, (const ged_field_enum_table_t)OpcodeTable1, 35, PositionInterpreterTable3, 3, EnumInterpretersTable2, 0, NULL }, // 5 |
| 59 |
{ GED_MODEL_NS_10::Opcodes, GED_MODEL_NAME_STRING("10"), 160, (const ged_field_enum_table_t)OpcodeTable1, 35, PositionInterpreterTable4, 3, EnumInterpretersTable2, 0, NULL }, // 6 |
| 60 |
{ GED_MODEL_NS_11::Opcodes, GED_MODEL_NAME_STRING("11"), 160, (const ged_field_enum_table_t)OpcodeTable2, 35, PositionInterpreterTable5, 3, EnumInterpretersTable3, 0, NULL }, // 7 |
| 61 |
{ GED_MODEL_NS_TGL::Opcodes, GED_MODEL_NAME_STRING("tgl"), 160, (const ged_field_enum_table_t)OpcodeTable3, 36, PositionInterpreterTable6, 3, EnumInterpretersTable4, 0, NULL }, // 8 |
| 62 |
{ GED_MODEL_NS_XE_HP::Opcodes, GED_MODEL_NAME_STRING("xe.hp"), 160, (const ged_field_enum_table_t)OpcodeTable4, 35, PositionInterpreterTable7, 3, EnumInterpretersTable5, 0, NULL }, // 9 |
| 63 |
{ GED_MODEL_NS_XE_HPG::Opcodes, GED_MODEL_NAME_STRING("xe.hpg"), 160, (const ged_field_enum_table_t)OpcodeTable4, 45, PositionInterpreterTable8, 3, EnumInterpretersTable5, 0, NULL }, // 10 |
| 64 |
{ GED_MODEL_NS_XE_HPC_A::Opcodes, GED_MODEL_NAME_STRING("xe.hpc.a"), 160, (const ged_field_enum_table_t)OpcodeTable5, 45, PositionInterpreterTable9, 3, EnumInterpretersTable6, 0, NULL }, // 11 |
| 65 |
{ GED_MODEL_NS_XE_HPC::Opcodes, GED_MODEL_NAME_STRING("xe.hpc"), 160, (const ged_field_enum_table_t)OpcodeTable6, 45, PositionInterpreterTable9, 3, EnumInterpretersTable7, 0, NULL }, // 12 |
| 66 |
{ GED_MODEL_NS_XE_LPG_MD::Opcodes, GED_MODEL_NAME_STRING("xe.lpg.md"), 160, (const ged_field_enum_table_t)OpcodeTable7, 45, PositionInterpreterTable8, 3, EnumInterpretersTable5, 0, NULL }, // 13 |
| 67 |
{ GED_MODEL_NS_XE2::Opcodes, GED_MODEL_NAME_STRING("xe2"), 160, (const ged_field_enum_table_t)OpcodeTable6, 51, PositionInterpreterTable10, 3, EnumInterpretersTable7, 0, NULL }, // 14 |
| 68 |
{ GED_MODEL_NS_XE3::Opcodes, GED_MODEL_NAME_STRING("xe3"), 160, (const ged_field_enum_table_t)OpcodeTable8, 50, PositionInterpreterTable11, 3, EnumInterpretersTable0, 0, NULL }, // 15 |
| 69 |
{ GED_MODEL_NS_XE3P_CRI::Opcodes, GED_MODEL_NAME_STRING("xe3p.cri"), 160, (const ged_field_enum_table_t)OpcodeTable9, 2, PositionInterpreterTable12, 3, EnumInterpretersTable0, 0, NULL } // 16 |
| 70 |
}; // ModelsArray[] |
| 71 |
#endif // GED_MODELS_ARRAY_HIDDEN |
| 72 |
const unsigned int numOfSupportedModels = 17; |
| 73 |
|
| 74 |
#ifndef GED_MODELS_ARRAY_NAMES_HIDDEN |
| 75 |
const char* modelNames[17] = { GED_MODEL_NAME_STRING("none"), GED_MODEL_NAME_STRING("7"), GED_MODEL_NAME_STRING("7_5"), GED_MODEL_NAME_STRING("8"), GED_MODEL_NAME_STRING("8_1"), GED_MODEL_NAME_STRING("9"), GED_MODEL_NAME_STRING("10"), GED_MODEL_NAME_STRING("11"), GED_MODEL_NAME_STRING("tgl"), GED_MODEL_NAME_STRING("xe_hp"), GED_MODEL_NAME_STRING("xe_hpg"), GED_MODEL_NAME_STRING("xe_hpc_a"), GED_MODEL_NAME_STRING("xe_hpc"), GED_MODEL_NAME_STRING("xe_lpg_md"), GED_MODEL_NAME_STRING("xe2"), GED_MODEL_NAME_STRING("xe3"), GED_MODEL_NAME_STRING("xe3p_cri") }; |
| 76 |
#endif // GED_MODELS_ARRAY_NAMES_HIDDEN |
| 77 |
|
| 78 |
#ifndef GED_MODELS_ARRAY_FUNCTION_HIDDEN |
| 79 |
|
| 80 |
/*! |
| 81 |
* Get the GED_MODEL Id for the given model name. |
| 82 |
* |
| 83 |
* @param[in] name Name of the model to find. |
| 84 |
* @param[out] model Will hold the given model's Id if the model is found, otherwise unchanged. |
| 85 |
* |
| 86 |
* @return TRUE if the given model name is valid, FALSE otherwise. |
| 87 |
*/ |
| 88 |
bool GetModelByName(const string& name, /* GED_MODEL */ unsigned int& model) |
| 89 |
{ |
| 90 |
if (GED_MODEL_NAME_STRING("none") == name) model = GED_MODEL_NONE; |
| 91 |
else if (GED_MODEL_NAME_STRING("7") == name) model = GED_MODEL_7; |
| 92 |
else if (GED_MODEL_NAME_STRING("7_5") == name) model = GED_MODEL_7_5; |
| 93 |
else if (GED_MODEL_NAME_STRING("8") == name) model = GED_MODEL_8; |
| 94 |
else if (GED_MODEL_NAME_STRING("8_1") == name) model = GED_MODEL_8_1; |
| 95 |
else if (GED_MODEL_NAME_STRING("9") == name) model = GED_MODEL_9; |
| 96 |
else if (GED_MODEL_NAME_STRING("10") == name) model = GED_MODEL_10; |
| 97 |
else if (GED_MODEL_NAME_STRING("11") == name) model = GED_MODEL_11; |
| 98 |
else if (GED_MODEL_NAME_STRING("tgl") == name) model = GED_MODEL_TGL; |
| 99 |
else if (GED_MODEL_NAME_STRING("xe_hp") == name) model = GED_MODEL_XE_HP; |
| 100 |
else if (GED_MODEL_NAME_STRING("xe_hpg") == name) model = GED_MODEL_XE_HPG; |
| 101 |
else if (GED_MODEL_NAME_STRING("xe_hpc_a") == name) model = GED_MODEL_XE_HPC_A; |
| 102 |
else if (GED_MODEL_NAME_STRING("xe_hpc") == name) model = GED_MODEL_XE_HPC; |
| 103 |
else if (GED_MODEL_NAME_STRING("xe_lpg_md") == name) model = GED_MODEL_XE_LPG_MD; |
| 104 |
else if (GED_MODEL_NAME_STRING("xe2") == name) model = GED_MODEL_XE2; |
| 105 |
else if (GED_MODEL_NAME_STRING("xe3") == name) model = GED_MODEL_XE3; |
| 106 |
else if (GED_MODEL_NAME_STRING("xe3p_cri") == name) model = GED_MODEL_XE3P_CRI; |
| 107 |
else return false; |
| 108 |
return true; |
| 109 |
} |
| 110 |
#endif // GED_MODELS_ARRAY_FUNCTION_HIDDEN |
| 111 |
const char* GED_GetModelVersionString(GED_MODEL model) |
| 112 |
{ |
| 113 |
#ifndef GED_MODELS_ARRAY_HIDDEN |
| 114 |
unsigned int rawModel = static_cast<unsigned int>(model); |
| 115 |
if (rawModel < numOfSupportedModels) |
| 116 |
return ModelsArray[rawModel].modelVersion; |
| 117 |
#endif |
| 118 |
return ""; |
| 119 |
} |
| 120 |
const char* GED_GetReturnValueString(GED_RETURN_VALUE returnValue) |
| 121 |
{ |
| 122 |
unsigned int rawReturnValue = static_cast<unsigned int>(returnValue); |
| 123 |
if (rawReturnValue < GED_RETURN_VALUE_SIZE) |
| 124 |
return gedReturnValueStrings[returnValue]; |
| 125 |
return ""; |
| 126 |
} |
| 127 |
const char* GED_GetReturnValuePad(GED_RETURN_VALUE returnValue) |
| 128 |
{ |
| 129 |
unsigned int rawReturnValue = static_cast<unsigned int>(returnValue); |
| 130 |
if (rawReturnValue < GED_RETURN_VALUE_SIZE) |
| 131 |
return gedReturnValuePadding[returnValue]; |
| 132 |
return ""; |
| 133 |
} |
| 134 |
GED_RETURN_VALUE GED_InitEmptyIns(const GED_MODEL modelId, ged_ins_t* ins, GED_OPCODE opcode) |
| 135 |
{ |
| 136 |
return reinterpret_cast<GEDIns*>(ins)->Init(modelId, opcode); |
| 137 |
|
| 138 |
} |
| 139 |
GED_RETURN_VALUE GED_DecodeIns(const GED_MODEL modelId, const unsigned char* rawBytes, const uint32_t size, ged_ins_t* ins) |
| 140 |
{ |
| 141 |
return reinterpret_cast<GEDIns*>(ins)->Decode(modelId, rawBytes, size); |
| 142 |
} |
| 143 |
GED_RETURN_VALUE GED_EncodeIns(ged_ins_t* ins, const GED_INS_TYPE insType, unsigned char* rawBytes) |
| 144 |
{ |
| 145 |
return reinterpret_cast<GEDIns*>(ins)->Encode(insType, rawBytes); |
| 146 |
} |
| 147 |
uint32_t GED_InsSize(const ged_ins_t* ins) |
| 148 |
{ |
| 149 |
return reinterpret_cast<const GEDIns*>(ins)->GetInstructionSize(); |
| 150 |
} |
| 151 |
bool GED_InsModified(const ged_ins_t* ins) |
| 152 |
{ |
| 153 |
return reinterpret_cast<const GEDIns*>(ins)->IsModified(); |
| 154 |
} |
| 155 |
|
| 156 |
#if GED_VALIDATION_API |
| 157 |
GED_RETURN_VALUE GED_CountCompactEncodings(ged_ins_t* ins, unsigned int& count) |
| 158 |
{ |
| 159 |
return reinterpret_cast<GEDIns*>(ins)->CountCompacted(count); |
| 160 |
} |
| 161 |
GED_RETURN_VALUE GED_GetCompactEncodings(ged_ins_t* ins, const unsigned int size, unsigned char* compactBytesArray) |
| 162 |
{ |
| 163 |
return reinterpret_cast<GEDIns*>(ins)->RetrieveAllCompactedFormats(size, compactBytesArray); |
| 164 |
} |
| 165 |
GED_RETURN_VALUE GED_PrintFieldBitLocation(const ged_ins_t* ins, const GED_INS_FIELD field) |
| 166 |
{ |
| 167 |
return reinterpret_cast<const GEDIns*>(ins)->PrintFieldBitLocation(field); |
| 168 |
} |
| 169 |
#endif // GED_VALIDATION_API |
| 170 |
GED_RETURN_VALUE GED_QueryFieldBitLocation(const ged_ins_t* ins, const GED_INS_FIELD field, uint32_t * fragments, uint32_t * length) |
| 171 |
{ |
| 172 |
return reinterpret_cast<const GEDIns*>(ins)->QueryFieldBitLocation(field, fragments, length); |
| 173 |
} |
| 174 |
uint32_t GED_FieldSize(const ged_ins_t* ins, const GED_INS_FIELD field) |
| 175 |
{ |
| 176 |
return reinterpret_cast<const GEDIns*>(ins)->GetFieldSize(field); |
| 177 |
} |
| 178 |
GED_OPCODE GED_GetOpcode(const ged_ins_t* ins) |
| 179 |
{ |
| 180 |
return (GED_OPCODE)(reinterpret_cast<const GEDIns*>(ins)->GetOpcode()); |
| 181 |
} |
| 182 |
const char* GED_GetMnemonic(const ged_ins_t* ins) |
| 183 |
{ |
| 184 |
#ifndef GED_OPCODE_HIDDEN |
| 185 |
return GED_GetOpcodeString((GED_OPCODE)(reinterpret_cast<const GEDIns*>(ins)->GetOpcode())); |
| 186 |
#else |
| 187 |
return ""; |
| 188 |
#endif |
| 189 |
} |
| 190 |
GED_RETURN_VALUE GED_SetOpcode(ged_ins_t* ins, const GED_OPCODE opcode) |
| 191 |
{ |
| 192 |
return reinterpret_cast<GEDIns*>(ins)->SetOpcode(opcode); |
| 193 |
} |
| 194 |
bool GED_IsCompact(const ged_ins_t* ins) |
| 195 |
{ |
| 196 |
return reinterpret_cast<const GEDIns*>(ins)->IsCompact(); |
| 197 |
} |
| 198 |
GED_MODEL GED_GetModel(const ged_ins_t* ins) |
| 199 |
{ |
| 200 |
return (GED_MODEL)(reinterpret_cast<const GEDIns*>(ins)->GetCurrentModel()); |
| 201 |
} |
| 202 |
uint32_t GED_Get___SrcImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 203 |
{ |
| 204 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 205 |
if (NULL == result) result = &localResult; |
| 206 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD____SrcImm, *result); |
| 207 |
} |
| 208 |
GED_RETURN_VALUE GED_Set___SrcImm(ged_ins_t* ins, const uint32_t value) |
| 209 |
{ |
| 210 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD____SrcImm, value); |
| 211 |
} |
| 212 |
uint32_t GED_GetNumOfSourceOperands(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 213 |
{ |
| 214 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 215 |
if (NULL == result) result = &localResult; |
| 216 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_NumOfSourceOperands, *result); |
| 217 |
} |
| 218 |
uint32_t GED_GetHasDestinationOperand(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 219 |
{ |
| 220 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 221 |
if (NULL == result) result = &localResult; |
| 222 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_HasDestinationOperand, *result); |
| 223 |
} |
| 224 |
GED_ACCESS_MODE GED_GetAccessMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 225 |
{ |
| 226 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 227 |
if (NULL == result) result = &localResult; |
| 228 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_AccessMode, *result); |
| 229 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ACCESS_MODE)value : GED_ACCESS_MODE_INVALID; |
| 230 |
} |
| 231 |
GED_RETURN_VALUE GED_SetAccessMode(ged_ins_t* ins, const GED_ACCESS_MODE value) |
| 232 |
{ |
| 233 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_AccessMode, (const uint32_t)value); |
| 234 |
} |
| 235 |
GED_MASK_CTRL GED_GetMaskCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 236 |
{ |
| 237 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 238 |
if (NULL == result) result = &localResult; |
| 239 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MaskCtrl, *result); |
| 240 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MASK_CTRL)value : GED_MASK_CTRL_INVALID; |
| 241 |
} |
| 242 |
GED_RETURN_VALUE GED_SetMaskCtrl(ged_ins_t* ins, const GED_MASK_CTRL value) |
| 243 |
{ |
| 244 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MaskCtrl, (const uint32_t)value); |
| 245 |
} |
| 246 |
GED_DEP_CTRL GED_GetDepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 247 |
{ |
| 248 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 249 |
if (NULL == result) result = &localResult; |
| 250 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DepCtrl, *result); |
| 251 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DEP_CTRL)value : GED_DEP_CTRL_INVALID; |
| 252 |
} |
| 253 |
GED_RETURN_VALUE GED_SetDepCtrl(ged_ins_t* ins, const GED_DEP_CTRL value) |
| 254 |
{ |
| 255 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DepCtrl, (const uint32_t)value); |
| 256 |
} |
| 257 |
GED_EXEC_MASK_OFFSET_CTRL GED_GetExecMaskOffsetCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 258 |
{ |
| 259 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 260 |
if (NULL == result) result = &localResult; |
| 261 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExecMaskOffsetCtrl, *result); |
| 262 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_EXEC_MASK_OFFSET_CTRL)value : GED_EXEC_MASK_OFFSET_CTRL_INVALID; |
| 263 |
} |
| 264 |
GED_RETURN_VALUE GED_SetExecMaskOffsetCtrl(ged_ins_t* ins, const GED_EXEC_MASK_OFFSET_CTRL value) |
| 265 |
{ |
| 266 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExecMaskOffsetCtrl, (const uint32_t)value); |
| 267 |
} |
| 268 |
GED_CHANNEL_OFFSET GED_GetChannelOffset(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 269 |
{ |
| 270 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 271 |
if (NULL == result) result = &localResult; |
| 272 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ChannelOffset, *result); |
| 273 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_OFFSET)value : GED_CHANNEL_OFFSET_INVALID; |
| 274 |
} |
| 275 |
GED_RETURN_VALUE GED_SetChannelOffset(ged_ins_t* ins, const GED_CHANNEL_OFFSET value) |
| 276 |
{ |
| 277 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ChannelOffset, (const uint32_t)value); |
| 278 |
} |
| 279 |
GED_THREAD_CTRL GED_GetThreadCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 280 |
{ |
| 281 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 282 |
if (NULL == result) result = &localResult; |
| 283 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ThreadCtrl, *result); |
| 284 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_THREAD_CTRL)value : GED_THREAD_CTRL_INVALID; |
| 285 |
} |
| 286 |
GED_RETURN_VALUE GED_SetThreadCtrl(ged_ins_t* ins, const GED_THREAD_CTRL value) |
| 287 |
{ |
| 288 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ThreadCtrl, (const uint32_t)value); |
| 289 |
} |
| 290 |
GED_PRED_CTRL GED_GetPredCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 291 |
{ |
| 292 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 293 |
if (NULL == result) result = &localResult; |
| 294 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_PredCtrl, *result); |
| 295 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_PRED_CTRL)value : GED_PRED_CTRL_INVALID; |
| 296 |
} |
| 297 |
GED_RETURN_VALUE GED_SetPredCtrl(ged_ins_t* ins, const GED_PRED_CTRL value) |
| 298 |
{ |
| 299 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_PredCtrl, (const uint32_t)value); |
| 300 |
} |
| 301 |
GED_PRED_INV GED_GetPredInv(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 302 |
{ |
| 303 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 304 |
if (NULL == result) result = &localResult; |
| 305 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_PredInv, *result); |
| 306 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_PRED_INV)value : GED_PRED_INV_INVALID; |
| 307 |
} |
| 308 |
GED_RETURN_VALUE GED_SetPredInv(ged_ins_t* ins, const GED_PRED_INV value) |
| 309 |
{ |
| 310 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_PredInv, (const uint32_t)value); |
| 311 |
} |
| 312 |
uint32_t GED_GetExecSize(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 313 |
{ |
| 314 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 315 |
if (NULL == result) result = &localResult; |
| 316 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExecSize, *result); |
| 317 |
} |
| 318 |
GED_RETURN_VALUE GED_SetExecSize(ged_ins_t* ins, const uint32_t value) |
| 319 |
{ |
| 320 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExecSize, value); |
| 321 |
} |
| 322 |
GED_COND_MODIFIER GED_GetCondModifier(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 323 |
{ |
| 324 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 325 |
if (NULL == result) result = &localResult; |
| 326 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_CondModifier, *result); |
| 327 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_COND_MODIFIER)value : GED_COND_MODIFIER_INVALID; |
| 328 |
} |
| 329 |
GED_RETURN_VALUE GED_SetCondModifier(ged_ins_t* ins, const GED_COND_MODIFIER value) |
| 330 |
{ |
| 331 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_CondModifier, (const uint32_t)value); |
| 332 |
} |
| 333 |
GED_ACC_WR_CTRL GED_GetAccWrCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 334 |
{ |
| 335 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 336 |
if (NULL == result) result = &localResult; |
| 337 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_AccWrCtrl, *result); |
| 338 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ACC_WR_CTRL)value : GED_ACC_WR_CTRL_INVALID; |
| 339 |
} |
| 340 |
GED_RETURN_VALUE GED_SetAccWrCtrl(ged_ins_t* ins, const GED_ACC_WR_CTRL value) |
| 341 |
{ |
| 342 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_AccWrCtrl, (const uint32_t)value); |
| 343 |
} |
| 344 |
GED_DEBUG_CTRL GED_GetDebugCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 345 |
{ |
| 346 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 347 |
if (NULL == result) result = &localResult; |
| 348 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DebugCtrl, *result); |
| 349 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DEBUG_CTRL)value : GED_DEBUG_CTRL_INVALID; |
| 350 |
} |
| 351 |
GED_RETURN_VALUE GED_SetDebugCtrl(ged_ins_t* ins, const GED_DEBUG_CTRL value) |
| 352 |
{ |
| 353 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DebugCtrl, (const uint32_t)value); |
| 354 |
} |
| 355 |
GED_SATURATE GED_GetSaturate(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 356 |
{ |
| 357 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 358 |
if (NULL == result) result = &localResult; |
| 359 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Saturate, *result); |
| 360 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SATURATE)value : GED_SATURATE_INVALID; |
| 361 |
} |
| 362 |
GED_RETURN_VALUE GED_SetSaturate(ged_ins_t* ins, const GED_SATURATE value) |
| 363 |
{ |
| 364 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Saturate, (const uint32_t)value); |
| 365 |
} |
| 366 |
GED_REG_FILE GED_GetDstRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 367 |
{ |
| 368 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 369 |
if (NULL == result) result = &localResult; |
| 370 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstRegFile, *result); |
| 371 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 372 |
} |
| 373 |
GED_RETURN_VALUE GED_SetDstRegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 374 |
{ |
| 375 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstRegFile, (const uint32_t)value); |
| 376 |
} |
| 377 |
GED_DATA_TYPE GED_GetDstDataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 378 |
{ |
| 379 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 380 |
if (NULL == result) result = &localResult; |
| 381 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstDataType, *result); |
| 382 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE)value : GED_DATA_TYPE_INVALID; |
| 383 |
} |
| 384 |
GED_RETURN_VALUE GED_SetDstDataType(ged_ins_t* ins, const GED_DATA_TYPE value) |
| 385 |
{ |
| 386 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstDataType, (const uint32_t)value); |
| 387 |
} |
| 388 |
GED_REG_FILE GED_GetSrc0RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 389 |
{ |
| 390 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 391 |
if (NULL == result) result = &localResult; |
| 392 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0RegFile, *result); |
| 393 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 394 |
} |
| 395 |
GED_RETURN_VALUE GED_SetSrc0RegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 396 |
{ |
| 397 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0RegFile, (const uint32_t)value); |
| 398 |
} |
| 399 |
GED_DATA_TYPE GED_GetSrc0DataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 400 |
{ |
| 401 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 402 |
if (NULL == result) result = &localResult; |
| 403 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0DataType, *result); |
| 404 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE)value : GED_DATA_TYPE_INVALID; |
| 405 |
} |
| 406 |
GED_RETURN_VALUE GED_SetSrc0DataType(ged_ins_t* ins, const GED_DATA_TYPE value) |
| 407 |
{ |
| 408 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0DataType, (const uint32_t)value); |
| 409 |
} |
| 410 |
GED_REG_FILE GED_GetSrc1RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 411 |
{ |
| 412 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 413 |
if (NULL == result) result = &localResult; |
| 414 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1RegFile, *result); |
| 415 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 416 |
} |
| 417 |
GED_RETURN_VALUE GED_SetSrc1RegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 418 |
{ |
| 419 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1RegFile, (const uint32_t)value); |
| 420 |
} |
| 421 |
GED_DATA_TYPE GED_GetSrc1DataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 422 |
{ |
| 423 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 424 |
if (NULL == result) result = &localResult; |
| 425 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1DataType, *result); |
| 426 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE)value : GED_DATA_TYPE_INVALID; |
| 427 |
} |
| 428 |
GED_RETURN_VALUE GED_SetSrc1DataType(ged_ins_t* ins, const GED_DATA_TYPE value) |
| 429 |
{ |
| 430 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1DataType, (const uint32_t)value); |
| 431 |
} |
| 432 |
GED_DST_CHAN_EN GED_GetDstChanEn(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 433 |
{ |
| 434 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 435 |
if (NULL == result) result = &localResult; |
| 436 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstChanEn, *result); |
| 437 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DST_CHAN_EN)value : GED_DST_CHAN_EN_INVALID; |
| 438 |
} |
| 439 |
GED_RETURN_VALUE GED_SetDstChanEn(ged_ins_t* ins, const GED_DST_CHAN_EN value) |
| 440 |
{ |
| 441 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstChanEn, (const uint32_t)value); |
| 442 |
} |
| 443 |
uint32_t GED_GetDstSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 444 |
{ |
| 445 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 446 |
if (NULL == result) result = &localResult; |
| 447 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstSubRegNum, *result); |
| 448 |
} |
| 449 |
GED_RETURN_VALUE GED_SetDstSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 450 |
{ |
| 451 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstSubRegNum, value); |
| 452 |
} |
| 453 |
int32_t GED_GetDstAddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 454 |
{ |
| 455 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 456 |
if (NULL == result) result = &localResult; |
| 457 |
return reinterpret_cast<GEDIns*>(ins)->GetSignedField(GED_INS_FIELD_DstAddrImm, *result)._dw; |
| 458 |
} |
| 459 |
GED_RETURN_VALUE GED_SetDstAddrImm(ged_ins_t* ins, const int32_t value) |
| 460 |
{ |
| 461 |
return reinterpret_cast<GEDIns*>(ins)->SetSignedField(GED_INS_FIELD_DstAddrImm, value); |
| 462 |
} |
| 463 |
uint32_t GED_GetDstRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 464 |
{ |
| 465 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 466 |
if (NULL == result) result = &localResult; |
| 467 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstRegNum, *result); |
| 468 |
} |
| 469 |
GED_RETURN_VALUE GED_SetDstRegNum(ged_ins_t* ins, const uint32_t value) |
| 470 |
{ |
| 471 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstRegNum, value); |
| 472 |
} |
| 473 |
uint32_t GED_GetDstAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 474 |
{ |
| 475 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 476 |
if (NULL == result) result = &localResult; |
| 477 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstAddrSubRegNum, *result); |
| 478 |
} |
| 479 |
GED_RETURN_VALUE GED_SetDstAddrSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 480 |
{ |
| 481 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstAddrSubRegNum, value); |
| 482 |
} |
| 483 |
uint32_t GED_GetDstHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 484 |
{ |
| 485 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 486 |
if (NULL == result) result = &localResult; |
| 487 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstHorzStride, *result); |
| 488 |
} |
| 489 |
GED_RETURN_VALUE GED_SetDstHorzStride(ged_ins_t* ins, const uint32_t value) |
| 490 |
{ |
| 491 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstHorzStride, value); |
| 492 |
} |
| 493 |
GED_ADDR_MODE GED_GetDstAddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 494 |
{ |
| 495 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 496 |
if (NULL == result) result = &localResult; |
| 497 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstAddrMode, *result); |
| 498 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ADDR_MODE)value : GED_ADDR_MODE_INVALID; |
| 499 |
} |
| 500 |
GED_RETURN_VALUE GED_SetDstAddrMode(ged_ins_t* ins, const GED_ADDR_MODE value) |
| 501 |
{ |
| 502 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstAddrMode, (const uint32_t)value); |
| 503 |
} |
| 504 |
uint32_t GED_GetSrc0ChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 505 |
{ |
| 506 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 507 |
if (NULL == result) result = &localResult; |
| 508 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0ChanSel, *result); |
| 509 |
} |
| 510 |
GED_RETURN_VALUE GED_SetSrc0ChanSel(ged_ins_t* ins, const uint32_t value) |
| 511 |
{ |
| 512 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0ChanSel, value); |
| 513 |
} |
| 514 |
uint32_t GED_GetSrc0SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 515 |
{ |
| 516 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 517 |
if (NULL == result) result = &localResult; |
| 518 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0SubRegNum, *result); |
| 519 |
} |
| 520 |
GED_RETURN_VALUE GED_SetSrc0SubRegNum(ged_ins_t* ins, const uint32_t value) |
| 521 |
{ |
| 522 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0SubRegNum, value); |
| 523 |
} |
| 524 |
int32_t GED_GetSrc0AddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 525 |
{ |
| 526 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 527 |
if (NULL == result) result = &localResult; |
| 528 |
return reinterpret_cast<GEDIns*>(ins)->GetSignedField(GED_INS_FIELD_Src0AddrImm, *result)._dw; |
| 529 |
} |
| 530 |
GED_RETURN_VALUE GED_SetSrc0AddrImm(ged_ins_t* ins, const int32_t value) |
| 531 |
{ |
| 532 |
return reinterpret_cast<GEDIns*>(ins)->SetSignedField(GED_INS_FIELD_Src0AddrImm, value); |
| 533 |
} |
| 534 |
uint32_t GED_GetSrc0RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 535 |
{ |
| 536 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 537 |
if (NULL == result) result = &localResult; |
| 538 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0RegNum, *result); |
| 539 |
} |
| 540 |
GED_RETURN_VALUE GED_SetSrc0RegNum(ged_ins_t* ins, const uint32_t value) |
| 541 |
{ |
| 542 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0RegNum, value); |
| 543 |
} |
| 544 |
uint32_t GED_GetSrc0AddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 545 |
{ |
| 546 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 547 |
if (NULL == result) result = &localResult; |
| 548 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0AddrSubRegNum, *result); |
| 549 |
} |
| 550 |
GED_RETURN_VALUE GED_SetSrc0AddrSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 551 |
{ |
| 552 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0AddrSubRegNum, value); |
| 553 |
} |
| 554 |
GED_SRC_MOD GED_GetSrc0SrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 555 |
{ |
| 556 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 557 |
if (NULL == result) result = &localResult; |
| 558 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0SrcMod, *result); |
| 559 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SRC_MOD)value : GED_SRC_MOD_INVALID; |
| 560 |
} |
| 561 |
GED_RETURN_VALUE GED_SetSrc0SrcMod(ged_ins_t* ins, const GED_SRC_MOD value) |
| 562 |
{ |
| 563 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0SrcMod, (const uint32_t)value); |
| 564 |
} |
| 565 |
GED_ADDR_MODE GED_GetSrc0AddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 566 |
{ |
| 567 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 568 |
if (NULL == result) result = &localResult; |
| 569 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0AddrMode, *result); |
| 570 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ADDR_MODE)value : GED_ADDR_MODE_INVALID; |
| 571 |
} |
| 572 |
GED_RETURN_VALUE GED_SetSrc0AddrMode(ged_ins_t* ins, const GED_ADDR_MODE value) |
| 573 |
{ |
| 574 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0AddrMode, (const uint32_t)value); |
| 575 |
} |
| 576 |
uint32_t GED_GetSrc0HorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 577 |
{ |
| 578 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 579 |
if (NULL == result) result = &localResult; |
| 580 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0HorzStride, *result); |
| 581 |
} |
| 582 |
GED_RETURN_VALUE GED_SetSrc0HorzStride(ged_ins_t* ins, const uint32_t value) |
| 583 |
{ |
| 584 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0HorzStride, value); |
| 585 |
} |
| 586 |
uint32_t GED_GetSrc0Width(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 587 |
{ |
| 588 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 589 |
if (NULL == result) result = &localResult; |
| 590 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0Width, *result); |
| 591 |
} |
| 592 |
GED_RETURN_VALUE GED_SetSrc0Width(ged_ins_t* ins, const uint32_t value) |
| 593 |
{ |
| 594 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0Width, value); |
| 595 |
} |
| 596 |
uint32_t GED_GetSrc0VertStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 597 |
{ |
| 598 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 599 |
if (NULL == result) result = &localResult; |
| 600 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0VertStride, *result); |
| 601 |
} |
| 602 |
GED_RETURN_VALUE GED_SetSrc0VertStride(ged_ins_t* ins, const uint32_t value) |
| 603 |
{ |
| 604 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0VertStride, value); |
| 605 |
} |
| 606 |
uint32_t GED_GetFlagSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 607 |
{ |
| 608 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 609 |
if (NULL == result) result = &localResult; |
| 610 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_FlagSubRegNum, *result); |
| 611 |
} |
| 612 |
GED_RETURN_VALUE GED_SetFlagSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 613 |
{ |
| 614 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_FlagSubRegNum, value); |
| 615 |
} |
| 616 |
uint32_t GED_GetFlagRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 617 |
{ |
| 618 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 619 |
if (NULL == result) result = &localResult; |
| 620 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_FlagRegNum, *result); |
| 621 |
} |
| 622 |
GED_RETURN_VALUE GED_SetFlagRegNum(ged_ins_t* ins, const uint32_t value) |
| 623 |
{ |
| 624 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_FlagRegNum, value); |
| 625 |
} |
| 626 |
uint32_t GED_GetSrc1ChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 627 |
{ |
| 628 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 629 |
if (NULL == result) result = &localResult; |
| 630 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1ChanSel, *result); |
| 631 |
} |
| 632 |
GED_RETURN_VALUE GED_SetSrc1ChanSel(ged_ins_t* ins, const uint32_t value) |
| 633 |
{ |
| 634 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1ChanSel, value); |
| 635 |
} |
| 636 |
uint32_t GED_GetSrc1SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 637 |
{ |
| 638 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 639 |
if (NULL == result) result = &localResult; |
| 640 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1SubRegNum, *result); |
| 641 |
} |
| 642 |
GED_RETURN_VALUE GED_SetSrc1SubRegNum(ged_ins_t* ins, const uint32_t value) |
| 643 |
{ |
| 644 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1SubRegNum, value); |
| 645 |
} |
| 646 |
int32_t GED_GetSrc1AddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 647 |
{ |
| 648 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 649 |
if (NULL == result) result = &localResult; |
| 650 |
return reinterpret_cast<GEDIns*>(ins)->GetSignedField(GED_INS_FIELD_Src1AddrImm, *result)._dw; |
| 651 |
} |
| 652 |
GED_RETURN_VALUE GED_SetSrc1AddrImm(ged_ins_t* ins, const int32_t value) |
| 653 |
{ |
| 654 |
return reinterpret_cast<GEDIns*>(ins)->SetSignedField(GED_INS_FIELD_Src1AddrImm, value); |
| 655 |
} |
| 656 |
uint32_t GED_GetSrc1RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 657 |
{ |
| 658 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 659 |
if (NULL == result) result = &localResult; |
| 660 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1RegNum, *result); |
| 661 |
} |
| 662 |
GED_RETURN_VALUE GED_SetSrc1RegNum(ged_ins_t* ins, const uint32_t value) |
| 663 |
{ |
| 664 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1RegNum, value); |
| 665 |
} |
| 666 |
uint32_t GED_GetSrc1AddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 667 |
{ |
| 668 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 669 |
if (NULL == result) result = &localResult; |
| 670 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1AddrSubRegNum, *result); |
| 671 |
} |
| 672 |
GED_RETURN_VALUE GED_SetSrc1AddrSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 673 |
{ |
| 674 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1AddrSubRegNum, value); |
| 675 |
} |
| 676 |
GED_SRC_MOD GED_GetSrc1SrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 677 |
{ |
| 678 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 679 |
if (NULL == result) result = &localResult; |
| 680 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1SrcMod, *result); |
| 681 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SRC_MOD)value : GED_SRC_MOD_INVALID; |
| 682 |
} |
| 683 |
GED_RETURN_VALUE GED_SetSrc1SrcMod(ged_ins_t* ins, const GED_SRC_MOD value) |
| 684 |
{ |
| 685 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1SrcMod, (const uint32_t)value); |
| 686 |
} |
| 687 |
GED_ADDR_MODE GED_GetSrc1AddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 688 |
{ |
| 689 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 690 |
if (NULL == result) result = &localResult; |
| 691 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1AddrMode, *result); |
| 692 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ADDR_MODE)value : GED_ADDR_MODE_INVALID; |
| 693 |
} |
| 694 |
GED_RETURN_VALUE GED_SetSrc1AddrMode(ged_ins_t* ins, const GED_ADDR_MODE value) |
| 695 |
{ |
| 696 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1AddrMode, (const uint32_t)value); |
| 697 |
} |
| 698 |
uint32_t GED_GetSrc1HorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 699 |
{ |
| 700 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 701 |
if (NULL == result) result = &localResult; |
| 702 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1HorzStride, *result); |
| 703 |
} |
| 704 |
GED_RETURN_VALUE GED_SetSrc1HorzStride(ged_ins_t* ins, const uint32_t value) |
| 705 |
{ |
| 706 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1HorzStride, value); |
| 707 |
} |
| 708 |
uint32_t GED_GetSrc1Width(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 709 |
{ |
| 710 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 711 |
if (NULL == result) result = &localResult; |
| 712 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1Width, *result); |
| 713 |
} |
| 714 |
GED_RETURN_VALUE GED_SetSrc1Width(ged_ins_t* ins, const uint32_t value) |
| 715 |
{ |
| 716 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1Width, value); |
| 717 |
} |
| 718 |
uint32_t GED_GetSrc1VertStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 719 |
{ |
| 720 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 721 |
if (NULL == result) result = &localResult; |
| 722 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1VertStride, *result); |
| 723 |
} |
| 724 |
GED_RETURN_VALUE GED_SetSrc1VertStride(ged_ins_t* ins, const uint32_t value) |
| 725 |
{ |
| 726 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1VertStride, value); |
| 727 |
} |
| 728 |
uint64_t GED_GetImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 729 |
{ |
| 730 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 731 |
if (NULL == result) result = &localResult; |
| 732 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsigned64Field(GED_INS_FIELD_Imm, *result); |
| 733 |
} |
| 734 |
GED_RETURN_VALUE GED_SetImm(ged_ins_t* ins, const uint64_t value) |
| 735 |
{ |
| 736 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsigned64Field(GED_INS_FIELD_Imm, value); |
| 737 |
} |
| 738 |
GED_SRC_MOD GED_GetSrc2SrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 739 |
{ |
| 740 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 741 |
if (NULL == result) result = &localResult; |
| 742 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2SrcMod, *result); |
| 743 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SRC_MOD)value : GED_SRC_MOD_INVALID; |
| 744 |
} |
| 745 |
GED_RETURN_VALUE GED_SetSrc2SrcMod(ged_ins_t* ins, const GED_SRC_MOD value) |
| 746 |
{ |
| 747 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2SrcMod, (const uint32_t)value); |
| 748 |
} |
| 749 |
GED_DATA_TYPE GED_GetSrcDataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 750 |
{ |
| 751 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 752 |
if (NULL == result) result = &localResult; |
| 753 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SrcDataType, *result); |
| 754 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE)value : GED_DATA_TYPE_INVALID; |
| 755 |
} |
| 756 |
GED_RETURN_VALUE GED_SetSrcDataType(ged_ins_t* ins, const GED_DATA_TYPE value) |
| 757 |
{ |
| 758 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SrcDataType, (const uint32_t)value); |
| 759 |
} |
| 760 |
GED_REP_CTRL GED_GetSrc0RepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 761 |
{ |
| 762 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 763 |
if (NULL == result) result = &localResult; |
| 764 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0RepCtrl, *result); |
| 765 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REP_CTRL)value : GED_REP_CTRL_INVALID; |
| 766 |
} |
| 767 |
GED_RETURN_VALUE GED_SetSrc0RepCtrl(ged_ins_t* ins, const GED_REP_CTRL value) |
| 768 |
{ |
| 769 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0RepCtrl, (const uint32_t)value); |
| 770 |
} |
| 771 |
GED_REP_CTRL GED_GetSrc1RepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 772 |
{ |
| 773 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 774 |
if (NULL == result) result = &localResult; |
| 775 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1RepCtrl, *result); |
| 776 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REP_CTRL)value : GED_REP_CTRL_INVALID; |
| 777 |
} |
| 778 |
GED_RETURN_VALUE GED_SetSrc1RepCtrl(ged_ins_t* ins, const GED_REP_CTRL value) |
| 779 |
{ |
| 780 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1RepCtrl, (const uint32_t)value); |
| 781 |
} |
| 782 |
GED_REP_CTRL GED_GetSrc2RepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 783 |
{ |
| 784 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 785 |
if (NULL == result) result = &localResult; |
| 786 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2RepCtrl, *result); |
| 787 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REP_CTRL)value : GED_REP_CTRL_INVALID; |
| 788 |
} |
| 789 |
GED_RETURN_VALUE GED_SetSrc2RepCtrl(ged_ins_t* ins, const GED_REP_CTRL value) |
| 790 |
{ |
| 791 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2RepCtrl, (const uint32_t)value); |
| 792 |
} |
| 793 |
uint32_t GED_GetSrc2ChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 794 |
{ |
| 795 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 796 |
if (NULL == result) result = &localResult; |
| 797 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2ChanSel, *result); |
| 798 |
} |
| 799 |
GED_RETURN_VALUE GED_SetSrc2ChanSel(ged_ins_t* ins, const uint32_t value) |
| 800 |
{ |
| 801 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2ChanSel, value); |
| 802 |
} |
| 803 |
uint32_t GED_GetSrc2SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 804 |
{ |
| 805 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 806 |
if (NULL == result) result = &localResult; |
| 807 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2SubRegNum, *result); |
| 808 |
} |
| 809 |
GED_RETURN_VALUE GED_SetSrc2SubRegNum(ged_ins_t* ins, const uint32_t value) |
| 810 |
{ |
| 811 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2SubRegNum, value); |
| 812 |
} |
| 813 |
uint32_t GED_GetSrc2RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 814 |
{ |
| 815 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 816 |
if (NULL == result) result = &localResult; |
| 817 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2RegNum, *result); |
| 818 |
} |
| 819 |
GED_RETURN_VALUE GED_SetSrc2RegNum(ged_ins_t* ins, const uint32_t value) |
| 820 |
{ |
| 821 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2RegNum, value); |
| 822 |
} |
| 823 |
GED_REG_FILE GED_GetSrc2RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 824 |
{ |
| 825 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 826 |
if (NULL == result) result = &localResult; |
| 827 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2RegFile, *result); |
| 828 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 829 |
} |
| 830 |
GED_RETURN_VALUE GED_SetSrc2RegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 831 |
{ |
| 832 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2RegFile, (const uint32_t)value); |
| 833 |
} |
| 834 |
GED_ADDR_MODE GED_GetSrc2AddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 835 |
{ |
| 836 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 837 |
if (NULL == result) result = &localResult; |
| 838 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2AddrMode, *result); |
| 839 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ADDR_MODE)value : GED_ADDR_MODE_INVALID; |
| 840 |
} |
| 841 |
GED_RETURN_VALUE GED_SetSrc2AddrMode(ged_ins_t* ins, const GED_ADDR_MODE value) |
| 842 |
{ |
| 843 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2AddrMode, (const uint32_t)value); |
| 844 |
} |
| 845 |
uint32_t GED_GetSrc2VertStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 846 |
{ |
| 847 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 848 |
if (NULL == result) result = &localResult; |
| 849 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2VertStride, *result); |
| 850 |
} |
| 851 |
GED_RETURN_VALUE GED_SetSrc2VertStride(ged_ins_t* ins, const uint32_t value) |
| 852 |
{ |
| 853 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2VertStride, value); |
| 854 |
} |
| 855 |
GED_SFID GED_GetSFID(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 856 |
{ |
| 857 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 858 |
if (NULL == result) result = &localResult; |
| 859 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SFID, *result); |
| 860 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SFID)value : GED_SFID_INVALID; |
| 861 |
} |
| 862 |
GED_RETURN_VALUE GED_SetSFID(ged_ins_t* ins, const GED_SFID value) |
| 863 |
{ |
| 864 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SFID, (const uint32_t)value); |
| 865 |
} |
| 866 |
GED_REG_FILE GED_GetDescRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 867 |
{ |
| 868 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 869 |
if (NULL == result) result = &localResult; |
| 870 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescRegFile, *result); |
| 871 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 872 |
} |
| 873 |
GED_RETURN_VALUE GED_SetDescRegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 874 |
{ |
| 875 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescRegFile, (const uint32_t)value); |
| 876 |
} |
| 877 |
GED_DATA_TYPE GED_GetDescDataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 878 |
{ |
| 879 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 880 |
if (NULL == result) result = &localResult; |
| 881 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescDataType, *result); |
| 882 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE)value : GED_DATA_TYPE_INVALID; |
| 883 |
} |
| 884 |
GED_RETURN_VALUE GED_SetDescDataType(ged_ins_t* ins, const GED_DATA_TYPE value) |
| 885 |
{ |
| 886 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescDataType, (const uint32_t)value); |
| 887 |
} |
| 888 |
uint32_t GED_GetDescAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 889 |
{ |
| 890 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 891 |
if (NULL == result) result = &localResult; |
| 892 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescAddrSubRegNum, *result); |
| 893 |
} |
| 894 |
GED_RETURN_VALUE GED_SetDescAddrSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 895 |
{ |
| 896 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescAddrSubRegNum, value); |
| 897 |
} |
| 898 |
uint32_t GED_GetDescRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 899 |
{ |
| 900 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 901 |
if (NULL == result) result = &localResult; |
| 902 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescRegNum, *result); |
| 903 |
} |
| 904 |
GED_RETURN_VALUE GED_SetDescRegNum(ged_ins_t* ins, const uint32_t value) |
| 905 |
{ |
| 906 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescRegNum, value); |
| 907 |
} |
| 908 |
uint32_t GED_GetDescHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 909 |
{ |
| 910 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 911 |
if (NULL == result) result = &localResult; |
| 912 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescHorzStride, *result); |
| 913 |
} |
| 914 |
GED_RETURN_VALUE GED_SetDescHorzStride(ged_ins_t* ins, const uint32_t value) |
| 915 |
{ |
| 916 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescHorzStride, value); |
| 917 |
} |
| 918 |
uint32_t GED_GetDescWidth(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 919 |
{ |
| 920 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 921 |
if (NULL == result) result = &localResult; |
| 922 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescWidth, *result); |
| 923 |
} |
| 924 |
GED_RETURN_VALUE GED_SetDescWidth(ged_ins_t* ins, const uint32_t value) |
| 925 |
{ |
| 926 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescWidth, value); |
| 927 |
} |
| 928 |
uint32_t GED_GetDescVertStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 929 |
{ |
| 930 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 931 |
if (NULL == result) result = &localResult; |
| 932 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescVertStride, *result); |
| 933 |
} |
| 934 |
GED_RETURN_VALUE GED_SetDescVertStride(ged_ins_t* ins, const uint32_t value) |
| 935 |
{ |
| 936 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescVertStride, value); |
| 937 |
} |
| 938 |
uint32_t GED_GetMsgDesc(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 939 |
{ |
| 940 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 941 |
if (NULL == result) result = &localResult; |
| 942 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDesc, *result); |
| 943 |
} |
| 944 |
GED_RETURN_VALUE GED_SetMsgDesc(ged_ins_t* ins, const uint32_t value) |
| 945 |
{ |
| 946 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDesc, value); |
| 947 |
} |
| 948 |
uint32_t GED_GetExMsgDescImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 949 |
{ |
| 950 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 951 |
if (NULL == result) result = &localResult; |
| 952 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExMsgDescImm, *result); |
| 953 |
} |
| 954 |
GED_RETURN_VALUE GED_SetExMsgDescImm(ged_ins_t* ins, const uint32_t value) |
| 955 |
{ |
| 956 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExMsgDescImm, value); |
| 957 |
} |
| 958 |
GED_EOT GED_GetEOT(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 959 |
{ |
| 960 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 961 |
if (NULL == result) result = &localResult; |
| 962 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_EOT, *result); |
| 963 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_EOT)value : GED_EOT_INVALID; |
| 964 |
} |
| 965 |
GED_RETURN_VALUE GED_SetEOT(ged_ins_t* ins, const GED_EOT value) |
| 966 |
{ |
| 967 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_EOT, (const uint32_t)value); |
| 968 |
} |
| 969 |
GED_MATH_FC GED_GetMathFC(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 970 |
{ |
| 971 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 972 |
if (NULL == result) result = &localResult; |
| 973 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MathFC, *result); |
| 974 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MATH_FC)value : GED_MATH_FC_INVALID; |
| 975 |
} |
| 976 |
GED_RETURN_VALUE GED_SetMathFC(ged_ins_t* ins, const GED_MATH_FC value) |
| 977 |
{ |
| 978 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MathFC, (const uint32_t)value); |
| 979 |
} |
| 980 |
int32_t GED_GetJIP(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 981 |
{ |
| 982 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 983 |
if (NULL == result) result = &localResult; |
| 984 |
return reinterpret_cast<GEDIns*>(ins)->GetSignedField(GED_INS_FIELD_JIP, *result)._dw; |
| 985 |
} |
| 986 |
GED_RETURN_VALUE GED_SetJIP(ged_ins_t* ins, const int32_t value) |
| 987 |
{ |
| 988 |
return reinterpret_cast<GEDIns*>(ins)->SetSignedField(GED_INS_FIELD_JIP, value); |
| 989 |
} |
| 990 |
int32_t GED_GetUIP(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 991 |
{ |
| 992 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 993 |
if (NULL == result) result = &localResult; |
| 994 |
return reinterpret_cast<GEDIns*>(ins)->GetSignedField(GED_INS_FIELD_UIP, *result)._dw; |
| 995 |
} |
| 996 |
GED_RETURN_VALUE GED_SetUIP(ged_ins_t* ins, const int32_t value) |
| 997 |
{ |
| 998 |
return reinterpret_cast<GEDIns*>(ins)->SetSignedField(GED_INS_FIELD_UIP, value); |
| 999 |
} |
| 1000 |
uint32_t GED_GetControlIndex(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1001 |
{ |
| 1002 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1003 |
if (NULL == result) result = &localResult; |
| 1004 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ControlIndex, *result); |
| 1005 |
} |
| 1006 |
GED_RETURN_VALUE GED_SetControlIndex(ged_ins_t* ins, const uint32_t value) |
| 1007 |
{ |
| 1008 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ControlIndex, value); |
| 1009 |
} |
| 1010 |
uint32_t GED_GetDataTypeIndex(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1011 |
{ |
| 1012 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1013 |
if (NULL == result) result = &localResult; |
| 1014 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DataTypeIndex, *result); |
| 1015 |
} |
| 1016 |
GED_RETURN_VALUE GED_SetDataTypeIndex(ged_ins_t* ins, const uint32_t value) |
| 1017 |
{ |
| 1018 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DataTypeIndex, value); |
| 1019 |
} |
| 1020 |
uint32_t GED_GetSubRegIndex(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1021 |
{ |
| 1022 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1023 |
if (NULL == result) result = &localResult; |
| 1024 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SubRegIndex, *result); |
| 1025 |
} |
| 1026 |
GED_RETURN_VALUE GED_SetSubRegIndex(ged_ins_t* ins, const uint32_t value) |
| 1027 |
{ |
| 1028 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SubRegIndex, value); |
| 1029 |
} |
| 1030 |
uint32_t GED_GetSrc0Index(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1031 |
{ |
| 1032 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1033 |
if (NULL == result) result = &localResult; |
| 1034 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0Index, *result); |
| 1035 |
} |
| 1036 |
GED_RETURN_VALUE GED_SetSrc0Index(ged_ins_t* ins, const uint32_t value) |
| 1037 |
{ |
| 1038 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0Index, value); |
| 1039 |
} |
| 1040 |
uint32_t GED_GetSrc1Index(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1041 |
{ |
| 1042 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1043 |
if (NULL == result) result = &localResult; |
| 1044 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1Index, *result); |
| 1045 |
} |
| 1046 |
GED_RETURN_VALUE GED_SetSrc1Index(ged_ins_t* ins, const uint32_t value) |
| 1047 |
{ |
| 1048 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1Index, value); |
| 1049 |
} |
| 1050 |
uint32_t GED_GetDescIndex(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1051 |
{ |
| 1052 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1053 |
if (NULL == result) result = &localResult; |
| 1054 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DescIndex, *result); |
| 1055 |
} |
| 1056 |
GED_RETURN_VALUE GED_SetDescIndex(ged_ins_t* ins, const uint32_t value) |
| 1057 |
{ |
| 1058 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DescIndex, value); |
| 1059 |
} |
| 1060 |
GED_REG_FILE GED_GetExDescRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1061 |
{ |
| 1062 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1063 |
if (NULL == result) result = &localResult; |
| 1064 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExDescRegFile, *result); |
| 1065 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 1066 |
} |
| 1067 |
GED_RETURN_VALUE GED_SetExDescRegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 1068 |
{ |
| 1069 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExDescRegFile, (const uint32_t)value); |
| 1070 |
} |
| 1071 |
GED_MATH_MACRO_EXT GED_GetDstMathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1072 |
{ |
| 1073 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1074 |
if (NULL == result) result = &localResult; |
| 1075 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstMathMacroExt, *result); |
| 1076 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MATH_MACRO_EXT)value : GED_MATH_MACRO_EXT_INVALID; |
| 1077 |
} |
| 1078 |
GED_RETURN_VALUE GED_SetDstMathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value) |
| 1079 |
{ |
| 1080 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstMathMacroExt, (const uint32_t)value); |
| 1081 |
} |
| 1082 |
GED_MATH_MACRO_EXT GED_GetSrc0MathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1083 |
{ |
| 1084 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1085 |
if (NULL == result) result = &localResult; |
| 1086 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0MathMacroExt, *result); |
| 1087 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MATH_MACRO_EXT)value : GED_MATH_MACRO_EXT_INVALID; |
| 1088 |
} |
| 1089 |
GED_RETURN_VALUE GED_SetSrc0MathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value) |
| 1090 |
{ |
| 1091 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0MathMacroExt, (const uint32_t)value); |
| 1092 |
} |
| 1093 |
GED_MATH_MACRO_EXT GED_GetSrc1MathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1094 |
{ |
| 1095 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1096 |
if (NULL == result) result = &localResult; |
| 1097 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1MathMacroExt, *result); |
| 1098 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MATH_MACRO_EXT)value : GED_MATH_MACRO_EXT_INVALID; |
| 1099 |
} |
| 1100 |
GED_RETURN_VALUE GED_SetSrc1MathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value) |
| 1101 |
{ |
| 1102 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1MathMacroExt, (const uint32_t)value); |
| 1103 |
} |
| 1104 |
GED_MATH_MACRO_EXT GED_GetSrc2MathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1105 |
{ |
| 1106 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1107 |
if (NULL == result) result = &localResult; |
| 1108 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2MathMacroExt, *result); |
| 1109 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MATH_MACRO_EXT)value : GED_MATH_MACRO_EXT_INVALID; |
| 1110 |
} |
| 1111 |
GED_RETURN_VALUE GED_SetSrc2MathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value) |
| 1112 |
{ |
| 1113 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2MathMacroExt, (const uint32_t)value); |
| 1114 |
} |
| 1115 |
GED_BRANCH_CTRL GED_GetBranchCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1116 |
{ |
| 1117 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1118 |
if (NULL == result) result = &localResult; |
| 1119 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_BranchCtrl, *result); |
| 1120 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_BRANCH_CTRL)value : GED_BRANCH_CTRL_INVALID; |
| 1121 |
} |
| 1122 |
GED_RETURN_VALUE GED_SetBranchCtrl(ged_ins_t* ins, const GED_BRANCH_CTRL value) |
| 1123 |
{ |
| 1124 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_BranchCtrl, (const uint32_t)value); |
| 1125 |
} |
| 1126 |
uint32_t GED_GetSourceIndex(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1127 |
{ |
| 1128 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1129 |
if (NULL == result) result = &localResult; |
| 1130 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SourceIndex, *result); |
| 1131 |
} |
| 1132 |
GED_RETURN_VALUE GED_SetSourceIndex(ged_ins_t* ins, const uint32_t value) |
| 1133 |
{ |
| 1134 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SourceIndex, value); |
| 1135 |
} |
| 1136 |
GED_DATA_TYPE GED_GetSrc2DataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1137 |
{ |
| 1138 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1139 |
if (NULL == result) result = &localResult; |
| 1140 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2DataType, *result); |
| 1141 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE)value : GED_DATA_TYPE_INVALID; |
| 1142 |
} |
| 1143 |
GED_RETURN_VALUE GED_SetSrc2DataType(ged_ins_t* ins, const GED_DATA_TYPE value) |
| 1144 |
{ |
| 1145 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2DataType, (const uint32_t)value); |
| 1146 |
} |
| 1147 |
GED_NO_SRC_DEP_SET GED_GetNoSrcDepSet(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1148 |
{ |
| 1149 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1150 |
if (NULL == result) result = &localResult; |
| 1151 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_NoSrcDepSet, *result); |
| 1152 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_NO_SRC_DEP_SET)value : GED_NO_SRC_DEP_SET_INVALID; |
| 1153 |
} |
| 1154 |
GED_RETURN_VALUE GED_SetNoSrcDepSet(ged_ins_t* ins, const GED_NO_SRC_DEP_SET value) |
| 1155 |
{ |
| 1156 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_NoSrcDepSet, (const uint32_t)value); |
| 1157 |
} |
| 1158 |
uint32_t GED_GetExFuncCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1159 |
{ |
| 1160 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1161 |
if (NULL == result) result = &localResult; |
| 1162 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExFuncCtrl, *result); |
| 1163 |
} |
| 1164 |
GED_RETURN_VALUE GED_SetExFuncCtrl(ged_ins_t* ins, const uint32_t value) |
| 1165 |
{ |
| 1166 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExFuncCtrl, value); |
| 1167 |
} |
| 1168 |
uint32_t GED_GetExMsgLength(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1169 |
{ |
| 1170 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1171 |
if (NULL == result) result = &localResult; |
| 1172 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExMsgLength, *result); |
| 1173 |
} |
| 1174 |
GED_RETURN_VALUE GED_SetExMsgLength(ged_ins_t* ins, const uint32_t value) |
| 1175 |
{ |
| 1176 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExMsgLength, value); |
| 1177 |
} |
| 1178 |
uint32_t GED_GetExDescAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1179 |
{ |
| 1180 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1181 |
if (NULL == result) result = &localResult; |
| 1182 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExDescAddrSubRegNum, *result); |
| 1183 |
} |
| 1184 |
GED_RETURN_VALUE GED_SetExDescAddrSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 1185 |
{ |
| 1186 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExDescAddrSubRegNum, value); |
| 1187 |
} |
| 1188 |
uint32_t GED_GetExDescRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1189 |
{ |
| 1190 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1191 |
if (NULL == result) result = &localResult; |
| 1192 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExDescRegNum, *result); |
| 1193 |
} |
| 1194 |
GED_RETURN_VALUE GED_SetExDescRegNum(ged_ins_t* ins, const uint32_t value) |
| 1195 |
{ |
| 1196 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExDescRegNum, value); |
| 1197 |
} |
| 1198 |
uint32_t GED_GetMsgDescCategory(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1199 |
{ |
| 1200 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1201 |
if (NULL == result) result = &localResult; |
| 1202 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDescCategory, *result); |
| 1203 |
} |
| 1204 |
GED_RETURN_VALUE GED_SetMsgDescCategory(ged_ins_t* ins, const uint32_t value) |
| 1205 |
{ |
| 1206 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDescCategory, value); |
| 1207 |
} |
| 1208 |
uint32_t GED_GetMsgDescScratchAddrOffset(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1209 |
{ |
| 1210 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1211 |
if (NULL == result) result = &localResult; |
| 1212 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDescScratchAddrOffset, *result); |
| 1213 |
} |
| 1214 |
GED_RETURN_VALUE GED_SetMsgDescScratchAddrOffset(ged_ins_t* ins, const uint32_t value) |
| 1215 |
{ |
| 1216 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDescScratchAddrOffset, value); |
| 1217 |
} |
| 1218 |
uint32_t GED_GetMsgDescScratchBlockSize(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1219 |
{ |
| 1220 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1221 |
if (NULL == result) result = &localResult; |
| 1222 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDescScratchBlockSize, *result); |
| 1223 |
} |
| 1224 |
GED_RETURN_VALUE GED_SetMsgDescScratchBlockSize(ged_ins_t* ins, const uint32_t value) |
| 1225 |
{ |
| 1226 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDescScratchBlockSize, value); |
| 1227 |
} |
| 1228 |
uint32_t GED_GetMsgDescScratchInvalidateAfterRead(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1229 |
{ |
| 1230 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1231 |
if (NULL == result) result = &localResult; |
| 1232 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDescScratchInvalidateAfterRead, *result); |
| 1233 |
} |
| 1234 |
GED_RETURN_VALUE GED_SetMsgDescScratchInvalidateAfterRead(ged_ins_t* ins, const uint32_t value) |
| 1235 |
{ |
| 1236 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDescScratchInvalidateAfterRead, value); |
| 1237 |
} |
| 1238 |
GED_CHANNEL_MODE GED_GetMsgDescScratchChannelMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1239 |
{ |
| 1240 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1241 |
if (NULL == result) result = &localResult; |
| 1242 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDescScratchChannelMode, *result); |
| 1243 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MODE)value : GED_CHANNEL_MODE_INVALID; |
| 1244 |
} |
| 1245 |
GED_RETURN_VALUE GED_SetMsgDescScratchChannelMode(ged_ins_t* ins, const GED_CHANNEL_MODE value) |
| 1246 |
{ |
| 1247 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDescScratchChannelMode, (const uint32_t)value); |
| 1248 |
} |
| 1249 |
GED_MESSAGE_TYPE GED_GetMsgDescScratchMessageType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1250 |
{ |
| 1251 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1252 |
if (NULL == result) result = &localResult; |
| 1253 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MsgDescScratchMessageType, *result); |
| 1254 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 1255 |
} |
| 1256 |
GED_RETURN_VALUE GED_SetMsgDescScratchMessageType(ged_ins_t* ins, const GED_MESSAGE_TYPE value) |
| 1257 |
{ |
| 1258 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MsgDescScratchMessageType, (const uint32_t)value); |
| 1259 |
} |
| 1260 |
GED_EXECUTION_DATA_TYPE GED_GetExecutionDataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1261 |
{ |
| 1262 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1263 |
if (NULL == result) result = &localResult; |
| 1264 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExecutionDataType, *result); |
| 1265 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_EXECUTION_DATA_TYPE)value : GED_EXECUTION_DATA_TYPE_INVALID; |
| 1266 |
} |
| 1267 |
GED_RETURN_VALUE GED_SetExecutionDataType(ged_ins_t* ins, const GED_EXECUTION_DATA_TYPE value) |
| 1268 |
{ |
| 1269 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExecutionDataType, (const uint32_t)value); |
| 1270 |
} |
| 1271 |
uint64_t GED_GetSrc0TernaryImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1272 |
{ |
| 1273 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1274 |
if (NULL == result) result = &localResult; |
| 1275 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsigned64Field(GED_INS_FIELD_Src0TernaryImm, *result); |
| 1276 |
} |
| 1277 |
GED_RETURN_VALUE GED_SetSrc0TernaryImm(ged_ins_t* ins, const uint64_t value) |
| 1278 |
{ |
| 1279 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsigned64Field(GED_INS_FIELD_Src0TernaryImm, value); |
| 1280 |
} |
| 1281 |
uint64_t GED_GetSrc2TernaryImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1282 |
{ |
| 1283 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1284 |
if (NULL == result) result = &localResult; |
| 1285 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsigned64Field(GED_INS_FIELD_Src2TernaryImm, *result); |
| 1286 |
} |
| 1287 |
GED_RETURN_VALUE GED_SetSrc2TernaryImm(ged_ins_t* ins, const uint64_t value) |
| 1288 |
{ |
| 1289 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsigned64Field(GED_INS_FIELD_Src2TernaryImm, value); |
| 1290 |
} |
| 1291 |
uint32_t GED_GetSrc2HorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1292 |
{ |
| 1293 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1294 |
if (NULL == result) result = &localResult; |
| 1295 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2HorzStride, *result); |
| 1296 |
} |
| 1297 |
GED_RETURN_VALUE GED_SetSrc2HorzStride(ged_ins_t* ins, const uint32_t value) |
| 1298 |
{ |
| 1299 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2HorzStride, value); |
| 1300 |
} |
| 1301 |
uint32_t GED_GetSWSB(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1302 |
{ |
| 1303 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1304 |
if (NULL == result) result = &localResult; |
| 1305 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SWSB, *result); |
| 1306 |
} |
| 1307 |
GED_RETURN_VALUE GED_SetSWSB(ged_ins_t* ins, const uint32_t value) |
| 1308 |
{ |
| 1309 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SWSB, value); |
| 1310 |
} |
| 1311 |
uint32_t GED_GetSrc1IsImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1312 |
{ |
| 1313 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1314 |
if (NULL == result) result = &localResult; |
| 1315 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1IsImm, *result); |
| 1316 |
} |
| 1317 |
GED_RETURN_VALUE GED_SetSrc1IsImm(ged_ins_t* ins, const uint32_t value) |
| 1318 |
{ |
| 1319 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1IsImm, value); |
| 1320 |
} |
| 1321 |
uint32_t GED_GetSrc0IsImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1322 |
{ |
| 1323 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1324 |
if (NULL == result) result = &localResult; |
| 1325 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0IsImm, *result); |
| 1326 |
} |
| 1327 |
GED_RETURN_VALUE GED_SetSrc0IsImm(ged_ins_t* ins, const uint32_t value) |
| 1328 |
{ |
| 1329 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0IsImm, value); |
| 1330 |
} |
| 1331 |
uint32_t GED_GetSrc0SubRegNumByte(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1332 |
{ |
| 1333 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1334 |
if (NULL == result) result = &localResult; |
| 1335 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0SubRegNumByte, *result); |
| 1336 |
} |
| 1337 |
GED_RETURN_VALUE GED_SetSrc0SubRegNumByte(ged_ins_t* ins, const uint32_t value) |
| 1338 |
{ |
| 1339 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0SubRegNumByte, value); |
| 1340 |
} |
| 1341 |
GED_SYNC_FC GED_GetSyncFC(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1342 |
{ |
| 1343 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1344 |
if (NULL == result) result = &localResult; |
| 1345 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SyncFC, *result); |
| 1346 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SYNC_FC)value : GED_SYNC_FC_INVALID; |
| 1347 |
} |
| 1348 |
GED_RETURN_VALUE GED_SetSyncFC(ged_ins_t* ins, const GED_SYNC_FC value) |
| 1349 |
{ |
| 1350 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SyncFC, (const uint32_t)value); |
| 1351 |
} |
| 1352 |
GED_FUSION_CTRL GED_GetFusionCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1353 |
{ |
| 1354 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1355 |
if (NULL == result) result = &localResult; |
| 1356 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_FusionCtrl, *result); |
| 1357 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_FUSION_CTRL)value : GED_FUSION_CTRL_INVALID; |
| 1358 |
} |
| 1359 |
GED_RETURN_VALUE GED_SetFusionCtrl(ged_ins_t* ins, const GED_FUSION_CTRL value) |
| 1360 |
{ |
| 1361 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_FusionCtrl, (const uint32_t)value); |
| 1362 |
} |
| 1363 |
uint32_t GED_GetDataTypeIndexNoDep(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1364 |
{ |
| 1365 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1366 |
if (NULL == result) result = &localResult; |
| 1367 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DataTypeIndexNoDep, *result); |
| 1368 |
} |
| 1369 |
GED_RETURN_VALUE GED_SetDataTypeIndexNoDep(ged_ins_t* ins, const uint32_t value) |
| 1370 |
{ |
| 1371 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DataTypeIndexNoDep, value); |
| 1372 |
} |
| 1373 |
uint32_t GED_GetCompactedImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1374 |
{ |
| 1375 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1376 |
if (NULL == result) result = &localResult; |
| 1377 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_CompactedImm, *result); |
| 1378 |
} |
| 1379 |
GED_RETURN_VALUE GED_SetCompactedImm(ged_ins_t* ins, const uint32_t value) |
| 1380 |
{ |
| 1381 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_CompactedImm, value); |
| 1382 |
} |
| 1383 |
uint32_t GED_GetRepeatCount(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1384 |
{ |
| 1385 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1386 |
if (NULL == result) result = &localResult; |
| 1387 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_RepeatCount, *result); |
| 1388 |
} |
| 1389 |
GED_RETURN_VALUE GED_SetRepeatCount(ged_ins_t* ins, const uint32_t value) |
| 1390 |
{ |
| 1391 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_RepeatCount, value); |
| 1392 |
} |
| 1393 |
uint32_t GED_GetSystolicDepth(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1394 |
{ |
| 1395 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1396 |
if (NULL == result) result = &localResult; |
| 1397 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SystolicDepth, *result); |
| 1398 |
} |
| 1399 |
GED_RETURN_VALUE GED_SetSystolicDepth(ged_ins_t* ins, const uint32_t value) |
| 1400 |
{ |
| 1401 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SystolicDepth, value); |
| 1402 |
} |
| 1403 |
GED_PRECISION GED_GetSrc2Precision(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1404 |
{ |
| 1405 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1406 |
if (NULL == result) result = &localResult; |
| 1407 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2Precision, *result); |
| 1408 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_PRECISION)value : GED_PRECISION_INVALID; |
| 1409 |
} |
| 1410 |
GED_RETURN_VALUE GED_SetSrc2Precision(ged_ins_t* ins, const GED_PRECISION value) |
| 1411 |
{ |
| 1412 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2Precision, (const uint32_t)value); |
| 1413 |
} |
| 1414 |
GED_SUB_BYTE_PRECISION GED_GetSrc2SubBytePrecision(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1415 |
{ |
| 1416 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1417 |
if (NULL == result) result = &localResult; |
| 1418 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2SubBytePrecision, *result); |
| 1419 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SUB_BYTE_PRECISION)value : GED_SUB_BYTE_PRECISION_INVALID; |
| 1420 |
} |
| 1421 |
GED_RETURN_VALUE GED_SetSrc2SubBytePrecision(ged_ins_t* ins, const GED_SUB_BYTE_PRECISION value) |
| 1422 |
{ |
| 1423 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2SubBytePrecision, (const uint32_t)value); |
| 1424 |
} |
| 1425 |
GED_PRECISION GED_GetSrc1Precision(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1426 |
{ |
| 1427 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1428 |
if (NULL == result) result = &localResult; |
| 1429 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1Precision, *result); |
| 1430 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_PRECISION)value : GED_PRECISION_INVALID; |
| 1431 |
} |
| 1432 |
GED_RETURN_VALUE GED_SetSrc1Precision(ged_ins_t* ins, const GED_PRECISION value) |
| 1433 |
{ |
| 1434 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1Precision, (const uint32_t)value); |
| 1435 |
} |
| 1436 |
GED_SUB_BYTE_PRECISION GED_GetSrc1SubBytePrecision(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1437 |
{ |
| 1438 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1439 |
if (NULL == result) result = &localResult; |
| 1440 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1SubBytePrecision, *result); |
| 1441 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SUB_BYTE_PRECISION)value : GED_SUB_BYTE_PRECISION_INVALID; |
| 1442 |
} |
| 1443 |
GED_RETURN_VALUE GED_SetSrc1SubBytePrecision(ged_ins_t* ins, const GED_SUB_BYTE_PRECISION value) |
| 1444 |
{ |
| 1445 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1SubBytePrecision, (const uint32_t)value); |
| 1446 |
} |
| 1447 |
uint32_t GED_GetBfnFC(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1448 |
{ |
| 1449 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1450 |
if (NULL == result) result = &localResult; |
| 1451 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_BfnFC, *result); |
| 1452 |
} |
| 1453 |
GED_RETURN_VALUE GED_SetBfnFC(ged_ins_t* ins, const uint32_t value) |
| 1454 |
{ |
| 1455 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_BfnFC, value); |
| 1456 |
} |
| 1457 |
uint32_t GED_GetExBSO(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1458 |
{ |
| 1459 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1460 |
if (NULL == result) result = &localResult; |
| 1461 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ExBSO, *result); |
| 1462 |
} |
| 1463 |
GED_RETURN_VALUE GED_SetExBSO(ged_ins_t* ins, const uint32_t value) |
| 1464 |
{ |
| 1465 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ExBSO, value); |
| 1466 |
} |
| 1467 |
uint32_t GED_GetCPS(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1468 |
{ |
| 1469 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1470 |
if (NULL == result) result = &localResult; |
| 1471 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_CPS, *result); |
| 1472 |
} |
| 1473 |
GED_RETURN_VALUE GED_SetCPS(ged_ins_t* ins, const uint32_t value) |
| 1474 |
{ |
| 1475 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_CPS, value); |
| 1476 |
} |
| 1477 |
uint32_t GED_GetSrc1Length(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1478 |
{ |
| 1479 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1480 |
if (NULL == result) result = &localResult; |
| 1481 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1Length, *result); |
| 1482 |
} |
| 1483 |
GED_RETURN_VALUE GED_SetSrc1Length(ged_ins_t* ins, const uint32_t value) |
| 1484 |
{ |
| 1485 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1Length, value); |
| 1486 |
} |
| 1487 |
uint32_t GED_GetSrc2IsImm(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1488 |
{ |
| 1489 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1490 |
if (NULL == result) result = &localResult; |
| 1491 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2IsImm, *result); |
| 1492 |
} |
| 1493 |
GED_RETURN_VALUE GED_SetSrc2IsImm(ged_ins_t* ins, const uint32_t value) |
| 1494 |
{ |
| 1495 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2IsImm, value); |
| 1496 |
} |
| 1497 |
GED_REG_FILE GED_GetMetaRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1498 |
{ |
| 1499 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1500 |
if (NULL == result) result = &localResult; |
| 1501 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MetaRegFile, *result); |
| 1502 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 1503 |
} |
| 1504 |
GED_RETURN_VALUE GED_SetMetaRegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 1505 |
{ |
| 1506 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MetaRegFile, (const uint32_t)value); |
| 1507 |
} |
| 1508 |
uint32_t GED_GetMetaSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1509 |
{ |
| 1510 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1511 |
if (NULL == result) result = &localResult; |
| 1512 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MetaSubRegNum, *result); |
| 1513 |
} |
| 1514 |
GED_RETURN_VALUE GED_SetMetaSubRegNum(ged_ins_t* ins, const uint32_t value) |
| 1515 |
{ |
| 1516 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MetaSubRegNum, value); |
| 1517 |
} |
| 1518 |
uint32_t GED_GetMetaRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1519 |
{ |
| 1520 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1521 |
if (NULL == result) result = &localResult; |
| 1522 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_MetaRegNum, *result); |
| 1523 |
} |
| 1524 |
GED_RETURN_VALUE GED_SetMetaRegNum(ged_ins_t* ins, const uint32_t value) |
| 1525 |
{ |
| 1526 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_MetaRegNum, value); |
| 1527 |
} |
| 1528 |
uint32_t GED_GetDstRegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1529 |
{ |
| 1530 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1531 |
if (NULL == result) result = &localResult; |
| 1532 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstRegNum8, *result); |
| 1533 |
} |
| 1534 |
GED_RETURN_VALUE GED_SetDstRegNum8(ged_ins_t* ins, const uint32_t value) |
| 1535 |
{ |
| 1536 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstRegNum8, value); |
| 1537 |
} |
| 1538 |
uint32_t GED_GetSrc0RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1539 |
{ |
| 1540 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1541 |
if (NULL == result) result = &localResult; |
| 1542 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0RegNum8, *result); |
| 1543 |
} |
| 1544 |
GED_RETURN_VALUE GED_SetSrc0RegNum8(ged_ins_t* ins, const uint32_t value) |
| 1545 |
{ |
| 1546 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0RegNum8, value); |
| 1547 |
} |
| 1548 |
GED_LFSR_FC GED_GetLfsrFC(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1549 |
{ |
| 1550 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1551 |
if (NULL == result) result = &localResult; |
| 1552 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_LfsrFC, *result); |
| 1553 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_LFSR_FC)value : GED_LFSR_FC_INVALID; |
| 1554 |
} |
| 1555 |
GED_RETURN_VALUE GED_SetLfsrFC(ged_ins_t* ins, const GED_LFSR_FC value) |
| 1556 |
{ |
| 1557 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_LfsrFC, (const uint32_t)value); |
| 1558 |
} |
| 1559 |
GED_SHUFFLE_FC GED_GetShuffleFC(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1560 |
{ |
| 1561 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1562 |
if (NULL == result) result = &localResult; |
| 1563 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ShuffleFC, *result); |
| 1564 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SHUFFLE_FC)value : GED_SHUFFLE_FC_INVALID; |
| 1565 |
} |
| 1566 |
GED_RETURN_VALUE GED_SetShuffleFC(ged_ins_t* ins, const GED_SHUFFLE_FC value) |
| 1567 |
{ |
| 1568 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ShuffleFC, (const uint32_t)value); |
| 1569 |
} |
| 1570 |
uint32_t GED_GetSrc1RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1571 |
{ |
| 1572 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1573 |
if (NULL == result) result = &localResult; |
| 1574 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1RegNum8, *result); |
| 1575 |
} |
| 1576 |
GED_RETURN_VALUE GED_SetSrc1RegNum8(ged_ins_t* ins, const uint32_t value) |
| 1577 |
{ |
| 1578 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1RegNum8, value); |
| 1579 |
} |
| 1580 |
uint32_t GED_GetSrc1ScalarReg(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1581 |
{ |
| 1582 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1583 |
if (NULL == result) result = &localResult; |
| 1584 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src1ScalarReg, *result); |
| 1585 |
} |
| 1586 |
GED_RETURN_VALUE GED_SetSrc1ScalarReg(ged_ins_t* ins, const uint32_t value) |
| 1587 |
{ |
| 1588 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src1ScalarReg, value); |
| 1589 |
} |
| 1590 |
uint32_t GED_GetSrc2RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1591 |
{ |
| 1592 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1593 |
if (NULL == result) result = &localResult; |
| 1594 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2RegNum8, *result); |
| 1595 |
} |
| 1596 |
GED_RETURN_VALUE GED_SetSrc2RegNum8(ged_ins_t* ins, const uint32_t value) |
| 1597 |
{ |
| 1598 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2RegNum8, value); |
| 1599 |
} |
| 1600 |
uint32_t GED_GetFwdCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1601 |
{ |
| 1602 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1603 |
if (NULL == result) result = &localResult; |
| 1604 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_FwdCtrl, *result); |
| 1605 |
} |
| 1606 |
GED_RETURN_VALUE GED_SetFwdCtrl(ged_ins_t* ins, const uint32_t value) |
| 1607 |
{ |
| 1608 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_FwdCtrl, value); |
| 1609 |
} |
| 1610 |
GED_DNSCL_MODE GED_GetDnsclMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1611 |
{ |
| 1612 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1613 |
if (NULL == result) result = &localResult; |
| 1614 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DnsclMode, *result); |
| 1615 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DNSCL_MODE)value : GED_DNSCL_MODE_INVALID; |
| 1616 |
} |
| 1617 |
GED_RETURN_VALUE GED_SetDnsclMode(ged_ins_t* ins, const GED_DNSCL_MODE value) |
| 1618 |
{ |
| 1619 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DnsclMode, (const uint32_t)value); |
| 1620 |
} |
| 1621 |
GED_ROUNDING_MODE GED_GetRoundingMode(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1622 |
{ |
| 1623 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1624 |
if (NULL == result) result = &localResult; |
| 1625 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_RoundingMode, *result); |
| 1626 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ROUNDING_MODE)value : GED_ROUNDING_MODE_INVALID; |
| 1627 |
} |
| 1628 |
GED_RETURN_VALUE GED_SetRoundingMode(ged_ins_t* ins, const GED_ROUNDING_MODE value) |
| 1629 |
{ |
| 1630 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_RoundingMode, (const uint32_t)value); |
| 1631 |
} |
| 1632 |
GED_CONV_SRC_DATATYPE GED_GetConvSrcDataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1633 |
{ |
| 1634 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1635 |
if (NULL == result) result = &localResult; |
| 1636 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ConvSrcDataType, *result); |
| 1637 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CONV_SRC_DATATYPE)value : GED_CONV_SRC_DATATYPE_INVALID; |
| 1638 |
} |
| 1639 |
GED_RETURN_VALUE GED_SetConvSrcDataType(ged_ins_t* ins, const GED_CONV_SRC_DATATYPE value) |
| 1640 |
{ |
| 1641 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ConvSrcDataType, (const uint32_t)value); |
| 1642 |
} |
| 1643 |
GED_CONV_DST_DATATYPE GED_GetConvDstDataType(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1644 |
{ |
| 1645 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1646 |
if (NULL == result) result = &localResult; |
| 1647 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ConvDstDataType, *result); |
| 1648 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CONV_DST_DATATYPE)value : GED_CONV_DST_DATATYPE_INVALID; |
| 1649 |
} |
| 1650 |
GED_RETURN_VALUE GED_SetConvDstDataType(ged_ins_t* ins, const GED_CONV_DST_DATATYPE value) |
| 1651 |
{ |
| 1652 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ConvDstDataType, (const uint32_t)value); |
| 1653 |
} |
| 1654 |
uint32_t GED_GetSendSwitchCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1655 |
{ |
| 1656 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1657 |
if (NULL == result) result = &localResult; |
| 1658 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SendSwitchCtrl, *result); |
| 1659 |
} |
| 1660 |
GED_RETURN_VALUE GED_SetSendSwitchCtrl(ged_ins_t* ins, const uint32_t value) |
| 1661 |
{ |
| 1662 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SendSwitchCtrl, value); |
| 1663 |
} |
| 1664 |
uint32_t GED_GetIndMsgDesc0IsPresent(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1665 |
{ |
| 1666 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1667 |
if (NULL == result) result = &localResult; |
| 1668 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc0IsPresent, *result); |
| 1669 |
} |
| 1670 |
GED_RETURN_VALUE GED_SetIndMsgDesc0IsPresent(ged_ins_t* ins, const uint32_t value) |
| 1671 |
{ |
| 1672 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc0IsPresent, value); |
| 1673 |
} |
| 1674 |
uint32_t GED_GetIndMsgDesc1IsPresent(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1675 |
{ |
| 1676 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1677 |
if (NULL == result) result = &localResult; |
| 1678 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc1IsPresent, *result); |
| 1679 |
} |
| 1680 |
GED_RETURN_VALUE GED_SetIndMsgDesc1IsPresent(ged_ins_t* ins, const uint32_t value) |
| 1681 |
{ |
| 1682 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc1IsPresent, value); |
| 1683 |
} |
| 1684 |
uint64_t GED_GetMsgDesc64(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1685 |
{ |
| 1686 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1687 |
if (NULL == result) result = &localResult; |
| 1688 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsigned64Field(GED_INS_FIELD_MsgDesc64, *result); |
| 1689 |
} |
| 1690 |
GED_RETURN_VALUE GED_SetMsgDesc64(ged_ins_t* ins, const uint64_t value) |
| 1691 |
{ |
| 1692 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsigned64Field(GED_INS_FIELD_MsgDesc64, value); |
| 1693 |
} |
| 1694 |
uint32_t GED_GetIndMsgDesc1Addr(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1695 |
{ |
| 1696 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1697 |
if (NULL == result) result = &localResult; |
| 1698 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc1Addr, *result); |
| 1699 |
} |
| 1700 |
GED_RETURN_VALUE GED_SetIndMsgDesc1Addr(ged_ins_t* ins, const uint32_t value) |
| 1701 |
{ |
| 1702 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc1Addr, value); |
| 1703 |
} |
| 1704 |
uint32_t GED_GetIndMsgDesc0Addr(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1705 |
{ |
| 1706 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1707 |
if (NULL == result) result = &localResult; |
| 1708 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc0Addr, *result); |
| 1709 |
} |
| 1710 |
GED_RETURN_VALUE GED_SetIndMsgDesc0Addr(ged_ins_t* ins, const uint32_t value) |
| 1711 |
{ |
| 1712 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc0Addr, value); |
| 1713 |
} |
| 1714 |
uint32_t GED_GetSrc0Length(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1715 |
{ |
| 1716 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1717 |
if (NULL == result) result = &localResult; |
| 1718 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0Length, *result); |
| 1719 |
} |
| 1720 |
GED_RETURN_VALUE GED_SetSrc0Length(ged_ins_t* ins, const uint32_t value) |
| 1721 |
{ |
| 1722 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0Length, value); |
| 1723 |
} |
| 1724 |
GED_REG_FILE GED_GetSrc4RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1725 |
{ |
| 1726 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1727 |
if (NULL == result) result = &localResult; |
| 1728 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4RegFile, *result); |
| 1729 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 1730 |
} |
| 1731 |
GED_RETURN_VALUE GED_SetSrc4RegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 1732 |
{ |
| 1733 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4RegFile, (const uint32_t)value); |
| 1734 |
} |
| 1735 |
GED_REG_FILE GED_GetSrc3RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1736 |
{ |
| 1737 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1738 |
if (NULL == result) result = &localResult; |
| 1739 |
const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3RegFile, *result); |
| 1740 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID; |
| 1741 |
} |
| 1742 |
GED_RETURN_VALUE GED_SetSrc3RegFile(ged_ins_t* ins, const GED_REG_FILE value) |
| 1743 |
{ |
| 1744 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3RegFile, (const uint32_t)value); |
| 1745 |
} |
| 1746 |
uint32_t GED_GetSrc4RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1747 |
{ |
| 1748 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1749 |
if (NULL == result) result = &localResult; |
| 1750 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4RegNum, *result); |
| 1751 |
} |
| 1752 |
GED_RETURN_VALUE GED_SetSrc4RegNum(ged_ins_t* ins, const uint32_t value) |
| 1753 |
{ |
| 1754 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4RegNum, value); |
| 1755 |
} |
| 1756 |
uint32_t GED_GetSrc3RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1757 |
{ |
| 1758 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1759 |
if (NULL == result) result = &localResult; |
| 1760 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3RegNum, *result); |
| 1761 |
} |
| 1762 |
GED_RETURN_VALUE GED_SetSrc3RegNum(ged_ins_t* ins, const uint32_t value) |
| 1763 |
{ |
| 1764 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3RegNum, value); |
| 1765 |
} |
| 1766 |
uint32_t GED_GetSystolicDepthBlkScl(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1767 |
{ |
| 1768 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1769 |
if (NULL == result) result = &localResult; |
| 1770 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SystolicDepthBlkScl, *result); |
| 1771 |
} |
| 1772 |
GED_RETURN_VALUE GED_SetSystolicDepthBlkScl(ged_ins_t* ins, const uint32_t value) |
| 1773 |
{ |
| 1774 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SystolicDepthBlkScl, value); |
| 1775 |
} |
| 1776 |
uint32_t GED_GetSrc4SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1777 |
{ |
| 1778 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1779 |
if (NULL == result) result = &localResult; |
| 1780 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4SubRegNum, *result); |
| 1781 |
} |
| 1782 |
GED_RETURN_VALUE GED_SetSrc4SubRegNum(ged_ins_t* ins, const uint32_t value) |
| 1783 |
{ |
| 1784 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4SubRegNum, value); |
| 1785 |
} |
| 1786 |
uint32_t GED_GetSrc3SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1787 |
{ |
| 1788 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1789 |
if (NULL == result) result = &localResult; |
| 1790 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3SubRegNum, *result); |
| 1791 |
} |
| 1792 |
GED_RETURN_VALUE GED_SetSrc3SubRegNum(ged_ins_t* ins, const uint32_t value) |
| 1793 |
{ |
| 1794 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3SubRegNum, value); |
| 1795 |
} |
| 1796 |
uint32_t GED_GetSrc3RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1797 |
{ |
| 1798 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1799 |
if (NULL == result) result = &localResult; |
| 1800 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3RegNum8, *result); |
| 1801 |
} |
| 1802 |
GED_RETURN_VALUE GED_SetSrc3RegNum8(ged_ins_t* ins, const uint32_t value) |
| 1803 |
{ |
| 1804 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3RegNum8, value); |
| 1805 |
} |
| 1806 |
uint32_t GED_GetSrc4RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result) |
| 1807 |
{ |
| 1808 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 1809 |
if (NULL == result) result = &localResult; |
| 1810 |
return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4RegNum8, *result); |
| 1811 |
} |
| 1812 |
GED_RETURN_VALUE GED_SetSrc4RegNum8(ged_ins_t* ins, const uint32_t value) |
| 1813 |
{ |
| 1814 |
return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4RegNum8, value); |
| 1815 |
} |
| 1816 |
uint32_t GED_GetIndexedIndMsgDescAddr(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1817 |
{ |
| 1818 |
if (0 == index) return GED_GetIndMsgDesc0Addr(ins, result); |
| 1819 |
if (1 == index) return GED_GetIndMsgDesc1Addr(ins, result); |
| 1820 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1821 |
return (uint32_t)-1; |
| 1822 |
} |
| 1823 |
GED_RETURN_VALUE GED_SetIndexedIndMsgDescAddr(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1824 |
{ |
| 1825 |
if (0 == index) return GED_SetIndMsgDesc0Addr(ins, value); |
| 1826 |
if (1 == index) return GED_SetIndMsgDesc1Addr(ins, value); |
| 1827 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1828 |
} |
| 1829 |
int32_t GED_GetIndexedSrcAddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1830 |
{ |
| 1831 |
if (0 == index) return GED_GetSrc0AddrImm(ins, result); |
| 1832 |
if (1 == index) return GED_GetSrc1AddrImm(ins, result); |
| 1833 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1834 |
return (int32_t)-1; |
| 1835 |
} |
| 1836 |
GED_RETURN_VALUE GED_SetIndexedSrcAddrImm(ged_ins_t* ins, const int32_t value, const uint8_t index) |
| 1837 |
{ |
| 1838 |
if (0 == index) return GED_SetSrc0AddrImm(ins, value); |
| 1839 |
if (1 == index) return GED_SetSrc1AddrImm(ins, value); |
| 1840 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1841 |
} |
| 1842 |
GED_ADDR_MODE GED_GetIndexedSrcAddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1843 |
{ |
| 1844 |
if (0 == index) return GED_GetSrc0AddrMode(ins, result); |
| 1845 |
if (1 == index) return GED_GetSrc1AddrMode(ins, result); |
| 1846 |
if (2 == index) return GED_GetSrc2AddrMode(ins, result); |
| 1847 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1848 |
return GED_ADDR_MODE_INVALID; |
| 1849 |
} |
| 1850 |
GED_RETURN_VALUE GED_SetIndexedSrcAddrMode(ged_ins_t* ins, const GED_ADDR_MODE value, const uint8_t index) |
| 1851 |
{ |
| 1852 |
if (0 == index) return GED_SetSrc0AddrMode(ins, value); |
| 1853 |
if (1 == index) return GED_SetSrc1AddrMode(ins, value); |
| 1854 |
if (2 == index) return GED_SetSrc2AddrMode(ins, value); |
| 1855 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1856 |
} |
| 1857 |
uint32_t GED_GetIndexedSrcAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1858 |
{ |
| 1859 |
if (0 == index) return GED_GetSrc0AddrSubRegNum(ins, result); |
| 1860 |
if (1 == index) return GED_GetSrc1AddrSubRegNum(ins, result); |
| 1861 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1862 |
return (uint32_t)-1; |
| 1863 |
} |
| 1864 |
GED_RETURN_VALUE GED_SetIndexedSrcAddrSubRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1865 |
{ |
| 1866 |
if (0 == index) return GED_SetSrc0AddrSubRegNum(ins, value); |
| 1867 |
if (1 == index) return GED_SetSrc1AddrSubRegNum(ins, value); |
| 1868 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1869 |
} |
| 1870 |
uint32_t GED_GetIndexedSrcChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1871 |
{ |
| 1872 |
if (0 == index) return GED_GetSrc0ChanSel(ins, result); |
| 1873 |
if (1 == index) return GED_GetSrc1ChanSel(ins, result); |
| 1874 |
if (2 == index) return GED_GetSrc2ChanSel(ins, result); |
| 1875 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1876 |
return (uint32_t)-1; |
| 1877 |
} |
| 1878 |
GED_RETURN_VALUE GED_SetIndexedSrcChanSel(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1879 |
{ |
| 1880 |
if (0 == index) return GED_SetSrc0ChanSel(ins, value); |
| 1881 |
if (1 == index) return GED_SetSrc1ChanSel(ins, value); |
| 1882 |
if (2 == index) return GED_SetSrc2ChanSel(ins, value); |
| 1883 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1884 |
} |
| 1885 |
GED_DATA_TYPE GED_GetIndexedSrcDataType(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1886 |
{ |
| 1887 |
if (0 == index) return GED_GetSrc0DataType(ins, result); |
| 1888 |
if (1 == index) return GED_GetSrc1DataType(ins, result); |
| 1889 |
if (2 == index) return GED_GetSrc2DataType(ins, result); |
| 1890 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1891 |
return GED_DATA_TYPE_INVALID; |
| 1892 |
} |
| 1893 |
GED_RETURN_VALUE GED_SetIndexedSrcDataType(ged_ins_t* ins, const GED_DATA_TYPE value, const uint8_t index) |
| 1894 |
{ |
| 1895 |
if (0 == index) return GED_SetSrc0DataType(ins, value); |
| 1896 |
if (1 == index) return GED_SetSrc1DataType(ins, value); |
| 1897 |
if (2 == index) return GED_SetSrc2DataType(ins, value); |
| 1898 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1899 |
} |
| 1900 |
uint32_t GED_GetIndexedSrcHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1901 |
{ |
| 1902 |
if (0 == index) return GED_GetSrc0HorzStride(ins, result); |
| 1903 |
if (1 == index) return GED_GetSrc1HorzStride(ins, result); |
| 1904 |
if (2 == index) return GED_GetSrc2HorzStride(ins, result); |
| 1905 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1906 |
return (uint32_t)-1; |
| 1907 |
} |
| 1908 |
GED_RETURN_VALUE GED_SetIndexedSrcHorzStride(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1909 |
{ |
| 1910 |
if (0 == index) return GED_SetSrc0HorzStride(ins, value); |
| 1911 |
if (1 == index) return GED_SetSrc1HorzStride(ins, value); |
| 1912 |
if (2 == index) return GED_SetSrc2HorzStride(ins, value); |
| 1913 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1914 |
} |
| 1915 |
uint32_t GED_GetIndexedSrcIndex(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1916 |
{ |
| 1917 |
if (0 == index) return GED_GetSrc0Index(ins, result); |
| 1918 |
if (1 == index) return GED_GetSrc1Index(ins, result); |
| 1919 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1920 |
return (uint32_t)-1; |
| 1921 |
} |
| 1922 |
GED_RETURN_VALUE GED_SetIndexedSrcIndex(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1923 |
{ |
| 1924 |
if (0 == index) return GED_SetSrc0Index(ins, value); |
| 1925 |
if (1 == index) return GED_SetSrc1Index(ins, value); |
| 1926 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1927 |
} |
| 1928 |
uint32_t GED_GetIndexedSrcIsImm(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1929 |
{ |
| 1930 |
if (0 == index) return GED_GetSrc0IsImm(ins, result); |
| 1931 |
if (1 == index) return GED_GetSrc1IsImm(ins, result); |
| 1932 |
if (2 == index) return GED_GetSrc2IsImm(ins, result); |
| 1933 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1934 |
return (uint32_t)-1; |
| 1935 |
} |
| 1936 |
GED_RETURN_VALUE GED_SetIndexedSrcIsImm(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1937 |
{ |
| 1938 |
if (0 == index) return GED_SetSrc0IsImm(ins, value); |
| 1939 |
if (1 == index) return GED_SetSrc1IsImm(ins, value); |
| 1940 |
if (2 == index) return GED_SetSrc2IsImm(ins, value); |
| 1941 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1942 |
} |
| 1943 |
uint32_t GED_GetIndexedIndMsgDescIsPresent(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1944 |
{ |
| 1945 |
if (0 == index) return GED_GetIndMsgDesc0IsPresent(ins, result); |
| 1946 |
if (1 == index) return GED_GetIndMsgDesc1IsPresent(ins, result); |
| 1947 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1948 |
return (uint32_t)-1; |
| 1949 |
} |
| 1950 |
GED_RETURN_VALUE GED_SetIndexedIndMsgDescIsPresent(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 1951 |
{ |
| 1952 |
if (0 == index) return GED_SetIndMsgDesc0IsPresent(ins, value); |
| 1953 |
if (1 == index) return GED_SetIndMsgDesc1IsPresent(ins, value); |
| 1954 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1955 |
} |
| 1956 |
GED_MATH_MACRO_EXT GED_GetIndexedSrcMathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1957 |
{ |
| 1958 |
if (0 == index) return GED_GetSrc0MathMacroExt(ins, result); |
| 1959 |
if (1 == index) return GED_GetSrc1MathMacroExt(ins, result); |
| 1960 |
if (2 == index) return GED_GetSrc2MathMacroExt(ins, result); |
| 1961 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1962 |
return GED_MATH_MACRO_EXT_INVALID; |
| 1963 |
} |
| 1964 |
GED_RETURN_VALUE GED_SetIndexedSrcMathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value, const uint8_t index) |
| 1965 |
{ |
| 1966 |
if (0 == index) return GED_SetSrc0MathMacroExt(ins, value); |
| 1967 |
if (1 == index) return GED_SetSrc1MathMacroExt(ins, value); |
| 1968 |
if (2 == index) return GED_SetSrc2MathMacroExt(ins, value); |
| 1969 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1970 |
} |
| 1971 |
GED_REG_FILE GED_GetIndexedSrcRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1972 |
{ |
| 1973 |
if (0 == index) return GED_GetSrc0RegFile(ins, result); |
| 1974 |
if (1 == index) return GED_GetSrc1RegFile(ins, result); |
| 1975 |
if (2 == index) return GED_GetSrc2RegFile(ins, result); |
| 1976 |
if (3 == index) return GED_GetSrc3RegFile(ins, result); |
| 1977 |
if (4 == index) return GED_GetSrc4RegFile(ins, result); |
| 1978 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1979 |
return GED_REG_FILE_INVALID; |
| 1980 |
} |
| 1981 |
GED_RETURN_VALUE GED_SetIndexedSrcRegFile(ged_ins_t* ins, const GED_REG_FILE value, const uint8_t index) |
| 1982 |
{ |
| 1983 |
if (0 == index) return GED_SetSrc0RegFile(ins, value); |
| 1984 |
if (1 == index) return GED_SetSrc1RegFile(ins, value); |
| 1985 |
if (2 == index) return GED_SetSrc2RegFile(ins, value); |
| 1986 |
if (3 == index) return GED_SetSrc3RegFile(ins, value); |
| 1987 |
if (4 == index) return GED_SetSrc4RegFile(ins, value); |
| 1988 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 1989 |
} |
| 1990 |
uint32_t GED_GetIndexedSrcRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 1991 |
{ |
| 1992 |
if (0 == index) return GED_GetSrc0RegNum(ins, result); |
| 1993 |
if (1 == index) return GED_GetSrc1RegNum(ins, result); |
| 1994 |
if (2 == index) return GED_GetSrc2RegNum(ins, result); |
| 1995 |
if (3 == index) return GED_GetSrc3RegNum(ins, result); |
| 1996 |
if (4 == index) return GED_GetSrc4RegNum(ins, result); |
| 1997 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 1998 |
return (uint32_t)-1; |
| 1999 |
} |
| 2000 |
GED_RETURN_VALUE GED_SetIndexedSrcRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 2001 |
{ |
| 2002 |
if (0 == index) return GED_SetSrc0RegNum(ins, value); |
| 2003 |
if (1 == index) return GED_SetSrc1RegNum(ins, value); |
| 2004 |
if (2 == index) return GED_SetSrc2RegNum(ins, value); |
| 2005 |
if (3 == index) return GED_SetSrc3RegNum(ins, value); |
| 2006 |
if (4 == index) return GED_SetSrc4RegNum(ins, value); |
| 2007 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2008 |
} |
| 2009 |
GED_REP_CTRL GED_GetIndexedSrcRepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 2010 |
{ |
| 2011 |
if (0 == index) return GED_GetSrc0RepCtrl(ins, result); |
| 2012 |
if (1 == index) return GED_GetSrc1RepCtrl(ins, result); |
| 2013 |
if (2 == index) return GED_GetSrc2RepCtrl(ins, result); |
| 2014 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 2015 |
return GED_REP_CTRL_INVALID; |
| 2016 |
} |
| 2017 |
GED_RETURN_VALUE GED_SetIndexedSrcRepCtrl(ged_ins_t* ins, const GED_REP_CTRL value, const uint8_t index) |
| 2018 |
{ |
| 2019 |
if (0 == index) return GED_SetSrc0RepCtrl(ins, value); |
| 2020 |
if (1 == index) return GED_SetSrc1RepCtrl(ins, value); |
| 2021 |
if (2 == index) return GED_SetSrc2RepCtrl(ins, value); |
| 2022 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2023 |
} |
| 2024 |
GED_SRC_MOD GED_GetIndexedSrcSrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 2025 |
{ |
| 2026 |
if (0 == index) return GED_GetSrc0SrcMod(ins, result); |
| 2027 |
if (1 == index) return GED_GetSrc1SrcMod(ins, result); |
| 2028 |
if (2 == index) return GED_GetSrc2SrcMod(ins, result); |
| 2029 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 2030 |
return GED_SRC_MOD_INVALID; |
| 2031 |
} |
| 2032 |
GED_RETURN_VALUE GED_SetIndexedSrcSrcMod(ged_ins_t* ins, const GED_SRC_MOD value, const uint8_t index) |
| 2033 |
{ |
| 2034 |
if (0 == index) return GED_SetSrc0SrcMod(ins, value); |
| 2035 |
if (1 == index) return GED_SetSrc1SrcMod(ins, value); |
| 2036 |
if (2 == index) return GED_SetSrc2SrcMod(ins, value); |
| 2037 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2038 |
} |
| 2039 |
uint32_t GED_GetIndexedSrcSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 2040 |
{ |
| 2041 |
if (0 == index) return GED_GetSrc0SubRegNum(ins, result); |
| 2042 |
if (1 == index) return GED_GetSrc1SubRegNum(ins, result); |
| 2043 |
if (2 == index) return GED_GetSrc2SubRegNum(ins, result); |
| 2044 |
if (3 == index) return GED_GetSrc3SubRegNum(ins, result); |
| 2045 |
if (4 == index) return GED_GetSrc4SubRegNum(ins, result); |
| 2046 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 2047 |
return (uint32_t)-1; |
| 2048 |
} |
| 2049 |
GED_RETURN_VALUE GED_SetIndexedSrcSubRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 2050 |
{ |
| 2051 |
if (0 == index) return GED_SetSrc0SubRegNum(ins, value); |
| 2052 |
if (1 == index) return GED_SetSrc1SubRegNum(ins, value); |
| 2053 |
if (2 == index) return GED_SetSrc2SubRegNum(ins, value); |
| 2054 |
if (3 == index) return GED_SetSrc3SubRegNum(ins, value); |
| 2055 |
if (4 == index) return GED_SetSrc4SubRegNum(ins, value); |
| 2056 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2057 |
} |
| 2058 |
uint32_t GED_GetIndexedSrcSubRegNumByte(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 2059 |
{ |
| 2060 |
if (0 == index) return GED_GetSrc0SubRegNumByte(ins, result); |
| 2061 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 2062 |
return (uint32_t)-1; |
| 2063 |
} |
| 2064 |
GED_RETURN_VALUE GED_SetIndexedSrcSubRegNumByte(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 2065 |
{ |
| 2066 |
if (0 == index) return GED_SetSrc0SubRegNumByte(ins, value); |
| 2067 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2068 |
} |
| 2069 |
uint32_t GED_GetIndexedSrcVertStride(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 2070 |
{ |
| 2071 |
if (0 == index) return GED_GetSrc0VertStride(ins, result); |
| 2072 |
if (1 == index) return GED_GetSrc1VertStride(ins, result); |
| 2073 |
if (2 == index) return GED_GetSrc2VertStride(ins, result); |
| 2074 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 2075 |
return (uint32_t)-1; |
| 2076 |
} |
| 2077 |
GED_RETURN_VALUE GED_SetIndexedSrcVertStride(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 2078 |
{ |
| 2079 |
if (0 == index) return GED_SetSrc0VertStride(ins, value); |
| 2080 |
if (1 == index) return GED_SetSrc1VertStride(ins, value); |
| 2081 |
if (2 == index) return GED_SetSrc2VertStride(ins, value); |
| 2082 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2083 |
} |
| 2084 |
uint32_t GED_GetIndexedSrcWidth(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index) |
| 2085 |
{ |
| 2086 |
if (0 == index) return GED_GetSrc0Width(ins, result); |
| 2087 |
if (1 == index) return GED_GetSrc1Width(ins, result); |
| 2088 |
if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND; |
| 2089 |
return (uint32_t)-1; |
| 2090 |
} |
| 2091 |
GED_RETURN_VALUE GED_SetIndexedSrcWidth(ged_ins_t* ins, const uint32_t value, const uint8_t index) |
| 2092 |
{ |
| 2093 |
if (0 == index) return GED_SetSrc0Width(ins, value); |
| 2094 |
if (1 == index) return GED_SetSrc1Width(ins, value); |
| 2095 |
return GED_RETURN_VALUE_INVALID_OPERAND; |
| 2096 |
} |
| 2097 |
GED_ARCH_REG GED_GetArchReg(const uint32_t regNum, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2098 |
{ |
| 2099 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2100 |
if (NULL == result) result = &localResult; |
| 2101 |
const uint32_t value = GEDInterpreter::InterpretPosition(regNum, GED_PSEUDO_FIELD_ArchReg, modelId, *result); |
| 2102 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ARCH_REG)value : GED_ARCH_REG_INVALID; |
| 2103 |
} |
| 2104 |
GED_RETURN_VALUE GED_SetArchReg(uint32_t* regNum, const GED_MODEL modelId, const GED_ARCH_REG archReg) |
| 2105 |
{ |
| 2106 |
return GEDInterpreter::SetInterpretedPosition(*regNum, GED_PSEUDO_FIELD_ArchReg, modelId, archReg); |
| 2107 |
} |
| 2108 |
uint32_t GED_GetArchRegNum(const uint32_t regNum, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2109 |
{ |
| 2110 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2111 |
if (NULL == result) result = &localResult; |
| 2112 |
return GEDInterpreter::InterpretPosition(regNum, GED_PSEUDO_FIELD_ArchRegNum, modelId, *result); |
| 2113 |
} |
| 2114 |
GED_RETURN_VALUE GED_SetArchRegNum(uint32_t* regNum, const GED_MODEL modelId, const uint32_t archRegNum) |
| 2115 |
{ |
| 2116 |
return GEDInterpreter::SetInterpretedPosition(*regNum, GED_PSEUDO_FIELD_ArchRegNum, modelId, archRegNum); |
| 2117 |
} |
| 2118 |
GED_SWIZZLE GED_GetSwizzleX(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2119 |
{ |
| 2120 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2121 |
if (NULL == result) result = &localResult; |
| 2122 |
const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleX, modelId, *result); |
| 2123 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID; |
| 2124 |
} |
| 2125 |
GED_RETURN_VALUE GED_SetSwizzleX(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle) |
| 2126 |
{ |
| 2127 |
return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleX, modelId, swizzle); |
| 2128 |
} |
| 2129 |
GED_SWIZZLE GED_GetSwizzleY(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2130 |
{ |
| 2131 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2132 |
if (NULL == result) result = &localResult; |
| 2133 |
const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleY, modelId, *result); |
| 2134 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID; |
| 2135 |
} |
| 2136 |
GED_RETURN_VALUE GED_SetSwizzleY(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle) |
| 2137 |
{ |
| 2138 |
return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleY, modelId, swizzle); |
| 2139 |
} |
| 2140 |
GED_SWIZZLE GED_GetSwizzleZ(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2141 |
{ |
| 2142 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2143 |
if (NULL == result) result = &localResult; |
| 2144 |
const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleZ, modelId, *result); |
| 2145 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID; |
| 2146 |
} |
| 2147 |
GED_RETURN_VALUE GED_SetSwizzleZ(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle) |
| 2148 |
{ |
| 2149 |
return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleZ, modelId, swizzle); |
| 2150 |
} |
| 2151 |
GED_SWIZZLE GED_GetSwizzleW(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2152 |
{ |
| 2153 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2154 |
if (NULL == result) result = &localResult; |
| 2155 |
const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleW, modelId, *result); |
| 2156 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID; |
| 2157 |
} |
| 2158 |
GED_RETURN_VALUE GED_SetSwizzleW(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle) |
| 2159 |
{ |
| 2160 |
return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleW, modelId, swizzle); |
| 2161 |
} |
| 2162 |
uint32_t GED_GetMessageLength(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2163 |
{ |
| 2164 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2165 |
if (NULL == result) result = &localResult; |
| 2166 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageLength, modelId, *result); |
| 2167 |
} |
| 2168 |
GED_RETURN_VALUE GED_SetMessageLength(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t length) |
| 2169 |
{ |
| 2170 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageLength, modelId, length); |
| 2171 |
} |
| 2172 |
uint32_t GED_GetResponseLength(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2173 |
{ |
| 2174 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2175 |
if (NULL == result) result = &localResult; |
| 2176 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_ResponseLength, modelId, *result); |
| 2177 |
} |
| 2178 |
GED_RETURN_VALUE GED_SetResponseLength(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t length) |
| 2179 |
{ |
| 2180 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_ResponseLength, modelId, length); |
| 2181 |
} |
| 2182 |
GED_HEADER_PRESENT GED_GetHeaderPresent(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2183 |
{ |
| 2184 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2185 |
if (NULL == result) result = &localResult; |
| 2186 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_HeaderPresent, modelId, *result); |
| 2187 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_HEADER_PRESENT)value : GED_HEADER_PRESENT_INVALID; |
| 2188 |
} |
| 2189 |
GED_RETURN_VALUE GED_SetHeaderPresent(uint32_t* msgDesc, const GED_MODEL modelId, const GED_HEADER_PRESENT headerPresent) |
| 2190 |
{ |
| 2191 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_HeaderPresent, modelId, headerPresent); |
| 2192 |
} |
| 2193 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_SAMPLER(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2194 |
{ |
| 2195 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2196 |
if (NULL == result) result = &localResult; |
| 2197 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_SAMPLER, modelId, *result); |
| 2198 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2199 |
} |
| 2200 |
GED_RETURN_VALUE GED_SetMessageTypeDP_SAMPLER(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2201 |
{ |
| 2202 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_SAMPLER, modelId, messageType); |
| 2203 |
} |
| 2204 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_RC(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2205 |
{ |
| 2206 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2207 |
if (NULL == result) result = &localResult; |
| 2208 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_RC, modelId, *result); |
| 2209 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2210 |
} |
| 2211 |
GED_RETURN_VALUE GED_SetMessageTypeDP_RC(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2212 |
{ |
| 2213 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_RC, modelId, messageType); |
| 2214 |
} |
| 2215 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_CC(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2216 |
{ |
| 2217 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2218 |
if (NULL == result) result = &localResult; |
| 2219 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CC, modelId, *result); |
| 2220 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2221 |
} |
| 2222 |
GED_RETURN_VALUE GED_SetMessageTypeDP_CC(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2223 |
{ |
| 2224 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CC, modelId, messageType); |
| 2225 |
} |
| 2226 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC0(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2227 |
{ |
| 2228 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2229 |
if (NULL == result) result = &localResult; |
| 2230 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0, modelId, *result); |
| 2231 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2232 |
} |
| 2233 |
GED_RETURN_VALUE GED_SetMessageTypeDP_DC0(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2234 |
{ |
| 2235 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0, modelId, messageType); |
| 2236 |
} |
| 2237 |
GED_SLOT_GROUP GED_GetTypedSurfaceSlotGroup(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2238 |
{ |
| 2239 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2240 |
if (NULL == result) result = &localResult; |
| 2241 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_TypedSurfaceSlotGroup, modelId, *result); |
| 2242 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SLOT_GROUP)value : GED_SLOT_GROUP_INVALID; |
| 2243 |
} |
| 2244 |
GED_RETURN_VALUE GED_SetTypedSurfaceSlotGroup(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SLOT_GROUP slotGroup) |
| 2245 |
{ |
| 2246 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_TypedSurfaceSlotGroup, modelId, slotGroup); |
| 2247 |
} |
| 2248 |
GED_SLOT_GROUP GED_GetTypedAtomicSlotGroup(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2249 |
{ |
| 2250 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2251 |
if (NULL == result) result = &localResult; |
| 2252 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_TypedAtomicSlotGroup, modelId, *result); |
| 2253 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SLOT_GROUP)value : GED_SLOT_GROUP_INVALID; |
| 2254 |
} |
| 2255 |
GED_RETURN_VALUE GED_SetTypedAtomicSlotGroup(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SLOT_GROUP slotGroup) |
| 2256 |
{ |
| 2257 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_TypedAtomicSlotGroup, modelId, slotGroup); |
| 2258 |
} |
| 2259 |
GED_SIMDMODE GED_GetUntypedSurfaceSIMDMode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2260 |
{ |
| 2261 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2262 |
if (NULL == result) result = &localResult; |
| 2263 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_UntypedSurfaceSIMDMode, modelId, *result); |
| 2264 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SIMDMODE)value : GED_SIMDMODE_INVALID; |
| 2265 |
} |
| 2266 |
GED_RETURN_VALUE GED_SetUntypedSurfaceSIMDMode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SIMDMODE simdMode) |
| 2267 |
{ |
| 2268 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_UntypedSurfaceSIMDMode, modelId, simdMode); |
| 2269 |
} |
| 2270 |
GED_SIMDMODE GED_GetUntypedAtomicSIMDMode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2271 |
{ |
| 2272 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2273 |
if (NULL == result) result = &localResult; |
| 2274 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_UntypedAtomicSIMDMode, modelId, *result); |
| 2275 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SIMDMODE)value : GED_SIMDMODE_INVALID; |
| 2276 |
} |
| 2277 |
GED_RETURN_VALUE GED_SetUntypedAtomicSIMDMode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SIMDMODE simdMode) |
| 2278 |
{ |
| 2279 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_UntypedAtomicSIMDMode, modelId, simdMode); |
| 2280 |
} |
| 2281 |
uint32_t GED_GetInvalidateAfterRead(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2282 |
{ |
| 2283 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2284 |
if (NULL == result) result = &localResult; |
| 2285 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_InvalidateAfterRead, modelId, *result); |
| 2286 |
} |
| 2287 |
GED_RETURN_VALUE GED_SetInvalidateAfterRead(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t invalidateAfterReadEnable) |
| 2288 |
{ |
| 2289 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_InvalidateAfterRead, modelId, invalidateAfterReadEnable); |
| 2290 |
} |
| 2291 |
GED_BLOCK_SIZE GED_GetBlockSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2292 |
{ |
| 2293 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2294 |
if (NULL == result) result = &localResult; |
| 2295 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_BlockSize, modelId, *result); |
| 2296 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_BLOCK_SIZE)value : GED_BLOCK_SIZE_INVALID; |
| 2297 |
} |
| 2298 |
GED_RETURN_VALUE GED_SetBlockSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_BLOCK_SIZE blockSize) |
| 2299 |
{ |
| 2300 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_BlockSize, modelId, blockSize); |
| 2301 |
} |
| 2302 |
GED_CHANNEL_MASK GED_GetRedChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2303 |
{ |
| 2304 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2305 |
if (NULL == result) result = &localResult; |
| 2306 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_RedChannel, modelId, *result); |
| 2307 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID; |
| 2308 |
} |
| 2309 |
GED_RETURN_VALUE GED_SetRedChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel) |
| 2310 |
{ |
| 2311 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_RedChannel, modelId, channel); |
| 2312 |
} |
| 2313 |
GED_CHANNEL_MASK GED_GetGreenChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2314 |
{ |
| 2315 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2316 |
if (NULL == result) result = &localResult; |
| 2317 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_GreenChannel, modelId, *result); |
| 2318 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID; |
| 2319 |
} |
| 2320 |
GED_RETURN_VALUE GED_SetGreenChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel) |
| 2321 |
{ |
| 2322 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_GreenChannel, modelId, channel); |
| 2323 |
} |
| 2324 |
GED_CHANNEL_MASK GED_GetBlueChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2325 |
{ |
| 2326 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2327 |
if (NULL == result) result = &localResult; |
| 2328 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_BlueChannel, modelId, *result); |
| 2329 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID; |
| 2330 |
} |
| 2331 |
GED_RETURN_VALUE GED_SetBlueChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel) |
| 2332 |
{ |
| 2333 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_BlueChannel, modelId, channel); |
| 2334 |
} |
| 2335 |
GED_CHANNEL_MASK GED_GetAlphaChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2336 |
{ |
| 2337 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2338 |
if (NULL == result) result = &localResult; |
| 2339 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_AlphaChannel, modelId, *result); |
| 2340 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID; |
| 2341 |
} |
| 2342 |
GED_RETURN_VALUE GED_SetAlphaChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel) |
| 2343 |
{ |
| 2344 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_AlphaChannel, modelId, channel); |
| 2345 |
} |
| 2346 |
GED_RETURN_DATA_CONTROL GED_GetReturnDataControl(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2347 |
{ |
| 2348 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2349 |
if (NULL == result) result = &localResult; |
| 2350 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_ReturnDataControl, modelId, *result); |
| 2351 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_RETURN_DATA_CONTROL)value : GED_RETURN_DATA_CONTROL_INVALID; |
| 2352 |
} |
| 2353 |
GED_RETURN_VALUE GED_SetReturnDataControl(uint32_t* msgDesc, const GED_MODEL modelId, const GED_RETURN_DATA_CONTROL returnDataControl) |
| 2354 |
{ |
| 2355 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_ReturnDataControl, modelId, returnDataControl); |
| 2356 |
} |
| 2357 |
GED_ATOMIC_OPERATION_TYPE GED_GetAtomicOperationType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2358 |
{ |
| 2359 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2360 |
if (NULL == result) result = &localResult; |
| 2361 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_AtomicOperationType, modelId, *result); |
| 2362 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ATOMIC_OPERATION_TYPE)value : GED_ATOMIC_OPERATION_TYPE_INVALID; |
| 2363 |
} |
| 2364 |
GED_RETURN_VALUE GED_SetAtomicOperationType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_ATOMIC_OPERATION_TYPE operationType) |
| 2365 |
{ |
| 2366 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_AtomicOperationType, modelId, operationType); |
| 2367 |
} |
| 2368 |
GED_ATOMIC_OPERATION_TYPE GED_GetAtomicCounterOperationType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2369 |
{ |
| 2370 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2371 |
if (NULL == result) result = &localResult; |
| 2372 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_AtomicCounterOperationType, modelId, *result); |
| 2373 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ATOMIC_OPERATION_TYPE)value : GED_ATOMIC_OPERATION_TYPE_INVALID; |
| 2374 |
} |
| 2375 |
GED_RETURN_VALUE GED_SetAtomicCounterOperationType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_ATOMIC_OPERATION_TYPE |
| 2376 |
operationType) |
| 2377 |
{ |
| 2378 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_AtomicCounterOperationType, modelId, operationType); |
| 2379 |
} |
| 2380 |
GED_SUB_FUNC_ID GED_GetSubFuncID(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2381 |
{ |
| 2382 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2383 |
if (NULL == result) result = &localResult; |
| 2384 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_SubFuncID, modelId, *result); |
| 2385 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SUB_FUNC_ID)value : GED_SUB_FUNC_ID_INVALID; |
| 2386 |
} |
| 2387 |
GED_RETURN_VALUE GED_SetSubFuncID(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SUB_FUNC_ID subFuncID) |
| 2388 |
{ |
| 2389 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_SubFuncID, modelId, subFuncID); |
| 2390 |
} |
| 2391 |
uint32_t GED_GetBindingTableIndex(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2392 |
{ |
| 2393 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2394 |
if (NULL == result) result = &localResult; |
| 2395 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_BindingTableIndex, modelId, *result); |
| 2396 |
} |
| 2397 |
GED_RETURN_VALUE GED_SetBindingTableIndex(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t bti) |
| 2398 |
{ |
| 2399 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_BindingTableIndex, modelId, bti); |
| 2400 |
} |
| 2401 |
uint32_t GED_GetFuncControl(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2402 |
{ |
| 2403 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2404 |
if (NULL == result) result = &localResult; |
| 2405 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_FuncControl, modelId, *result); |
| 2406 |
} |
| 2407 |
GED_RETURN_VALUE GED_SetFuncControl(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t fc) |
| 2408 |
{ |
| 2409 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_FuncControl, modelId, fc); |
| 2410 |
} |
| 2411 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC1(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2412 |
{ |
| 2413 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2414 |
if (NULL == result) result = &localResult; |
| 2415 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC1, modelId, *result); |
| 2416 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2417 |
} |
| 2418 |
GED_RETURN_VALUE GED_SetMessageTypeDP_DC1(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2419 |
{ |
| 2420 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC1, modelId, messageType); |
| 2421 |
} |
| 2422 |
uint32_t GED_GetMessageTypeDP0Category(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2423 |
{ |
| 2424 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2425 |
if (NULL == result) result = &localResult; |
| 2426 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP0Category, modelId, *result); |
| 2427 |
} |
| 2428 |
GED_RETURN_VALUE GED_SetMessageTypeDP0Category(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t category) |
| 2429 |
{ |
| 2430 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP0Category, modelId, category); |
| 2431 |
} |
| 2432 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC0Legacy(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2433 |
{ |
| 2434 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2435 |
if (NULL == result) result = &localResult; |
| 2436 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0Legacy, modelId, *result); |
| 2437 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2438 |
} |
| 2439 |
GED_RETURN_VALUE GED_SetMessageTypeDP_DC0Legacy(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2440 |
{ |
| 2441 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0Legacy, modelId, messageType); |
| 2442 |
} |
| 2443 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC0ScratchBlock(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2444 |
{ |
| 2445 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2446 |
if (NULL == result) result = &localResult; |
| 2447 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0ScratchBlock, modelId, *result); |
| 2448 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2449 |
} |
| 2450 |
GED_RETURN_VALUE GED_SetMessageTypeDP_DC0ScratchBlock(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2451 |
{ |
| 2452 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0ScratchBlock, modelId, messageType); |
| 2453 |
} |
| 2454 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC2(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2455 |
{ |
| 2456 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2457 |
if (NULL == result) result = &localResult; |
| 2458 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC2, modelId, *result); |
| 2459 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2460 |
} |
| 2461 |
GED_RETURN_VALUE GED_SetMessageTypeDP_DC2(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2462 |
{ |
| 2463 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC2, modelId, messageType); |
| 2464 |
} |
| 2465 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_DCRO(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2466 |
{ |
| 2467 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2468 |
if (NULL == result) result = &localResult; |
| 2469 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DCRO, modelId, *result); |
| 2470 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2471 |
} |
| 2472 |
GED_RETURN_VALUE GED_SetMessageTypeDP_DCRO(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2473 |
{ |
| 2474 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DCRO, modelId, messageType); |
| 2475 |
} |
| 2476 |
uint32_t GED_GetExMessageLength(const uint32_t exMsgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2477 |
{ |
| 2478 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2479 |
if (NULL == result) result = &localResult; |
| 2480 |
return GEDInterpreter::InterpretPosition(exMsgDesc, GED_PSEUDO_FIELD_ExMessageLength, modelId, *result); |
| 2481 |
} |
| 2482 |
GED_RETURN_VALUE GED_SetExMessageLength(uint32_t* exMsgDesc, const GED_MODEL modelId, const uint32_t length) |
| 2483 |
{ |
| 2484 |
return GEDInterpreter::SetInterpretedPosition(*exMsgDesc, GED_PSEUDO_FIELD_ExMessageLength, modelId, length); |
| 2485 |
} |
| 2486 |
GED_DP_OPCODE GED_GetDPOpcode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2487 |
{ |
| 2488 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2489 |
if (NULL == result) result = &localResult; |
| 2490 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPOpcode, modelId, *result); |
| 2491 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_OPCODE)value : GED_DP_OPCODE_INVALID; |
| 2492 |
} |
| 2493 |
GED_RETURN_VALUE GED_SetDPOpcode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_OPCODE opcode) |
| 2494 |
{ |
| 2495 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPOpcode, modelId, opcode); |
| 2496 |
} |
| 2497 |
GED_DP_ADDR_SURFACE_TYPE GED_GetDPAddrSurfaceType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2498 |
{ |
| 2499 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2500 |
if (NULL == result) result = &localResult; |
| 2501 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPAddrSurfaceType, modelId, *result); |
| 2502 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_ADDR_SURFACE_TYPE)value : GED_DP_ADDR_SURFACE_TYPE_INVALID; |
| 2503 |
} |
| 2504 |
GED_RETURN_VALUE GED_SetDPAddrSurfaceType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_ADDR_SURFACE_TYPE AddrType) |
| 2505 |
{ |
| 2506 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPAddrSurfaceType, modelId, AddrType); |
| 2507 |
} |
| 2508 |
GED_DP_VECT_SIZE GED_GetDPVectSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2509 |
{ |
| 2510 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2511 |
if (NULL == result) result = &localResult; |
| 2512 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPVectSize, modelId, *result); |
| 2513 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_VECT_SIZE)value : GED_DP_VECT_SIZE_INVALID; |
| 2514 |
} |
| 2515 |
GED_RETURN_VALUE GED_SetDPVectSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_VECT_SIZE VectSize) |
| 2516 |
{ |
| 2517 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPVectSize, modelId, VectSize); |
| 2518 |
} |
| 2519 |
GED_DP_FLUSH_TYPE GED_GetDPFlushType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2520 |
{ |
| 2521 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2522 |
if (NULL == result) result = &localResult; |
| 2523 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPFlushType, modelId, *result); |
| 2524 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_FLUSH_TYPE)value : GED_DP_FLUSH_TYPE_INVALID; |
| 2525 |
} |
| 2526 |
GED_RETURN_VALUE GED_SetDPFlushType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_FLUSH_TYPE FlushType) |
| 2527 |
{ |
| 2528 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPFlushType, modelId, FlushType); |
| 2529 |
} |
| 2530 |
GED_DP_TRANSPOSE GED_GetDPTranspose(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2531 |
{ |
| 2532 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2533 |
if (NULL == result) result = &localResult; |
| 2534 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPTranspose, modelId, *result); |
| 2535 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_TRANSPOSE)value : GED_DP_TRANSPOSE_INVALID; |
| 2536 |
} |
| 2537 |
GED_RETURN_VALUE GED_SetDPTranspose(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_TRANSPOSE Transpose) |
| 2538 |
{ |
| 2539 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPTranspose, modelId, Transpose); |
| 2540 |
} |
| 2541 |
uint32_t GED_GetDPFlushRange(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2542 |
{ |
| 2543 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2544 |
if (NULL == result) result = &localResult; |
| 2545 |
return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPFlushRange, modelId, *result); |
| 2546 |
} |
| 2547 |
GED_RETURN_VALUE GED_SetDPFlushRange(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t range) |
| 2548 |
{ |
| 2549 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPFlushRange, modelId, range); |
| 2550 |
} |
| 2551 |
GED_DP_DATA_SIZE GED_GetDPDataSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2552 |
{ |
| 2553 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2554 |
if (NULL == result) result = &localResult; |
| 2555 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPDataSize, modelId, *result); |
| 2556 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_DATA_SIZE)value : GED_DP_DATA_SIZE_INVALID; |
| 2557 |
} |
| 2558 |
GED_RETURN_VALUE GED_SetDPDataSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_DATA_SIZE DataSize) |
| 2559 |
{ |
| 2560 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPDataSize, modelId, DataSize); |
| 2561 |
} |
| 2562 |
GED_DP_FENCE_SCOPE GED_GetDPFenceScope(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2563 |
{ |
| 2564 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2565 |
if (NULL == result) result = &localResult; |
| 2566 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPFenceScope, modelId, *result); |
| 2567 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_FENCE_SCOPE)value : GED_DP_FENCE_SCOPE_INVALID; |
| 2568 |
} |
| 2569 |
GED_RETURN_VALUE GED_SetDPFenceScope(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_FENCE_SCOPE FenceScope) |
| 2570 |
{ |
| 2571 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPFenceScope, modelId, FenceScope); |
| 2572 |
} |
| 2573 |
GED_DP_ADDR_SIZE GED_GetDPAddrSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2574 |
{ |
| 2575 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2576 |
if (NULL == result) result = &localResult; |
| 2577 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPAddrSize, modelId, *result); |
| 2578 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_ADDR_SIZE)value : GED_DP_ADDR_SIZE_INVALID; |
| 2579 |
} |
| 2580 |
GED_RETURN_VALUE GED_SetDPAddrSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_ADDR_SIZE AddrSize) |
| 2581 |
{ |
| 2582 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPAddrSize, modelId, AddrSize); |
| 2583 |
} |
| 2584 |
GED_DPCACHE_STORE GED_GetDPCacheStore(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2585 |
{ |
| 2586 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2587 |
if (NULL == result) result = &localResult; |
| 2588 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPCacheStore, modelId, *result); |
| 2589 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPCACHE_STORE)value : GED_DPCACHE_STORE_INVALID; |
| 2590 |
} |
| 2591 |
GED_RETURN_VALUE GED_SetDPCacheStore(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCACHE_STORE CacheStore) |
| 2592 |
{ |
| 2593 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPCacheStore, modelId, CacheStore); |
| 2594 |
} |
| 2595 |
GED_DPCACHE_LOAD GED_GetDPCacheLoad(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2596 |
{ |
| 2597 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2598 |
if (NULL == result) result = &localResult; |
| 2599 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPCacheLoad, modelId, *result); |
| 2600 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPCACHE_LOAD)value : GED_DPCACHE_LOAD_INVALID; |
| 2601 |
} |
| 2602 |
GED_RETURN_VALUE GED_SetDPCacheLoad(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCACHE_LOAD CacheLoad) |
| 2603 |
{ |
| 2604 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPCacheLoad, modelId, CacheLoad); |
| 2605 |
} |
| 2606 |
GED_DPADDR_REG_SIZE GED_GetDPAddrRegSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2607 |
{ |
| 2608 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2609 |
if (NULL == result) result = &localResult; |
| 2610 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPAddrRegSize, modelId, *result); |
| 2611 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPADDR_REG_SIZE)value : GED_DPADDR_REG_SIZE_INVALID; |
| 2612 |
} |
| 2613 |
GED_RETURN_VALUE GED_SetDPAddrRegSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPADDR_REG_SIZE AddrRegSize) |
| 2614 |
{ |
| 2615 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPAddrRegSize, modelId, AddrRegSize); |
| 2616 |
} |
| 2617 |
GED_DPONE_ADDR_REG GED_GetDPOneAddrReg(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2618 |
{ |
| 2619 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2620 |
if (NULL == result) result = &localResult; |
| 2621 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPOneAddrReg, modelId, *result); |
| 2622 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPONE_ADDR_REG)value : GED_DPONE_ADDR_REG_INVALID; |
| 2623 |
} |
| 2624 |
GED_RETURN_VALUE GED_SetDPOneAddrReg(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPONE_ADDR_REG OneAddrReg) |
| 2625 |
{ |
| 2626 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPOneAddrReg, modelId, OneAddrReg); |
| 2627 |
} |
| 2628 |
GED_DPCMASK GED_GetDPCmask(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2629 |
{ |
| 2630 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2631 |
if (NULL == result) result = &localResult; |
| 2632 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPCmask, modelId, *result); |
| 2633 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPCMASK)value : GED_DPCMASK_INVALID; |
| 2634 |
} |
| 2635 |
GED_RETURN_VALUE GED_SetDPCmask(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCMASK Cmask) |
| 2636 |
{ |
| 2637 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPCmask, modelId, Cmask); |
| 2638 |
} |
| 2639 |
GED_MESSAGE_TYPE GED_GetMessageTypeDP_CONST(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 2640 |
{ |
| 2641 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 2642 |
if (NULL == result) result = &localResult; |
| 2643 |
const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CONST, modelId, *result); |
| 2644 |
return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID; |
| 2645 |
} |
| 2646 |
GED_RETURN_VALUE GED_SetMessageTypeDP_CONST(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType) |
| 2647 |
{ |
| 2648 |
return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CONST, modelId, messageType); |
| 2649 |
} |
| 2650 |
|
| 2651 |
#if GED_EXPERIMENTAL |
| 2652 |
GED_RETURN_VALUE GED_SetRawBits(ged_ins_t* ins, uint8_t low, uint8_t high, const uint64_t value) |
| 2653 |
{ |
| 2654 |
return reinterpret_cast<GEDIns*>(ins)->SetRawBits(low, high, value); |
| 2655 |
} |
| 2656 |
#endif // GED_EXPERIMENTAL |
| 2657 |
|
| 2658 |
#ifndef GED_ACCESS_MODE_HIDDEN |
| 2659 |
const char* GED_GetAccessModeString(GED_ACCESS_MODE AccessModeValue) |
| 2660 |
{ |
| 2661 |
return AccessModeEnumeration[AccessModeValue]; |
| 2662 |
|
| 2663 |
} |
| 2664 |
#endif // GED_ACCESS_MODE_HIDDEN |
| 2665 |
|
| 2666 |
#ifndef GED_ACC_WR_CTRL_HIDDEN |
| 2667 |
const char* GED_GetAccWrCtrlString(GED_ACC_WR_CTRL AccWrCtrlValue) |
| 2668 |
{ |
| 2669 |
return AccWrCtrlEnumeration[AccWrCtrlValue]; |
| 2670 |
|
| 2671 |
} |
| 2672 |
#endif // GED_ACC_WR_CTRL_HIDDEN |
| 2673 |
|
| 2674 |
#ifndef GED_ADDR_MODE_HIDDEN |
| 2675 |
const char* GED_GetAddrModeString(GED_ADDR_MODE AddrModeValue) |
| 2676 |
{ |
| 2677 |
return AddrModeEnumeration[AddrModeValue]; |
| 2678 |
|
| 2679 |
} |
| 2680 |
#endif // GED_ADDR_MODE_HIDDEN |
| 2681 |
|
| 2682 |
#ifndef GED_ARCH_REG_HIDDEN |
| 2683 |
const char* GED_GetArchRegString(GED_ARCH_REG ArchRegValue) |
| 2684 |
{ |
| 2685 |
return ArchRegEnumeration[ArchRegValue]; |
| 2686 |
|
| 2687 |
} |
| 2688 |
#endif // GED_ARCH_REG_HIDDEN |
| 2689 |
|
| 2690 |
#ifndef GED_ATOMIC_OPERATION_TYPE_HIDDEN |
| 2691 |
const char* GED_GetAtomicOperationTypeString(GED_ATOMIC_OPERATION_TYPE AtomicOperationTypeValue) |
| 2692 |
{ |
| 2693 |
return AtomicOperationTypeEnumeration[AtomicOperationTypeValue]; |
| 2694 |
|
| 2695 |
} |
| 2696 |
#endif // GED_ATOMIC_OPERATION_TYPE_HIDDEN |
| 2697 |
|
| 2698 |
#ifndef GED_BLOCK_SIZE_HIDDEN |
| 2699 |
const char* GED_GetBlockSizeString(GED_BLOCK_SIZE BlockSizeValue) |
| 2700 |
{ |
| 2701 |
return BlockSizeEnumeration[BlockSizeValue]; |
| 2702 |
|
| 2703 |
} |
| 2704 |
#endif // GED_BLOCK_SIZE_HIDDEN |
| 2705 |
|
| 2706 |
#ifndef GED_BRANCH_CTRL_HIDDEN |
| 2707 |
const char* GED_GetBranchCtrlString(GED_BRANCH_CTRL BranchCtrlValue) |
| 2708 |
{ |
| 2709 |
return BranchCtrlEnumeration[BranchCtrlValue]; |
| 2710 |
|
| 2711 |
} |
| 2712 |
#endif // GED_BRANCH_CTRL_HIDDEN |
| 2713 |
|
| 2714 |
#ifndef GED_CHANNEL_MASK_HIDDEN |
| 2715 |
const char* GED_GetChannelMaskString(GED_CHANNEL_MASK ChannelMaskValue) |
| 2716 |
{ |
| 2717 |
return ChannelMaskEnumeration[ChannelMaskValue]; |
| 2718 |
|
| 2719 |
} |
| 2720 |
#endif // GED_CHANNEL_MASK_HIDDEN |
| 2721 |
|
| 2722 |
#ifndef GED_CHANNEL_MODE_HIDDEN |
| 2723 |
const char* GED_GetChannelModeString(GED_CHANNEL_MODE ChannelModeValue) |
| 2724 |
{ |
| 2725 |
return ChannelModeEnumeration[ChannelModeValue]; |
| 2726 |
|
| 2727 |
} |
| 2728 |
#endif // GED_CHANNEL_MODE_HIDDEN |
| 2729 |
|
| 2730 |
#ifndef GED_CHANNEL_OFFSET_HIDDEN |
| 2731 |
const char* GED_GetChannelOffsetString(GED_CHANNEL_OFFSET ChannelOffsetValue) |
| 2732 |
{ |
| 2733 |
return ChannelOffsetEnumeration[ChannelOffsetValue]; |
| 2734 |
|
| 2735 |
} |
| 2736 |
#endif // GED_CHANNEL_OFFSET_HIDDEN |
| 2737 |
|
| 2738 |
#ifndef GED_COND_MODIFIER_HIDDEN |
| 2739 |
const char* GED_GetCondModifierString(GED_COND_MODIFIER CondModifierValue) |
| 2740 |
{ |
| 2741 |
return CondModifierEnumeration[CondModifierValue]; |
| 2742 |
|
| 2743 |
} |
| 2744 |
#endif // GED_COND_MODIFIER_HIDDEN |
| 2745 |
|
| 2746 |
#ifndef GED_CONV_DST_DATATYPE_HIDDEN |
| 2747 |
const char* GED_GetConvDstDatatypeString(GED_CONV_DST_DATATYPE ConvDstDatatypeValue) |
| 2748 |
{ |
| 2749 |
return ConvDstDatatypeEnumeration[ConvDstDatatypeValue]; |
| 2750 |
|
| 2751 |
} |
| 2752 |
#endif // GED_CONV_DST_DATATYPE_HIDDEN |
| 2753 |
|
| 2754 |
#ifndef GED_CONV_SRC_DATATYPE_HIDDEN |
| 2755 |
const char* GED_GetConvSrcDatatypeString(GED_CONV_SRC_DATATYPE ConvSrcDatatypeValue) |
| 2756 |
{ |
| 2757 |
return ConvSrcDatatypeEnumeration[ConvSrcDatatypeValue]; |
| 2758 |
|
| 2759 |
} |
| 2760 |
#endif // GED_CONV_SRC_DATATYPE_HIDDEN |
| 2761 |
|
| 2762 |
#ifndef GED_DATA_TYPE_HIDDEN |
| 2763 |
const char* GED_GetDataTypeString(GED_DATA_TYPE DataTypeValue) |
| 2764 |
{ |
| 2765 |
return DataTypeEnumeration[DataTypeValue]; |
| 2766 |
|
| 2767 |
} |
| 2768 |
#endif // GED_DATA_TYPE_HIDDEN |
| 2769 |
|
| 2770 |
#ifndef GED_DEBUG_CTRL_HIDDEN |
| 2771 |
const char* GED_GetDebugCtrlString(GED_DEBUG_CTRL DebugCtrlValue) |
| 2772 |
{ |
| 2773 |
return DebugCtrlEnumeration[DebugCtrlValue]; |
| 2774 |
|
| 2775 |
} |
| 2776 |
#endif // GED_DEBUG_CTRL_HIDDEN |
| 2777 |
|
| 2778 |
#ifndef GED_DEP_CTRL_HIDDEN |
| 2779 |
const char* GED_GetDepCtrlString(GED_DEP_CTRL DepCtrlValue) |
| 2780 |
{ |
| 2781 |
return DepCtrlEnumeration[DepCtrlValue]; |
| 2782 |
|
| 2783 |
} |
| 2784 |
#endif // GED_DEP_CTRL_HIDDEN |
| 2785 |
|
| 2786 |
#ifndef GED_DNSCL_MODE_HIDDEN |
| 2787 |
const char* GED_GetDnsclModeString(GED_DNSCL_MODE DnsclModeValue) |
| 2788 |
{ |
| 2789 |
return DnsclModeEnumeration[DnsclModeValue]; |
| 2790 |
|
| 2791 |
} |
| 2792 |
#endif // GED_DNSCL_MODE_HIDDEN |
| 2793 |
|
| 2794 |
#ifndef GED_DPADDR_REG_SIZE_HIDDEN |
| 2795 |
const char* GED_GetDPAddrRegSizeString(GED_DPADDR_REG_SIZE DPAddrRegSizeValue) |
| 2796 |
{ |
| 2797 |
return DPAddrRegSizeEnumeration[DPAddrRegSizeValue]; |
| 2798 |
|
| 2799 |
} |
| 2800 |
#endif // GED_DPADDR_REG_SIZE_HIDDEN |
| 2801 |
|
| 2802 |
#ifndef GED_DP_ADDR_SIZE_HIDDEN |
| 2803 |
const char* GED_GetDpAddrSizeString(GED_DP_ADDR_SIZE DpAddrSizeValue) |
| 2804 |
{ |
| 2805 |
return DpAddrSizeEnumeration[DpAddrSizeValue]; |
| 2806 |
|
| 2807 |
} |
| 2808 |
#endif // GED_DP_ADDR_SIZE_HIDDEN |
| 2809 |
|
| 2810 |
#ifndef GED_DP_ADDR_SURFACE_TYPE_HIDDEN |
| 2811 |
const char* GED_GetDpAddrSurfaceTypeString(GED_DP_ADDR_SURFACE_TYPE DpAddrSurfaceTypeValue) |
| 2812 |
{ |
| 2813 |
return DpAddrSurfaceTypeEnumeration[DpAddrSurfaceTypeValue]; |
| 2814 |
|
| 2815 |
} |
| 2816 |
#endif // GED_DP_ADDR_SURFACE_TYPE_HIDDEN |
| 2817 |
|
| 2818 |
#ifndef GED_DPCACHE_LOAD_HIDDEN |
| 2819 |
const char* GED_GetDPCacheLoadString(GED_DPCACHE_LOAD DPCacheLoadValue) |
| 2820 |
{ |
| 2821 |
return DPCacheLoadEnumeration[DPCacheLoadValue]; |
| 2822 |
|
| 2823 |
} |
| 2824 |
#endif // GED_DPCACHE_LOAD_HIDDEN |
| 2825 |
|
| 2826 |
#ifndef GED_DPCACHE_STORE_HIDDEN |
| 2827 |
const char* GED_GetDPCacheStoreString(GED_DPCACHE_STORE DPCacheStoreValue) |
| 2828 |
{ |
| 2829 |
return DPCacheStoreEnumeration[DPCacheStoreValue]; |
| 2830 |
|
| 2831 |
} |
| 2832 |
#endif // GED_DPCACHE_STORE_HIDDEN |
| 2833 |
|
| 2834 |
#ifndef GED_DPCMASK_HIDDEN |
| 2835 |
const char* GED_GetDPCmaskString(GED_DPCMASK DPCmaskValue) |
| 2836 |
{ |
| 2837 |
return DPCmaskEnumeration[DPCmaskValue]; |
| 2838 |
|
| 2839 |
} |
| 2840 |
#endif // GED_DPCMASK_HIDDEN |
| 2841 |
|
| 2842 |
#ifndef GED_DP_DATA_SIZE_HIDDEN |
| 2843 |
const char* GED_GetDpDataSizeString(GED_DP_DATA_SIZE DpDataSizeValue) |
| 2844 |
{ |
| 2845 |
return DpDataSizeEnumeration[DpDataSizeValue]; |
| 2846 |
|
| 2847 |
} |
| 2848 |
#endif // GED_DP_DATA_SIZE_HIDDEN |
| 2849 |
|
| 2850 |
#ifndef GED_DP_FENCE_SCOPE_HIDDEN |
| 2851 |
const char* GED_GetDpFenceScopeString(GED_DP_FENCE_SCOPE DpFenceScopeValue) |
| 2852 |
{ |
| 2853 |
return DpFenceScopeEnumeration[DpFenceScopeValue]; |
| 2854 |
|
| 2855 |
} |
| 2856 |
#endif // GED_DP_FENCE_SCOPE_HIDDEN |
| 2857 |
|
| 2858 |
#ifndef GED_DP_FLUSH_TYPE_HIDDEN |
| 2859 |
const char* GED_GetDpFlushTypeString(GED_DP_FLUSH_TYPE DpFlushTypeValue) |
| 2860 |
{ |
| 2861 |
return DpFlushTypeEnumeration[DpFlushTypeValue]; |
| 2862 |
|
| 2863 |
} |
| 2864 |
#endif // GED_DP_FLUSH_TYPE_HIDDEN |
| 2865 |
|
| 2866 |
#ifndef GED_DPONE_ADDR_REG_HIDDEN |
| 2867 |
const char* GED_GetDPOneAddrRegString(GED_DPONE_ADDR_REG DPOneAddrRegValue) |
| 2868 |
{ |
| 2869 |
return DPOneAddrRegEnumeration[DPOneAddrRegValue]; |
| 2870 |
|
| 2871 |
} |
| 2872 |
#endif // GED_DPONE_ADDR_REG_HIDDEN |
| 2873 |
|
| 2874 |
#ifndef GED_DP_OPCODE_HIDDEN |
| 2875 |
const char* GED_GetDpOpcodeString(GED_DP_OPCODE DpOpcodeValue) |
| 2876 |
{ |
| 2877 |
return DpOpcodeEnumeration[DpOpcodeValue]; |
| 2878 |
|
| 2879 |
} |
| 2880 |
#endif // GED_DP_OPCODE_HIDDEN |
| 2881 |
|
| 2882 |
#ifndef GED_DP_TRANSPOSE_HIDDEN |
| 2883 |
const char* GED_GetDpTransposeString(GED_DP_TRANSPOSE DpTransposeValue) |
| 2884 |
{ |
| 2885 |
return DpTransposeEnumeration[DpTransposeValue]; |
| 2886 |
|
| 2887 |
} |
| 2888 |
#endif // GED_DP_TRANSPOSE_HIDDEN |
| 2889 |
|
| 2890 |
#ifndef GED_DP_VECT_SIZE_HIDDEN |
| 2891 |
const char* GED_GetDpVectSizeString(GED_DP_VECT_SIZE DpVectSizeValue) |
| 2892 |
{ |
| 2893 |
return DpVectSizeEnumeration[DpVectSizeValue]; |
| 2894 |
|
| 2895 |
} |
| 2896 |
#endif // GED_DP_VECT_SIZE_HIDDEN |
| 2897 |
|
| 2898 |
#ifndef GED_DST_CHAN_EN_HIDDEN |
| 2899 |
const char* GED_GetDstChanEnString(GED_DST_CHAN_EN DstChanEnValue) |
| 2900 |
{ |
| 2901 |
return DstChanEnEnumeration[DstChanEnValue]; |
| 2902 |
|
| 2903 |
} |
| 2904 |
#endif // GED_DST_CHAN_EN_HIDDEN |
| 2905 |
|
| 2906 |
#ifndef GED_EOT_HIDDEN |
| 2907 |
const char* GED_GetEOTString(GED_EOT EOTValue) |
| 2908 |
{ |
| 2909 |
return EOTEnumeration[EOTValue]; |
| 2910 |
|
| 2911 |
} |
| 2912 |
#endif // GED_EOT_HIDDEN |
| 2913 |
|
| 2914 |
#ifndef GED_EXEC_MASK_OFFSET_CTRL_HIDDEN |
| 2915 |
const char* GED_GetExecMaskOffsetCtrlString(GED_EXEC_MASK_OFFSET_CTRL ExecMaskOffsetCtrlValue) |
| 2916 |
{ |
| 2917 |
return ExecMaskOffsetCtrlEnumeration[ExecMaskOffsetCtrlValue]; |
| 2918 |
|
| 2919 |
} |
| 2920 |
#endif // GED_EXEC_MASK_OFFSET_CTRL_HIDDEN |
| 2921 |
|
| 2922 |
#ifndef GED_EXECUTION_DATA_TYPE_HIDDEN |
| 2923 |
const char* GED_GetExecutionDataTypeString(GED_EXECUTION_DATA_TYPE ExecutionDataTypeValue) |
| 2924 |
{ |
| 2925 |
return ExecutionDataTypeEnumeration[ExecutionDataTypeValue]; |
| 2926 |
|
| 2927 |
} |
| 2928 |
#endif // GED_EXECUTION_DATA_TYPE_HIDDEN |
| 2929 |
|
| 2930 |
#ifndef GED_FUSION_CTRL_HIDDEN |
| 2931 |
const char* GED_GetFusionCtrlString(GED_FUSION_CTRL FusionCtrlValue) |
| 2932 |
{ |
| 2933 |
return FusionCtrlEnumeration[FusionCtrlValue]; |
| 2934 |
|
| 2935 |
} |
| 2936 |
#endif // GED_FUSION_CTRL_HIDDEN |
| 2937 |
|
| 2938 |
#ifndef GED_HEADER_PRESENT_HIDDEN |
| 2939 |
const char* GED_GetHeaderPresentString(GED_HEADER_PRESENT HeaderPresentValue) |
| 2940 |
{ |
| 2941 |
return HeaderPresentEnumeration[HeaderPresentValue]; |
| 2942 |
|
| 2943 |
} |
| 2944 |
#endif // GED_HEADER_PRESENT_HIDDEN |
| 2945 |
|
| 2946 |
#ifndef GED_IS_IMM_HIDDEN |
| 2947 |
const char* GED_GetIsImmString(GED_IS_IMM IsImmValue) |
| 2948 |
{ |
| 2949 |
return IsImmEnumeration[IsImmValue]; |
| 2950 |
|
| 2951 |
} |
| 2952 |
#endif // GED_IS_IMM_HIDDEN |
| 2953 |
|
| 2954 |
#ifndef GED_LFSR_FC_HIDDEN |
| 2955 |
const char* GED_GetLfsrFCString(GED_LFSR_FC LfsrFCValue) |
| 2956 |
{ |
| 2957 |
return LfsrFCEnumeration[LfsrFCValue]; |
| 2958 |
|
| 2959 |
} |
| 2960 |
#endif // GED_LFSR_FC_HIDDEN |
| 2961 |
|
| 2962 |
#ifndef GED_MASK_CTRL_HIDDEN |
| 2963 |
const char* GED_GetMaskCtrlString(GED_MASK_CTRL MaskCtrlValue) |
| 2964 |
{ |
| 2965 |
return MaskCtrlEnumeration[MaskCtrlValue]; |
| 2966 |
|
| 2967 |
} |
| 2968 |
#endif // GED_MASK_CTRL_HIDDEN |
| 2969 |
|
| 2970 |
#ifndef GED_MATH_FC_HIDDEN |
| 2971 |
const char* GED_GetMathFCString(GED_MATH_FC MathFCValue) |
| 2972 |
{ |
| 2973 |
return MathFCEnumeration[MathFCValue]; |
| 2974 |
|
| 2975 |
} |
| 2976 |
#endif // GED_MATH_FC_HIDDEN |
| 2977 |
|
| 2978 |
#ifndef GED_MATH_MACRO_EXT_HIDDEN |
| 2979 |
const char* GED_GetMathMacroExtString(GED_MATH_MACRO_EXT MathMacroExtValue) |
| 2980 |
{ |
| 2981 |
return MathMacroExtEnumeration[MathMacroExtValue]; |
| 2982 |
|
| 2983 |
} |
| 2984 |
#endif // GED_MATH_MACRO_EXT_HIDDEN |
| 2985 |
|
| 2986 |
#ifndef GED_MESSAGE_TYPE_HIDDEN |
| 2987 |
const char* GED_GetMessageTypeString(GED_MESSAGE_TYPE MessageTypeValue) |
| 2988 |
{ |
| 2989 |
return MessageTypeEnumeration[MessageTypeValue]; |
| 2990 |
|
| 2991 |
} |
| 2992 |
#endif // GED_MESSAGE_TYPE_HIDDEN |
| 2993 |
|
| 2994 |
#ifndef GED_NO_SRC_DEP_SET_HIDDEN |
| 2995 |
const char* GED_GetNoSrcDepSetString(GED_NO_SRC_DEP_SET NoSrcDepSetValue) |
| 2996 |
{ |
| 2997 |
return NoSrcDepSetEnumeration[NoSrcDepSetValue]; |
| 2998 |
|
| 2999 |
} |
| 3000 |
#endif // GED_NO_SRC_DEP_SET_HIDDEN |
| 3001 |
|
| 3002 |
#ifndef GED_OPCODE_HIDDEN |
| 3003 |
const char* GED_GetOpcodeString(GED_OPCODE OpcodeValue) |
| 3004 |
{ |
| 3005 |
return OpcodeEnumeration[OpcodeValue]; |
| 3006 |
|
| 3007 |
} |
| 3008 |
#endif // GED_OPCODE_HIDDEN |
| 3009 |
|
| 3010 |
#ifndef GED_PRECISION_HIDDEN |
| 3011 |
const char* GED_GetPrecisionString(GED_PRECISION PrecisionValue) |
| 3012 |
{ |
| 3013 |
return PrecisionEnumeration[PrecisionValue]; |
| 3014 |
|
| 3015 |
} |
| 3016 |
#endif // GED_PRECISION_HIDDEN |
| 3017 |
|
| 3018 |
#ifndef GED_PRED_CTRL_HIDDEN |
| 3019 |
const char* GED_GetPredCtrlString(GED_PRED_CTRL PredCtrlValue) |
| 3020 |
{ |
| 3021 |
return PredCtrlEnumeration[PredCtrlValue]; |
| 3022 |
|
| 3023 |
} |
| 3024 |
#endif // GED_PRED_CTRL_HIDDEN |
| 3025 |
|
| 3026 |
#ifndef GED_PRED_INV_HIDDEN |
| 3027 |
const char* GED_GetPredInvString(GED_PRED_INV PredInvValue) |
| 3028 |
{ |
| 3029 |
return PredInvEnumeration[PredInvValue]; |
| 3030 |
|
| 3031 |
} |
| 3032 |
#endif // GED_PRED_INV_HIDDEN |
| 3033 |
|
| 3034 |
#ifndef GED_REG_FILE_HIDDEN |
| 3035 |
const char* GED_GetRegFileString(GED_REG_FILE RegFileValue) |
| 3036 |
{ |
| 3037 |
return RegFileEnumeration[RegFileValue]; |
| 3038 |
|
| 3039 |
} |
| 3040 |
#endif // GED_REG_FILE_HIDDEN |
| 3041 |
|
| 3042 |
#ifndef GED_REP_CTRL_HIDDEN |
| 3043 |
const char* GED_GetRepCtrlString(GED_REP_CTRL RepCtrlValue) |
| 3044 |
{ |
| 3045 |
return RepCtrlEnumeration[RepCtrlValue]; |
| 3046 |
|
| 3047 |
} |
| 3048 |
#endif // GED_REP_CTRL_HIDDEN |
| 3049 |
|
| 3050 |
#ifndef GED_RETURN_DATA_CONTROL_HIDDEN |
| 3051 |
const char* GED_GetReturnDataControlString(GED_RETURN_DATA_CONTROL ReturnDataControlValue) |
| 3052 |
{ |
| 3053 |
return ReturnDataControlEnumeration[ReturnDataControlValue]; |
| 3054 |
|
| 3055 |
} |
| 3056 |
#endif // GED_RETURN_DATA_CONTROL_HIDDEN |
| 3057 |
|
| 3058 |
#ifndef GED_ROUNDING_MODE_HIDDEN |
| 3059 |
const char* GED_GetRoundingModeString(GED_ROUNDING_MODE RoundingModeValue) |
| 3060 |
{ |
| 3061 |
return RoundingModeEnumeration[RoundingModeValue]; |
| 3062 |
|
| 3063 |
} |
| 3064 |
#endif // GED_ROUNDING_MODE_HIDDEN |
| 3065 |
|
| 3066 |
#ifndef GED_SATURATE_HIDDEN |
| 3067 |
const char* GED_GetSaturateString(GED_SATURATE SaturateValue) |
| 3068 |
{ |
| 3069 |
return SaturateEnumeration[SaturateValue]; |
| 3070 |
|
| 3071 |
} |
| 3072 |
#endif // GED_SATURATE_HIDDEN |
| 3073 |
|
| 3074 |
#ifndef GED_SFID_HIDDEN |
| 3075 |
const char* GED_GetSFIDString(GED_SFID SFIDValue) |
| 3076 |
{ |
| 3077 |
return SFIDEnumeration[SFIDValue]; |
| 3078 |
|
| 3079 |
} |
| 3080 |
#endif // GED_SFID_HIDDEN |
| 3081 |
|
| 3082 |
#ifndef GED_SHUFFLE_FC_HIDDEN |
| 3083 |
const char* GED_GetShuffleFCString(GED_SHUFFLE_FC ShuffleFCValue) |
| 3084 |
{ |
| 3085 |
return ShuffleFCEnumeration[ShuffleFCValue]; |
| 3086 |
|
| 3087 |
} |
| 3088 |
#endif // GED_SHUFFLE_FC_HIDDEN |
| 3089 |
|
| 3090 |
#ifndef GED_SIMDMODE_HIDDEN |
| 3091 |
const char* GED_GetSIMDModeString(GED_SIMDMODE SIMDModeValue) |
| 3092 |
{ |
| 3093 |
return SIMDModeEnumeration[SIMDModeValue]; |
| 3094 |
|
| 3095 |
} |
| 3096 |
#endif // GED_SIMDMODE_HIDDEN |
| 3097 |
|
| 3098 |
#ifndef GED_SLOT_GROUP_HIDDEN |
| 3099 |
const char* GED_GetSlotGroupString(GED_SLOT_GROUP SlotGroupValue) |
| 3100 |
{ |
| 3101 |
return SlotGroupEnumeration[SlotGroupValue]; |
| 3102 |
|
| 3103 |
} |
| 3104 |
#endif // GED_SLOT_GROUP_HIDDEN |
| 3105 |
|
| 3106 |
#ifndef GED_SRC_MOD_HIDDEN |
| 3107 |
const char* GED_GetSrcModString(GED_SRC_MOD SrcModValue) |
| 3108 |
{ |
| 3109 |
return SrcModEnumeration[SrcModValue]; |
| 3110 |
|
| 3111 |
} |
| 3112 |
#endif // GED_SRC_MOD_HIDDEN |
| 3113 |
|
| 3114 |
#ifndef GED_SUB_BYTE_PRECISION_HIDDEN |
| 3115 |
const char* GED_GetSubBytePrecisionString(GED_SUB_BYTE_PRECISION SubBytePrecisionValue) |
| 3116 |
{ |
| 3117 |
return SubBytePrecisionEnumeration[SubBytePrecisionValue]; |
| 3118 |
|
| 3119 |
} |
| 3120 |
#endif // GED_SUB_BYTE_PRECISION_HIDDEN |
| 3121 |
|
| 3122 |
#ifndef GED_SUB_FUNC_ID_HIDDEN |
| 3123 |
const char* GED_GetSubFuncIDString(GED_SUB_FUNC_ID SubFuncIDValue) |
| 3124 |
{ |
| 3125 |
return SubFuncIDEnumeration[SubFuncIDValue]; |
| 3126 |
|
| 3127 |
} |
| 3128 |
#endif // GED_SUB_FUNC_ID_HIDDEN |
| 3129 |
|
| 3130 |
#ifndef GED_SWIZZLE_HIDDEN |
| 3131 |
const char* GED_GetSwizzleString(GED_SWIZZLE SwizzleValue) |
| 3132 |
{ |
| 3133 |
return SwizzleEnumeration[SwizzleValue]; |
| 3134 |
|
| 3135 |
} |
| 3136 |
#endif // GED_SWIZZLE_HIDDEN |
| 3137 |
|
| 3138 |
#ifndef GED_SYNC_FC_HIDDEN |
| 3139 |
const char* GED_GetSyncFCString(GED_SYNC_FC SyncFCValue) |
| 3140 |
{ |
| 3141 |
return SyncFCEnumeration[SyncFCValue]; |
| 3142 |
|
| 3143 |
} |
| 3144 |
#endif // GED_SYNC_FC_HIDDEN |
| 3145 |
|
| 3146 |
#ifndef GED_THREAD_CTRL_HIDDEN |
| 3147 |
const char* GED_GetThreadCtrlString(GED_THREAD_CTRL ThreadCtrlValue) |
| 3148 |
{ |
| 3149 |
return ThreadCtrlEnumeration[ThreadCtrlValue]; |
| 3150 |
|
| 3151 |
} |
| 3152 |
#endif // GED_THREAD_CTRL_HIDDEN |
| 3153 |
uint32_t GED_GetOperandWidth(const GED_DATA_TYPE datatype, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 3154 |
{ |
| 3155 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 3156 |
if (NULL == result) result = &localResult; |
| 3157 |
if ((uint32_t)GED_DATA_TYPE_INVALID <= (uint32_t)datatype) |
| 3158 |
{ |
| 3159 |
*result = GED_RETURN_VALUE_INVALID_VALUE; |
| 3160 |
return datatype; |
| 3161 |
} |
| 3162 |
return GEDInterpreter::ReinterpretEnum(datatype, 0, modelId, *result); |
| 3163 |
} |
| 3164 |
uint32_t GED_GetOperandNumericType(const GED_DATA_TYPE datatype, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 3165 |
{ |
| 3166 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 3167 |
if (NULL == result) result = &localResult; |
| 3168 |
if ((uint32_t)GED_DATA_TYPE_INVALID <= (uint32_t)datatype) |
| 3169 |
{ |
| 3170 |
*result = GED_RETURN_VALUE_INVALID_VALUE; |
| 3171 |
return datatype; |
| 3172 |
} |
| 3173 |
return GEDInterpreter::ReinterpretEnum(datatype, 1, modelId, *result); |
| 3174 |
} |
| 3175 |
uint32_t GED_GetNibCtrl(const GED_EXEC_MASK_OFFSET_CTRL execmaskoffsetctrl, const GED_MODEL modelId, GED_RETURN_VALUE* result) |
| 3176 |
{ |
| 3177 |
GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD; |
| 3178 |
if (NULL == result) result = &localResult; |
| 3179 |
if ((uint32_t)GED_EXEC_MASK_OFFSET_CTRL_INVALID <= (uint32_t)execmaskoffsetctrl) |
| 3180 |
{ |
| 3181 |
*result = GED_RETURN_VALUE_INVALID_VALUE; |
| 3182 |
return execmaskoffsetctrl; |
| 3183 |
} |
| 3184 |
return GEDInterpreter::ReinterpretEnum(execmaskoffsetctrl, 2, modelId, *result); |
| 3185 |
} |