Debian Codegraph @

visa/iga/GEDLibrary/GED_external/build/autogen-ia32/ged_api.cpp

raw
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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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"), 162, (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 GED_DATA_TYPE2 GED_GetDstDataType2(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 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_DstDataType2, *result);
1595 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE2)value : GED_DATA_TYPE2_INVALID;
1596 }
1597 GED_RETURN_VALUE GED_SetDstDataType2(ged_ins_t* ins, const GED_DATA_TYPE2 value)
1598 {
1599 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DstDataType2, (const uint32_t)value);
1600 }
1601 GED_DATA_TYPE2 GED_GetSrc0DataType2(ged_ins_t* ins, GED_RETURN_VALUE* result)
1602 {
1603 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1604 if (NULL == result) result = &localResult;
1605 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0DataType2, *result);
1606 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE2)value : GED_DATA_TYPE2_INVALID;
1607 }
1608 GED_RETURN_VALUE GED_SetSrc0DataType2(ged_ins_t* ins, const GED_DATA_TYPE2 value)
1609 {
1610 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0DataType2, (const uint32_t)value);
1611 }
1612 uint32_t GED_GetSrc2RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result)
1613 {
1614 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1615 if (NULL == result) result = &localResult;
1616 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src2RegNum8, *result);
1617 }
1618 GED_RETURN_VALUE GED_SetSrc2RegNum8(ged_ins_t* ins, const uint32_t value)
1619 {
1620 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src2RegNum8, value);
1621 }
1622 uint32_t GED_GetFwdCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result)
1623 {
1624 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1625 if (NULL == result) result = &localResult;
1626 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_FwdCtrl, *result);
1627 }
1628 GED_RETURN_VALUE GED_SetFwdCtrl(ged_ins_t* ins, const uint32_t value)
1629 {
1630 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_FwdCtrl, value);
1631 }
1632 GED_DNSCL_MODE GED_GetDnsclMode(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_DnsclMode, *result);
1637 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DNSCL_MODE)value : GED_DNSCL_MODE_INVALID;
1638 }
1639 GED_RETURN_VALUE GED_SetDnsclMode(ged_ins_t* ins, const GED_DNSCL_MODE value)
1640 {
1641 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_DnsclMode, (const uint32_t)value);
1642 }
1643 GED_ROUNDING_MODE GED_GetRoundingMode(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_RoundingMode, *result);
1648 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ROUNDING_MODE)value : GED_ROUNDING_MODE_INVALID;
1649 }
1650 GED_RETURN_VALUE GED_SetRoundingMode(ged_ins_t* ins, const GED_ROUNDING_MODE value)
1651 {
1652 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_RoundingMode, (const uint32_t)value);
1653 }
1654 GED_CONV_SRC_DATATYPE2 GED_GetConvSrcDataType2(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 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ConvSrcDataType2, *result);
1659 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CONV_SRC_DATATYPE2)value : GED_CONV_SRC_DATATYPE2_INVALID;
1660 }
1661 GED_RETURN_VALUE GED_SetConvSrcDataType2(ged_ins_t* ins, const GED_CONV_SRC_DATATYPE2 value)
1662 {
1663 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ConvSrcDataType2, (const uint32_t)value);
1664 }
1665 GED_CONV_DST_DATATYPE GED_GetConvDstDataType(ged_ins_t* ins, GED_RETURN_VALUE* result)
1666 {
1667 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1668 if (NULL == result) result = &localResult;
1669 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_ConvDstDataType, *result);
1670 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CONV_DST_DATATYPE)value : GED_CONV_DST_DATATYPE_INVALID;
1671 }
1672 GED_RETURN_VALUE GED_SetConvDstDataType(ged_ins_t* ins, const GED_CONV_DST_DATATYPE value)
1673 {
1674 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_ConvDstDataType, (const uint32_t)value);
1675 }
1676 uint32_t GED_GetSendSwitchCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result)
1677 {
1678 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1679 if (NULL == result) result = &localResult;
1680 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_SendSwitchCtrl, *result);
1681 }
1682 GED_RETURN_VALUE GED_SetSendSwitchCtrl(ged_ins_t* ins, const uint32_t value)
1683 {
1684 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_SendSwitchCtrl, value);
1685 }
1686 uint32_t GED_GetIndMsgDesc0IsPresent(ged_ins_t* ins, GED_RETURN_VALUE* result)
1687 {
1688 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1689 if (NULL == result) result = &localResult;
1690 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc0IsPresent, *result);
1691 }
1692 GED_RETURN_VALUE GED_SetIndMsgDesc0IsPresent(ged_ins_t* ins, const uint32_t value)
1693 {
1694 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc0IsPresent, value);
1695 }
1696 uint32_t GED_GetIndMsgDesc1IsPresent(ged_ins_t* ins, GED_RETURN_VALUE* result)
1697 {
1698 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1699 if (NULL == result) result = &localResult;
1700 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc1IsPresent, *result);
1701 }
1702 GED_RETURN_VALUE GED_SetIndMsgDesc1IsPresent(ged_ins_t* ins, const uint32_t value)
1703 {
1704 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc1IsPresent, value);
1705 }
1706 uint64_t GED_GetMsgDesc64(ged_ins_t* ins, GED_RETURN_VALUE* result)
1707 {
1708 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1709 if (NULL == result) result = &localResult;
1710 return reinterpret_cast<GEDIns*>(ins)->GetUnsigned64Field(GED_INS_FIELD_MsgDesc64, *result);
1711 }
1712 GED_RETURN_VALUE GED_SetMsgDesc64(ged_ins_t* ins, const uint64_t value)
1713 {
1714 return reinterpret_cast<GEDIns*>(ins)->SetUnsigned64Field(GED_INS_FIELD_MsgDesc64, value);
1715 }
1716 uint32_t GED_GetIndMsgDesc1Addr(ged_ins_t* ins, GED_RETURN_VALUE* result)
1717 {
1718 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1719 if (NULL == result) result = &localResult;
1720 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc1Addr, *result);
1721 }
1722 GED_RETURN_VALUE GED_SetIndMsgDesc1Addr(ged_ins_t* ins, const uint32_t value)
1723 {
1724 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc1Addr, value);
1725 }
1726 uint32_t GED_GetIndMsgDesc0Addr(ged_ins_t* ins, GED_RETURN_VALUE* result)
1727 {
1728 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1729 if (NULL == result) result = &localResult;
1730 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_IndMsgDesc0Addr, *result);
1731 }
1732 GED_RETURN_VALUE GED_SetIndMsgDesc0Addr(ged_ins_t* ins, const uint32_t value)
1733 {
1734 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_IndMsgDesc0Addr, value);
1735 }
1736 uint32_t GED_GetSrc0Length(ged_ins_t* ins, GED_RETURN_VALUE* result)
1737 {
1738 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1739 if (NULL == result) result = &localResult;
1740 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src0Length, *result);
1741 }
1742 GED_RETURN_VALUE GED_SetSrc0Length(ged_ins_t* ins, const uint32_t value)
1743 {
1744 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src0Length, value);
1745 }
1746 GED_REG_FILE GED_GetSrc4RegFile(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 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4RegFile, *result);
1751 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID;
1752 }
1753 GED_RETURN_VALUE GED_SetSrc4RegFile(ged_ins_t* ins, const GED_REG_FILE value)
1754 {
1755 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4RegFile, (const uint32_t)value);
1756 }
1757 GED_REG_FILE GED_GetSrc3RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result)
1758 {
1759 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1760 if (NULL == result) result = &localResult;
1761 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3RegFile, *result);
1762 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_REG_FILE)value : GED_REG_FILE_INVALID;
1763 }
1764 GED_RETURN_VALUE GED_SetSrc3RegFile(ged_ins_t* ins, const GED_REG_FILE value)
1765 {
1766 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3RegFile, (const uint32_t)value);
1767 }
1768 uint32_t GED_GetSrc4RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result)
1769 {
1770 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1771 if (NULL == result) result = &localResult;
1772 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4RegNum, *result);
1773 }
1774 GED_RETURN_VALUE GED_SetSrc4RegNum(ged_ins_t* ins, const uint32_t value)
1775 {
1776 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4RegNum, value);
1777 }
1778 uint32_t GED_GetSrc3RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result)
1779 {
1780 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1781 if (NULL == result) result = &localResult;
1782 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3RegNum, *result);
1783 }
1784 GED_RETURN_VALUE GED_SetSrc3RegNum(ged_ins_t* ins, const uint32_t value)
1785 {
1786 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3RegNum, value);
1787 }
1788 GED_DATA_TYPE_SCALE GED_GetSrc3Src4DataType(ged_ins_t* ins, GED_RETURN_VALUE* result)
1789 {
1790 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1791 if (NULL == result) result = &localResult;
1792 const uint32_t value = reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3Src4DataType, *result);
1793 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DATA_TYPE_SCALE)value : GED_DATA_TYPE_SCALE_INVALID;
1794 }
1795 GED_RETURN_VALUE GED_SetSrc3Src4DataType(ged_ins_t* ins, const GED_DATA_TYPE_SCALE value)
1796 {
1797 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3Src4DataType, (const uint32_t)value);
1798 }
1799 uint32_t GED_GetSrc4SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result)
1800 {
1801 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1802 if (NULL == result) result = &localResult;
1803 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4SubRegNum, *result);
1804 }
1805 GED_RETURN_VALUE GED_SetSrc4SubRegNum(ged_ins_t* ins, const uint32_t value)
1806 {
1807 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4SubRegNum, value);
1808 }
1809 uint32_t GED_GetSrc3SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result)
1810 {
1811 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1812 if (NULL == result) result = &localResult;
1813 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3SubRegNum, *result);
1814 }
1815 GED_RETURN_VALUE GED_SetSrc3SubRegNum(ged_ins_t* ins, const uint32_t value)
1816 {
1817 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3SubRegNum, value);
1818 }
1819 uint32_t GED_GetSrc3RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result)
1820 {
1821 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1822 if (NULL == result) result = &localResult;
1823 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src3RegNum8, *result);
1824 }
1825 GED_RETURN_VALUE GED_SetSrc3RegNum8(ged_ins_t* ins, const uint32_t value)
1826 {
1827 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src3RegNum8, value);
1828 }
1829 uint32_t GED_GetSrc4RegNum8(ged_ins_t* ins, GED_RETURN_VALUE* result)
1830 {
1831 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
1832 if (NULL == result) result = &localResult;
1833 return reinterpret_cast<GEDIns*>(ins)->GetUnsignedField(GED_INS_FIELD_Src4RegNum8, *result);
1834 }
1835 GED_RETURN_VALUE GED_SetSrc4RegNum8(ged_ins_t* ins, const uint32_t value)
1836 {
1837 return reinterpret_cast<GEDIns*>(ins)->SetUnsignedField(GED_INS_FIELD_Src4RegNum8, value);
1838 }
1839 uint32_t GED_GetIndexedIndMsgDescAddr(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1840 {
1841 if (0 == index) return GED_GetIndMsgDesc0Addr(ins, result);
1842 if (1 == index) return GED_GetIndMsgDesc1Addr(ins, result);
1843 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1844 return (uint32_t)-1;
1845 }
1846 GED_RETURN_VALUE GED_SetIndexedIndMsgDescAddr(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1847 {
1848 if (0 == index) return GED_SetIndMsgDesc0Addr(ins, value);
1849 if (1 == index) return GED_SetIndMsgDesc1Addr(ins, value);
1850 return GED_RETURN_VALUE_INVALID_OPERAND;
1851 }
1852 int32_t GED_GetIndexedSrcAddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1853 {
1854 if (0 == index) return GED_GetSrc0AddrImm(ins, result);
1855 if (1 == index) return GED_GetSrc1AddrImm(ins, result);
1856 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1857 return (int32_t)-1;
1858 }
1859 GED_RETURN_VALUE GED_SetIndexedSrcAddrImm(ged_ins_t* ins, const int32_t value, const uint8_t index)
1860 {
1861 if (0 == index) return GED_SetSrc0AddrImm(ins, value);
1862 if (1 == index) return GED_SetSrc1AddrImm(ins, value);
1863 return GED_RETURN_VALUE_INVALID_OPERAND;
1864 }
1865 GED_ADDR_MODE GED_GetIndexedSrcAddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1866 {
1867 if (0 == index) return GED_GetSrc0AddrMode(ins, result);
1868 if (1 == index) return GED_GetSrc1AddrMode(ins, result);
1869 if (2 == index) return GED_GetSrc2AddrMode(ins, result);
1870 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1871 return GED_ADDR_MODE_INVALID;
1872 }
1873 GED_RETURN_VALUE GED_SetIndexedSrcAddrMode(ged_ins_t* ins, const GED_ADDR_MODE value, const uint8_t index)
1874 {
1875 if (0 == index) return GED_SetSrc0AddrMode(ins, value);
1876 if (1 == index) return GED_SetSrc1AddrMode(ins, value);
1877 if (2 == index) return GED_SetSrc2AddrMode(ins, value);
1878 return GED_RETURN_VALUE_INVALID_OPERAND;
1879 }
1880 uint32_t GED_GetIndexedSrcAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1881 {
1882 if (0 == index) return GED_GetSrc0AddrSubRegNum(ins, result);
1883 if (1 == index) return GED_GetSrc1AddrSubRegNum(ins, result);
1884 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1885 return (uint32_t)-1;
1886 }
1887 GED_RETURN_VALUE GED_SetIndexedSrcAddrSubRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1888 {
1889 if (0 == index) return GED_SetSrc0AddrSubRegNum(ins, value);
1890 if (1 == index) return GED_SetSrc1AddrSubRegNum(ins, value);
1891 return GED_RETURN_VALUE_INVALID_OPERAND;
1892 }
1893 uint32_t GED_GetIndexedSrcChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1894 {
1895 if (0 == index) return GED_GetSrc0ChanSel(ins, result);
1896 if (1 == index) return GED_GetSrc1ChanSel(ins, result);
1897 if (2 == index) return GED_GetSrc2ChanSel(ins, result);
1898 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1899 return (uint32_t)-1;
1900 }
1901 GED_RETURN_VALUE GED_SetIndexedSrcChanSel(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1902 {
1903 if (0 == index) return GED_SetSrc0ChanSel(ins, value);
1904 if (1 == index) return GED_SetSrc1ChanSel(ins, value);
1905 if (2 == index) return GED_SetSrc2ChanSel(ins, value);
1906 return GED_RETURN_VALUE_INVALID_OPERAND;
1907 }
1908 GED_DATA_TYPE GED_GetIndexedSrcDataType(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1909 {
1910 if (0 == index) return GED_GetSrc0DataType(ins, result);
1911 if (1 == index) return GED_GetSrc1DataType(ins, result);
1912 if (2 == index) return GED_GetSrc2DataType(ins, result);
1913 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1914 return GED_DATA_TYPE_INVALID;
1915 }
1916 GED_RETURN_VALUE GED_SetIndexedSrcDataType(ged_ins_t* ins, const GED_DATA_TYPE value, const uint8_t index)
1917 {
1918 if (0 == index) return GED_SetSrc0DataType(ins, value);
1919 if (1 == index) return GED_SetSrc1DataType(ins, value);
1920 if (2 == index) return GED_SetSrc2DataType(ins, value);
1921 return GED_RETURN_VALUE_INVALID_OPERAND;
1922 }
1923 GED_DATA_TYPE2 GED_GetIndexedSrcDataType2(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1924 {
1925 if (0 == index) return GED_GetSrc0DataType2(ins, result);
1926 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1927 return GED_DATA_TYPE2_INVALID;
1928 }
1929 GED_RETURN_VALUE GED_SetIndexedSrcDataType2(ged_ins_t* ins, const GED_DATA_TYPE2 value, const uint8_t index)
1930 {
1931 if (0 == index) return GED_SetSrc0DataType2(ins, value);
1932 return GED_RETURN_VALUE_INVALID_OPERAND;
1933 }
1934 uint32_t GED_GetIndexedSrcHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1935 {
1936 if (0 == index) return GED_GetSrc0HorzStride(ins, result);
1937 if (1 == index) return GED_GetSrc1HorzStride(ins, result);
1938 if (2 == index) return GED_GetSrc2HorzStride(ins, result);
1939 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1940 return (uint32_t)-1;
1941 }
1942 GED_RETURN_VALUE GED_SetIndexedSrcHorzStride(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1943 {
1944 if (0 == index) return GED_SetSrc0HorzStride(ins, value);
1945 if (1 == index) return GED_SetSrc1HorzStride(ins, value);
1946 if (2 == index) return GED_SetSrc2HorzStride(ins, value);
1947 return GED_RETURN_VALUE_INVALID_OPERAND;
1948 }
1949 uint32_t GED_GetIndexedSrcIndex(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1950 {
1951 if (0 == index) return GED_GetSrc0Index(ins, result);
1952 if (1 == index) return GED_GetSrc1Index(ins, result);
1953 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1954 return (uint32_t)-1;
1955 }
1956 GED_RETURN_VALUE GED_SetIndexedSrcIndex(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1957 {
1958 if (0 == index) return GED_SetSrc0Index(ins, value);
1959 if (1 == index) return GED_SetSrc1Index(ins, value);
1960 return GED_RETURN_VALUE_INVALID_OPERAND;
1961 }
1962 uint32_t GED_GetIndexedSrcIsImm(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1963 {
1964 if (0 == index) return GED_GetSrc0IsImm(ins, result);
1965 if (1 == index) return GED_GetSrc1IsImm(ins, result);
1966 if (2 == index) return GED_GetSrc2IsImm(ins, result);
1967 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1968 return (uint32_t)-1;
1969 }
1970 GED_RETURN_VALUE GED_SetIndexedSrcIsImm(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1971 {
1972 if (0 == index) return GED_SetSrc0IsImm(ins, value);
1973 if (1 == index) return GED_SetSrc1IsImm(ins, value);
1974 if (2 == index) return GED_SetSrc2IsImm(ins, value);
1975 return GED_RETURN_VALUE_INVALID_OPERAND;
1976 }
1977 uint32_t GED_GetIndexedIndMsgDescIsPresent(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1978 {
1979 if (0 == index) return GED_GetIndMsgDesc0IsPresent(ins, result);
1980 if (1 == index) return GED_GetIndMsgDesc1IsPresent(ins, result);
1981 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1982 return (uint32_t)-1;
1983 }
1984 GED_RETURN_VALUE GED_SetIndexedIndMsgDescIsPresent(ged_ins_t* ins, const uint32_t value, const uint8_t index)
1985 {
1986 if (0 == index) return GED_SetIndMsgDesc0IsPresent(ins, value);
1987 if (1 == index) return GED_SetIndMsgDesc1IsPresent(ins, value);
1988 return GED_RETURN_VALUE_INVALID_OPERAND;
1989 }
1990 GED_MATH_MACRO_EXT GED_GetIndexedSrcMathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
1991 {
1992 if (0 == index) return GED_GetSrc0MathMacroExt(ins, result);
1993 if (1 == index) return GED_GetSrc1MathMacroExt(ins, result);
1994 if (2 == index) return GED_GetSrc2MathMacroExt(ins, result);
1995 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
1996 return GED_MATH_MACRO_EXT_INVALID;
1997 }
1998 GED_RETURN_VALUE GED_SetIndexedSrcMathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value, const uint8_t index)
1999 {
2000 if (0 == index) return GED_SetSrc0MathMacroExt(ins, value);
2001 if (1 == index) return GED_SetSrc1MathMacroExt(ins, value);
2002 if (2 == index) return GED_SetSrc2MathMacroExt(ins, value);
2003 return GED_RETURN_VALUE_INVALID_OPERAND;
2004 }
2005 GED_REG_FILE GED_GetIndexedSrcRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2006 {
2007 if (0 == index) return GED_GetSrc0RegFile(ins, result);
2008 if (1 == index) return GED_GetSrc1RegFile(ins, result);
2009 if (2 == index) return GED_GetSrc2RegFile(ins, result);
2010 if (3 == index) return GED_GetSrc3RegFile(ins, result);
2011 if (4 == index) return GED_GetSrc4RegFile(ins, result);
2012 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2013 return GED_REG_FILE_INVALID;
2014 }
2015 GED_RETURN_VALUE GED_SetIndexedSrcRegFile(ged_ins_t* ins, const GED_REG_FILE value, const uint8_t index)
2016 {
2017 if (0 == index) return GED_SetSrc0RegFile(ins, value);
2018 if (1 == index) return GED_SetSrc1RegFile(ins, value);
2019 if (2 == index) return GED_SetSrc2RegFile(ins, value);
2020 if (3 == index) return GED_SetSrc3RegFile(ins, value);
2021 if (4 == index) return GED_SetSrc4RegFile(ins, value);
2022 return GED_RETURN_VALUE_INVALID_OPERAND;
2023 }
2024 uint32_t GED_GetIndexedSrcRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2025 {
2026 if (0 == index) return GED_GetSrc0RegNum(ins, result);
2027 if (1 == index) return GED_GetSrc1RegNum(ins, result);
2028 if (2 == index) return GED_GetSrc2RegNum(ins, result);
2029 if (3 == index) return GED_GetSrc3RegNum(ins, result);
2030 if (4 == index) return GED_GetSrc4RegNum(ins, result);
2031 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2032 return (uint32_t)-1;
2033 }
2034 GED_RETURN_VALUE GED_SetIndexedSrcRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index)
2035 {
2036 if (0 == index) return GED_SetSrc0RegNum(ins, value);
2037 if (1 == index) return GED_SetSrc1RegNum(ins, value);
2038 if (2 == index) return GED_SetSrc2RegNum(ins, value);
2039 if (3 == index) return GED_SetSrc3RegNum(ins, value);
2040 if (4 == index) return GED_SetSrc4RegNum(ins, value);
2041 return GED_RETURN_VALUE_INVALID_OPERAND;
2042 }
2043 GED_REP_CTRL GED_GetIndexedSrcRepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2044 {
2045 if (0 == index) return GED_GetSrc0RepCtrl(ins, result);
2046 if (1 == index) return GED_GetSrc1RepCtrl(ins, result);
2047 if (2 == index) return GED_GetSrc2RepCtrl(ins, result);
2048 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2049 return GED_REP_CTRL_INVALID;
2050 }
2051 GED_RETURN_VALUE GED_SetIndexedSrcRepCtrl(ged_ins_t* ins, const GED_REP_CTRL value, const uint8_t index)
2052 {
2053 if (0 == index) return GED_SetSrc0RepCtrl(ins, value);
2054 if (1 == index) return GED_SetSrc1RepCtrl(ins, value);
2055 if (2 == index) return GED_SetSrc2RepCtrl(ins, value);
2056 return GED_RETURN_VALUE_INVALID_OPERAND;
2057 }
2058 GED_SRC_MOD GED_GetIndexedSrcSrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2059 {
2060 if (0 == index) return GED_GetSrc0SrcMod(ins, result);
2061 if (1 == index) return GED_GetSrc1SrcMod(ins, result);
2062 if (2 == index) return GED_GetSrc2SrcMod(ins, result);
2063 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2064 return GED_SRC_MOD_INVALID;
2065 }
2066 GED_RETURN_VALUE GED_SetIndexedSrcSrcMod(ged_ins_t* ins, const GED_SRC_MOD value, const uint8_t index)
2067 {
2068 if (0 == index) return GED_SetSrc0SrcMod(ins, value);
2069 if (1 == index) return GED_SetSrc1SrcMod(ins, value);
2070 if (2 == index) return GED_SetSrc2SrcMod(ins, value);
2071 return GED_RETURN_VALUE_INVALID_OPERAND;
2072 }
2073 uint32_t GED_GetIndexedSrcSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2074 {
2075 if (0 == index) return GED_GetSrc0SubRegNum(ins, result);
2076 if (1 == index) return GED_GetSrc1SubRegNum(ins, result);
2077 if (2 == index) return GED_GetSrc2SubRegNum(ins, result);
2078 if (3 == index) return GED_GetSrc3SubRegNum(ins, result);
2079 if (4 == index) return GED_GetSrc4SubRegNum(ins, result);
2080 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2081 return (uint32_t)-1;
2082 }
2083 GED_RETURN_VALUE GED_SetIndexedSrcSubRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index)
2084 {
2085 if (0 == index) return GED_SetSrc0SubRegNum(ins, value);
2086 if (1 == index) return GED_SetSrc1SubRegNum(ins, value);
2087 if (2 == index) return GED_SetSrc2SubRegNum(ins, value);
2088 if (3 == index) return GED_SetSrc3SubRegNum(ins, value);
2089 if (4 == index) return GED_SetSrc4SubRegNum(ins, value);
2090 return GED_RETURN_VALUE_INVALID_OPERAND;
2091 }
2092 uint32_t GED_GetIndexedSrcSubRegNumByte(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2093 {
2094 if (0 == index) return GED_GetSrc0SubRegNumByte(ins, result);
2095 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2096 return (uint32_t)-1;
2097 }
2098 GED_RETURN_VALUE GED_SetIndexedSrcSubRegNumByte(ged_ins_t* ins, const uint32_t value, const uint8_t index)
2099 {
2100 if (0 == index) return GED_SetSrc0SubRegNumByte(ins, value);
2101 return GED_RETURN_VALUE_INVALID_OPERAND;
2102 }
2103 uint32_t GED_GetIndexedSrcVertStride(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2104 {
2105 if (0 == index) return GED_GetSrc0VertStride(ins, result);
2106 if (1 == index) return GED_GetSrc1VertStride(ins, result);
2107 if (2 == index) return GED_GetSrc2VertStride(ins, result);
2108 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2109 return (uint32_t)-1;
2110 }
2111 GED_RETURN_VALUE GED_SetIndexedSrcVertStride(ged_ins_t* ins, const uint32_t value, const uint8_t index)
2112 {
2113 if (0 == index) return GED_SetSrc0VertStride(ins, value);
2114 if (1 == index) return GED_SetSrc1VertStride(ins, value);
2115 if (2 == index) return GED_SetSrc2VertStride(ins, value);
2116 return GED_RETURN_VALUE_INVALID_OPERAND;
2117 }
2118 uint32_t GED_GetIndexedSrcWidth(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index)
2119 {
2120 if (0 == index) return GED_GetSrc0Width(ins, result);
2121 if (1 == index) return GED_GetSrc1Width(ins, result);
2122 if (NULL != result) *result = GED_RETURN_VALUE_INVALID_OPERAND;
2123 return (uint32_t)-1;
2124 }
2125 GED_RETURN_VALUE GED_SetIndexedSrcWidth(ged_ins_t* ins, const uint32_t value, const uint8_t index)
2126 {
2127 if (0 == index) return GED_SetSrc0Width(ins, value);
2128 if (1 == index) return GED_SetSrc1Width(ins, value);
2129 return GED_RETURN_VALUE_INVALID_OPERAND;
2130 }
2131 GED_ARCH_REG GED_GetArchReg(const uint32_t regNum, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2132 {
2133 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2134 if (NULL == result) result = &localResult;
2135 const uint32_t value = GEDInterpreter::InterpretPosition(regNum, GED_PSEUDO_FIELD_ArchReg, modelId, *result);
2136 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ARCH_REG)value : GED_ARCH_REG_INVALID;
2137 }
2138 GED_RETURN_VALUE GED_SetArchReg(uint32_t* regNum, const GED_MODEL modelId, const GED_ARCH_REG archReg)
2139 {
2140 return GEDInterpreter::SetInterpretedPosition(*regNum, GED_PSEUDO_FIELD_ArchReg, modelId, archReg);
2141 }
2142 uint32_t GED_GetArchRegNum(const uint32_t regNum, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2143 {
2144 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2145 if (NULL == result) result = &localResult;
2146 return GEDInterpreter::InterpretPosition(regNum, GED_PSEUDO_FIELD_ArchRegNum, modelId, *result);
2147 }
2148 GED_RETURN_VALUE GED_SetArchRegNum(uint32_t* regNum, const GED_MODEL modelId, const uint32_t archRegNum)
2149 {
2150 return GEDInterpreter::SetInterpretedPosition(*regNum, GED_PSEUDO_FIELD_ArchRegNum, modelId, archRegNum);
2151 }
2152 GED_SWIZZLE GED_GetSwizzleX(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2153 {
2154 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2155 if (NULL == result) result = &localResult;
2156 const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleX, modelId, *result);
2157 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID;
2158 }
2159 GED_RETURN_VALUE GED_SetSwizzleX(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle)
2160 {
2161 return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleX, modelId, swizzle);
2162 }
2163 GED_SWIZZLE GED_GetSwizzleY(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2164 {
2165 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2166 if (NULL == result) result = &localResult;
2167 const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleY, modelId, *result);
2168 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID;
2169 }
2170 GED_RETURN_VALUE GED_SetSwizzleY(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle)
2171 {
2172 return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleY, modelId, swizzle);
2173 }
2174 GED_SWIZZLE GED_GetSwizzleZ(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2175 {
2176 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2177 if (NULL == result) result = &localResult;
2178 const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleZ, modelId, *result);
2179 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID;
2180 }
2181 GED_RETURN_VALUE GED_SetSwizzleZ(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle)
2182 {
2183 return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleZ, modelId, swizzle);
2184 }
2185 GED_SWIZZLE GED_GetSwizzleW(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2186 {
2187 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2188 if (NULL == result) result = &localResult;
2189 const uint32_t value = GEDInterpreter::InterpretPosition(chanSel, GED_PSEUDO_FIELD_SwizzleW, modelId, *result);
2190 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SWIZZLE)value : GED_SWIZZLE_INVALID;
2191 }
2192 GED_RETURN_VALUE GED_SetSwizzleW(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle)
2193 {
2194 return GEDInterpreter::SetInterpretedPosition(*chanSel, GED_PSEUDO_FIELD_SwizzleW, modelId, swizzle);
2195 }
2196 uint32_t GED_GetMessageLength(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2197 {
2198 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2199 if (NULL == result) result = &localResult;
2200 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageLength, modelId, *result);
2201 }
2202 GED_RETURN_VALUE GED_SetMessageLength(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t length)
2203 {
2204 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageLength, modelId, length);
2205 }
2206 uint32_t GED_GetResponseLength(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2207 {
2208 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2209 if (NULL == result) result = &localResult;
2210 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_ResponseLength, modelId, *result);
2211 }
2212 GED_RETURN_VALUE GED_SetResponseLength(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t length)
2213 {
2214 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_ResponseLength, modelId, length);
2215 }
2216 GED_HEADER_PRESENT GED_GetHeaderPresent(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2217 {
2218 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2219 if (NULL == result) result = &localResult;
2220 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_HeaderPresent, modelId, *result);
2221 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_HEADER_PRESENT)value : GED_HEADER_PRESENT_INVALID;
2222 }
2223 GED_RETURN_VALUE GED_SetHeaderPresent(uint32_t* msgDesc, const GED_MODEL modelId, const GED_HEADER_PRESENT headerPresent)
2224 {
2225 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_HeaderPresent, modelId, headerPresent);
2226 }
2227 GED_MESSAGE_TYPE GED_GetMessageTypeDP_SAMPLER(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2228 {
2229 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2230 if (NULL == result) result = &localResult;
2231 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_SAMPLER, modelId, *result);
2232 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2233 }
2234 GED_RETURN_VALUE GED_SetMessageTypeDP_SAMPLER(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2235 {
2236 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_SAMPLER, modelId, messageType);
2237 }
2238 GED_MESSAGE_TYPE GED_GetMessageTypeDP_RC(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2239 {
2240 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2241 if (NULL == result) result = &localResult;
2242 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_RC, modelId, *result);
2243 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2244 }
2245 GED_RETURN_VALUE GED_SetMessageTypeDP_RC(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2246 {
2247 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_RC, modelId, messageType);
2248 }
2249 GED_MESSAGE_TYPE GED_GetMessageTypeDP_CC(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2250 {
2251 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2252 if (NULL == result) result = &localResult;
2253 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CC, modelId, *result);
2254 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2255 }
2256 GED_RETURN_VALUE GED_SetMessageTypeDP_CC(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2257 {
2258 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CC, modelId, messageType);
2259 }
2260 GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC0(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2261 {
2262 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2263 if (NULL == result) result = &localResult;
2264 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0, modelId, *result);
2265 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2266 }
2267 GED_RETURN_VALUE GED_SetMessageTypeDP_DC0(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2268 {
2269 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0, modelId, messageType);
2270 }
2271 GED_SLOT_GROUP GED_GetTypedSurfaceSlotGroup(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2272 {
2273 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2274 if (NULL == result) result = &localResult;
2275 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_TypedSurfaceSlotGroup, modelId, *result);
2276 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SLOT_GROUP)value : GED_SLOT_GROUP_INVALID;
2277 }
2278 GED_RETURN_VALUE GED_SetTypedSurfaceSlotGroup(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SLOT_GROUP slotGroup)
2279 {
2280 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_TypedSurfaceSlotGroup, modelId, slotGroup);
2281 }
2282 GED_SLOT_GROUP GED_GetTypedAtomicSlotGroup(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2283 {
2284 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2285 if (NULL == result) result = &localResult;
2286 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_TypedAtomicSlotGroup, modelId, *result);
2287 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SLOT_GROUP)value : GED_SLOT_GROUP_INVALID;
2288 }
2289 GED_RETURN_VALUE GED_SetTypedAtomicSlotGroup(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SLOT_GROUP slotGroup)
2290 {
2291 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_TypedAtomicSlotGroup, modelId, slotGroup);
2292 }
2293 GED_SIMDMODE GED_GetUntypedSurfaceSIMDMode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2294 {
2295 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2296 if (NULL == result) result = &localResult;
2297 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_UntypedSurfaceSIMDMode, modelId, *result);
2298 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SIMDMODE)value : GED_SIMDMODE_INVALID;
2299 }
2300 GED_RETURN_VALUE GED_SetUntypedSurfaceSIMDMode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SIMDMODE simdMode)
2301 {
2302 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_UntypedSurfaceSIMDMode, modelId, simdMode);
2303 }
2304 GED_SIMDMODE GED_GetUntypedAtomicSIMDMode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2305 {
2306 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2307 if (NULL == result) result = &localResult;
2308 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_UntypedAtomicSIMDMode, modelId, *result);
2309 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SIMDMODE)value : GED_SIMDMODE_INVALID;
2310 }
2311 GED_RETURN_VALUE GED_SetUntypedAtomicSIMDMode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SIMDMODE simdMode)
2312 {
2313 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_UntypedAtomicSIMDMode, modelId, simdMode);
2314 }
2315 uint32_t GED_GetInvalidateAfterRead(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2316 {
2317 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2318 if (NULL == result) result = &localResult;
2319 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_InvalidateAfterRead, modelId, *result);
2320 }
2321 GED_RETURN_VALUE GED_SetInvalidateAfterRead(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t invalidateAfterReadEnable)
2322 {
2323 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_InvalidateAfterRead, modelId, invalidateAfterReadEnable);
2324 }
2325 GED_BLOCK_SIZE GED_GetBlockSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2326 {
2327 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2328 if (NULL == result) result = &localResult;
2329 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_BlockSize, modelId, *result);
2330 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_BLOCK_SIZE)value : GED_BLOCK_SIZE_INVALID;
2331 }
2332 GED_RETURN_VALUE GED_SetBlockSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_BLOCK_SIZE blockSize)
2333 {
2334 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_BlockSize, modelId, blockSize);
2335 }
2336 GED_CHANNEL_MASK GED_GetRedChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2337 {
2338 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2339 if (NULL == result) result = &localResult;
2340 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_RedChannel, modelId, *result);
2341 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID;
2342 }
2343 GED_RETURN_VALUE GED_SetRedChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel)
2344 {
2345 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_RedChannel, modelId, channel);
2346 }
2347 GED_CHANNEL_MASK GED_GetGreenChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2348 {
2349 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2350 if (NULL == result) result = &localResult;
2351 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_GreenChannel, modelId, *result);
2352 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID;
2353 }
2354 GED_RETURN_VALUE GED_SetGreenChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel)
2355 {
2356 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_GreenChannel, modelId, channel);
2357 }
2358 GED_CHANNEL_MASK GED_GetBlueChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2359 {
2360 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2361 if (NULL == result) result = &localResult;
2362 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_BlueChannel, modelId, *result);
2363 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID;
2364 }
2365 GED_RETURN_VALUE GED_SetBlueChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel)
2366 {
2367 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_BlueChannel, modelId, channel);
2368 }
2369 GED_CHANNEL_MASK GED_GetAlphaChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2370 {
2371 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2372 if (NULL == result) result = &localResult;
2373 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_AlphaChannel, modelId, *result);
2374 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_CHANNEL_MASK)value : GED_CHANNEL_MASK_INVALID;
2375 }
2376 GED_RETURN_VALUE GED_SetAlphaChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel)
2377 {
2378 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_AlphaChannel, modelId, channel);
2379 }
2380 GED_RETURN_DATA_CONTROL GED_GetReturnDataControl(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_ReturnDataControl, modelId, *result);
2385 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_RETURN_DATA_CONTROL)value : GED_RETURN_DATA_CONTROL_INVALID;
2386 }
2387 GED_RETURN_VALUE GED_SetReturnDataControl(uint32_t* msgDesc, const GED_MODEL modelId, const GED_RETURN_DATA_CONTROL returnDataControl)
2388 {
2389 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_ReturnDataControl, modelId, returnDataControl);
2390 }
2391 GED_ATOMIC_OPERATION_TYPE GED_GetAtomicOperationType(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 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_AtomicOperationType, modelId, *result);
2396 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ATOMIC_OPERATION_TYPE)value : GED_ATOMIC_OPERATION_TYPE_INVALID;
2397 }
2398 GED_RETURN_VALUE GED_SetAtomicOperationType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_ATOMIC_OPERATION_TYPE operationType)
2399 {
2400 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_AtomicOperationType, modelId, operationType);
2401 }
2402 GED_ATOMIC_OPERATION_TYPE GED_GetAtomicCounterOperationType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2403 {
2404 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2405 if (NULL == result) result = &localResult;
2406 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_AtomicCounterOperationType, modelId, *result);
2407 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_ATOMIC_OPERATION_TYPE)value : GED_ATOMIC_OPERATION_TYPE_INVALID;
2408 }
2409 GED_RETURN_VALUE GED_SetAtomicCounterOperationType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_ATOMIC_OPERATION_TYPE
2410 operationType)
2411 {
2412 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_AtomicCounterOperationType, modelId, operationType);
2413 }
2414 GED_SUB_FUNC_ID GED_GetSubFuncID(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2415 {
2416 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2417 if (NULL == result) result = &localResult;
2418 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_SubFuncID, modelId, *result);
2419 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_SUB_FUNC_ID)value : GED_SUB_FUNC_ID_INVALID;
2420 }
2421 GED_RETURN_VALUE GED_SetSubFuncID(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SUB_FUNC_ID subFuncID)
2422 {
2423 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_SubFuncID, modelId, subFuncID);
2424 }
2425 uint32_t GED_GetBindingTableIndex(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2426 {
2427 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2428 if (NULL == result) result = &localResult;
2429 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_BindingTableIndex, modelId, *result);
2430 }
2431 GED_RETURN_VALUE GED_SetBindingTableIndex(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t bti)
2432 {
2433 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_BindingTableIndex, modelId, bti);
2434 }
2435 uint32_t GED_GetFuncControl(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2436 {
2437 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2438 if (NULL == result) result = &localResult;
2439 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_FuncControl, modelId, *result);
2440 }
2441 GED_RETURN_VALUE GED_SetFuncControl(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t fc)
2442 {
2443 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_FuncControl, modelId, fc);
2444 }
2445 GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC1(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2446 {
2447 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2448 if (NULL == result) result = &localResult;
2449 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC1, modelId, *result);
2450 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2451 }
2452 GED_RETURN_VALUE GED_SetMessageTypeDP_DC1(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2453 {
2454 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC1, modelId, messageType);
2455 }
2456 uint32_t GED_GetMessageTypeDP0Category(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2457 {
2458 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2459 if (NULL == result) result = &localResult;
2460 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP0Category, modelId, *result);
2461 }
2462 GED_RETURN_VALUE GED_SetMessageTypeDP0Category(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t category)
2463 {
2464 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP0Category, modelId, category);
2465 }
2466 GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC0Legacy(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2467 {
2468 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2469 if (NULL == result) result = &localResult;
2470 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0Legacy, modelId, *result);
2471 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2472 }
2473 GED_RETURN_VALUE GED_SetMessageTypeDP_DC0Legacy(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2474 {
2475 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0Legacy, modelId, messageType);
2476 }
2477 GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC0ScratchBlock(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2478 {
2479 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2480 if (NULL == result) result = &localResult;
2481 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0ScratchBlock, modelId, *result);
2482 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2483 }
2484 GED_RETURN_VALUE GED_SetMessageTypeDP_DC0ScratchBlock(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2485 {
2486 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC0ScratchBlock, modelId, messageType);
2487 }
2488 GED_MESSAGE_TYPE GED_GetMessageTypeDP_DC2(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2489 {
2490 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2491 if (NULL == result) result = &localResult;
2492 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC2, modelId, *result);
2493 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2494 }
2495 GED_RETURN_VALUE GED_SetMessageTypeDP_DC2(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2496 {
2497 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DC2, modelId, messageType);
2498 }
2499 GED_MESSAGE_TYPE GED_GetMessageTypeDP_DCRO(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2500 {
2501 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2502 if (NULL == result) result = &localResult;
2503 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DCRO, modelId, *result);
2504 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2505 }
2506 GED_RETURN_VALUE GED_SetMessageTypeDP_DCRO(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2507 {
2508 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_DCRO, modelId, messageType);
2509 }
2510 uint32_t GED_GetExMessageLength(const uint32_t exMsgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2511 {
2512 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2513 if (NULL == result) result = &localResult;
2514 return GEDInterpreter::InterpretPosition(exMsgDesc, GED_PSEUDO_FIELD_ExMessageLength, modelId, *result);
2515 }
2516 GED_RETURN_VALUE GED_SetExMessageLength(uint32_t* exMsgDesc, const GED_MODEL modelId, const uint32_t length)
2517 {
2518 return GEDInterpreter::SetInterpretedPosition(*exMsgDesc, GED_PSEUDO_FIELD_ExMessageLength, modelId, length);
2519 }
2520 GED_DP_OPCODE GED_GetDPOpcode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2521 {
2522 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2523 if (NULL == result) result = &localResult;
2524 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPOpcode, modelId, *result);
2525 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_OPCODE)value : GED_DP_OPCODE_INVALID;
2526 }
2527 GED_RETURN_VALUE GED_SetDPOpcode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_OPCODE opcode)
2528 {
2529 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPOpcode, modelId, opcode);
2530 }
2531 GED_DP_ADDR_SURFACE_TYPE GED_GetDPAddrSurfaceType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2532 {
2533 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2534 if (NULL == result) result = &localResult;
2535 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPAddrSurfaceType, modelId, *result);
2536 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_ADDR_SURFACE_TYPE)value : GED_DP_ADDR_SURFACE_TYPE_INVALID;
2537 }
2538 GED_RETURN_VALUE GED_SetDPAddrSurfaceType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_ADDR_SURFACE_TYPE AddrType)
2539 {
2540 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPAddrSurfaceType, modelId, AddrType);
2541 }
2542 GED_DP_VECT_SIZE GED_GetDPVectSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2543 {
2544 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2545 if (NULL == result) result = &localResult;
2546 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPVectSize, modelId, *result);
2547 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_VECT_SIZE)value : GED_DP_VECT_SIZE_INVALID;
2548 }
2549 GED_RETURN_VALUE GED_SetDPVectSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_VECT_SIZE VectSize)
2550 {
2551 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPVectSize, modelId, VectSize);
2552 }
2553 GED_DP_FLUSH_TYPE GED_GetDPFlushType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2554 {
2555 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2556 if (NULL == result) result = &localResult;
2557 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPFlushType, modelId, *result);
2558 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_FLUSH_TYPE)value : GED_DP_FLUSH_TYPE_INVALID;
2559 }
2560 GED_RETURN_VALUE GED_SetDPFlushType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_FLUSH_TYPE FlushType)
2561 {
2562 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPFlushType, modelId, FlushType);
2563 }
2564 GED_DP_TRANSPOSE GED_GetDPTranspose(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2565 {
2566 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2567 if (NULL == result) result = &localResult;
2568 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPTranspose, modelId, *result);
2569 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_TRANSPOSE)value : GED_DP_TRANSPOSE_INVALID;
2570 }
2571 GED_RETURN_VALUE GED_SetDPTranspose(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_TRANSPOSE Transpose)
2572 {
2573 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPTranspose, modelId, Transpose);
2574 }
2575 uint32_t GED_GetDPFlushRange(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2576 {
2577 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2578 if (NULL == result) result = &localResult;
2579 return GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPFlushRange, modelId, *result);
2580 }
2581 GED_RETURN_VALUE GED_SetDPFlushRange(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t range)
2582 {
2583 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPFlushRange, modelId, range);
2584 }
2585 GED_DP_DATA_SIZE GED_GetDPDataSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2586 {
2587 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2588 if (NULL == result) result = &localResult;
2589 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPDataSize, modelId, *result);
2590 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_DATA_SIZE)value : GED_DP_DATA_SIZE_INVALID;
2591 }
2592 GED_RETURN_VALUE GED_SetDPDataSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_DATA_SIZE DataSize)
2593 {
2594 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPDataSize, modelId, DataSize);
2595 }
2596 GED_DP_FENCE_SCOPE GED_GetDPFenceScope(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2597 {
2598 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2599 if (NULL == result) result = &localResult;
2600 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPFenceScope, modelId, *result);
2601 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_FENCE_SCOPE)value : GED_DP_FENCE_SCOPE_INVALID;
2602 }
2603 GED_RETURN_VALUE GED_SetDPFenceScope(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_FENCE_SCOPE FenceScope)
2604 {
2605 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPFenceScope, modelId, FenceScope);
2606 }
2607 GED_DP_ADDR_SIZE GED_GetDPAddrSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2608 {
2609 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2610 if (NULL == result) result = &localResult;
2611 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPAddrSize, modelId, *result);
2612 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DP_ADDR_SIZE)value : GED_DP_ADDR_SIZE_INVALID;
2613 }
2614 GED_RETURN_VALUE GED_SetDPAddrSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_ADDR_SIZE AddrSize)
2615 {
2616 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPAddrSize, modelId, AddrSize);
2617 }
2618 GED_DPCACHE_STORE GED_GetDPCacheStore(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2619 {
2620 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2621 if (NULL == result) result = &localResult;
2622 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPCacheStore, modelId, *result);
2623 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPCACHE_STORE)value : GED_DPCACHE_STORE_INVALID;
2624 }
2625 GED_RETURN_VALUE GED_SetDPCacheStore(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCACHE_STORE CacheStore)
2626 {
2627 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPCacheStore, modelId, CacheStore);
2628 }
2629 GED_DPCACHE_LOAD GED_GetDPCacheLoad(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2630 {
2631 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2632 if (NULL == result) result = &localResult;
2633 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPCacheLoad, modelId, *result);
2634 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPCACHE_LOAD)value : GED_DPCACHE_LOAD_INVALID;
2635 }
2636 GED_RETURN_VALUE GED_SetDPCacheLoad(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCACHE_LOAD CacheLoad)
2637 {
2638 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPCacheLoad, modelId, CacheLoad);
2639 }
2640 GED_DPADDR_REG_SIZE GED_GetDPAddrRegSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2641 {
2642 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2643 if (NULL == result) result = &localResult;
2644 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPAddrRegSize, modelId, *result);
2645 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPADDR_REG_SIZE)value : GED_DPADDR_REG_SIZE_INVALID;
2646 }
2647 GED_RETURN_VALUE GED_SetDPAddrRegSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPADDR_REG_SIZE AddrRegSize)
2648 {
2649 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPAddrRegSize, modelId, AddrRegSize);
2650 }
2651 GED_DPONE_ADDR_REG GED_GetDPOneAddrReg(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2652 {
2653 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2654 if (NULL == result) result = &localResult;
2655 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPOneAddrReg, modelId, *result);
2656 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPONE_ADDR_REG)value : GED_DPONE_ADDR_REG_INVALID;
2657 }
2658 GED_RETURN_VALUE GED_SetDPOneAddrReg(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPONE_ADDR_REG OneAddrReg)
2659 {
2660 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPOneAddrReg, modelId, OneAddrReg);
2661 }
2662 GED_DPCMASK GED_GetDPCmask(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2663 {
2664 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2665 if (NULL == result) result = &localResult;
2666 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_DPCmask, modelId, *result);
2667 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_DPCMASK)value : GED_DPCMASK_INVALID;
2668 }
2669 GED_RETURN_VALUE GED_SetDPCmask(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCMASK Cmask)
2670 {
2671 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_DPCmask, modelId, Cmask);
2672 }
2673 GED_MESSAGE_TYPE GED_GetMessageTypeDP_CONST(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result)
2674 {
2675 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
2676 if (NULL == result) result = &localResult;
2677 const uint32_t value = GEDInterpreter::InterpretPosition(msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CONST, modelId, *result);
2678 return (GED_RETURN_VALUE_SUCCESS == *result) ? (GED_MESSAGE_TYPE)value : GED_MESSAGE_TYPE_INVALID;
2679 }
2680 GED_RETURN_VALUE GED_SetMessageTypeDP_CONST(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE messageType)
2681 {
2682 return GEDInterpreter::SetInterpretedPosition(*msgDesc, GED_PSEUDO_FIELD_MessageTypeDP_CONST, modelId, messageType);
2683 }
2684
2685 #if GED_EXPERIMENTAL
2686 GED_RETURN_VALUE GED_SetRawBits(ged_ins_t* ins, uint8_t low, uint8_t high, const uint64_t value)
2687 {
2688 return reinterpret_cast<GEDIns*>(ins)->SetRawBits(low, high, value);
2689 }
2690 #endif // GED_EXPERIMENTAL
2691
2692 #ifndef GED_ACCESS_MODE_HIDDEN
2693 const char* GED_GetAccessModeString(GED_ACCESS_MODE AccessModeValue)
2694 {
2695 return AccessModeEnumeration[AccessModeValue];
2696
2697 }
2698 #endif // GED_ACCESS_MODE_HIDDEN
2699
2700 #ifndef GED_ACC_WR_CTRL_HIDDEN
2701 const char* GED_GetAccWrCtrlString(GED_ACC_WR_CTRL AccWrCtrlValue)
2702 {
2703 return AccWrCtrlEnumeration[AccWrCtrlValue];
2704
2705 }
2706 #endif // GED_ACC_WR_CTRL_HIDDEN
2707
2708 #ifndef GED_ADDR_MODE_HIDDEN
2709 const char* GED_GetAddrModeString(GED_ADDR_MODE AddrModeValue)
2710 {
2711 return AddrModeEnumeration[AddrModeValue];
2712
2713 }
2714 #endif // GED_ADDR_MODE_HIDDEN
2715
2716 #ifndef GED_ARCH_REG_HIDDEN
2717 const char* GED_GetArchRegString(GED_ARCH_REG ArchRegValue)
2718 {
2719 return ArchRegEnumeration[ArchRegValue];
2720
2721 }
2722 #endif // GED_ARCH_REG_HIDDEN
2723
2724 #ifndef GED_ATOMIC_OPERATION_TYPE_HIDDEN
2725 const char* GED_GetAtomicOperationTypeString(GED_ATOMIC_OPERATION_TYPE AtomicOperationTypeValue)
2726 {
2727 return AtomicOperationTypeEnumeration[AtomicOperationTypeValue];
2728
2729 }
2730 #endif // GED_ATOMIC_OPERATION_TYPE_HIDDEN
2731
2732 #ifndef GED_BLOCK_SIZE_HIDDEN
2733 const char* GED_GetBlockSizeString(GED_BLOCK_SIZE BlockSizeValue)
2734 {
2735 return BlockSizeEnumeration[BlockSizeValue];
2736
2737 }
2738 #endif // GED_BLOCK_SIZE_HIDDEN
2739
2740 #ifndef GED_BRANCH_CTRL_HIDDEN
2741 const char* GED_GetBranchCtrlString(GED_BRANCH_CTRL BranchCtrlValue)
2742 {
2743 return BranchCtrlEnumeration[BranchCtrlValue];
2744
2745 }
2746 #endif // GED_BRANCH_CTRL_HIDDEN
2747
2748 #ifndef GED_CHANNEL_MASK_HIDDEN
2749 const char* GED_GetChannelMaskString(GED_CHANNEL_MASK ChannelMaskValue)
2750 {
2751 return ChannelMaskEnumeration[ChannelMaskValue];
2752
2753 }
2754 #endif // GED_CHANNEL_MASK_HIDDEN
2755
2756 #ifndef GED_CHANNEL_MODE_HIDDEN
2757 const char* GED_GetChannelModeString(GED_CHANNEL_MODE ChannelModeValue)
2758 {
2759 return ChannelModeEnumeration[ChannelModeValue];
2760
2761 }
2762 #endif // GED_CHANNEL_MODE_HIDDEN
2763
2764 #ifndef GED_CHANNEL_OFFSET_HIDDEN
2765 const char* GED_GetChannelOffsetString(GED_CHANNEL_OFFSET ChannelOffsetValue)
2766 {
2767 return ChannelOffsetEnumeration[ChannelOffsetValue];
2768
2769 }
2770 #endif // GED_CHANNEL_OFFSET_HIDDEN
2771
2772 #ifndef GED_COND_MODIFIER_HIDDEN
2773 const char* GED_GetCondModifierString(GED_COND_MODIFIER CondModifierValue)
2774 {
2775 return CondModifierEnumeration[CondModifierValue];
2776
2777 }
2778 #endif // GED_COND_MODIFIER_HIDDEN
2779
2780 #ifndef GED_CONV_DST_DATATYPE_HIDDEN
2781 const char* GED_GetConvDstDatatypeString(GED_CONV_DST_DATATYPE ConvDstDatatypeValue)
2782 {
2783 return ConvDstDatatypeEnumeration[ConvDstDatatypeValue];
2784
2785 }
2786 #endif // GED_CONV_DST_DATATYPE_HIDDEN
2787
2788 #ifndef GED_CONV_SRC_DATATYPE_HIDDEN
2789 const char* GED_GetConvSrcDatatypeString(GED_CONV_SRC_DATATYPE ConvSrcDatatypeValue)
2790 {
2791 return ConvSrcDatatypeEnumeration[ConvSrcDatatypeValue];
2792
2793 }
2794 #endif // GED_CONV_SRC_DATATYPE_HIDDEN
2795
2796 #ifndef GED_CONV_SRC_DATATYPE2_HIDDEN
2797 const char* GED_GetConvSrcDatatype2String(GED_CONV_SRC_DATATYPE2 ConvSrcDatatype2Value)
2798 {
2799 return ConvSrcDatatype2Enumeration[ConvSrcDatatype2Value];
2800
2801 }
2802 #endif // GED_CONV_SRC_DATATYPE2_HIDDEN
2803
2804 #ifndef GED_DATA_TYPE_HIDDEN
2805 const char* GED_GetDataTypeString(GED_DATA_TYPE DataTypeValue)
2806 {
2807 return DataTypeEnumeration[DataTypeValue];
2808
2809 }
2810 #endif // GED_DATA_TYPE_HIDDEN
2811
2812 #ifndef GED_DATA_TYPE2_HIDDEN
2813 const char* GED_GetDataType2String(GED_DATA_TYPE2 DataType2Value)
2814 {
2815 return DataType2Enumeration[DataType2Value];
2816
2817 }
2818 #endif // GED_DATA_TYPE2_HIDDEN
2819
2820 #ifndef GED_DATA_TYPE_SCALE_HIDDEN
2821 const char* GED_GetDataTypeScaleString(GED_DATA_TYPE_SCALE DataTypeScaleValue)
2822 {
2823 return DataTypeScaleEnumeration[DataTypeScaleValue];
2824
2825 }
2826 #endif // GED_DATA_TYPE_SCALE_HIDDEN
2827
2828 #ifndef GED_DEBUG_CTRL_HIDDEN
2829 const char* GED_GetDebugCtrlString(GED_DEBUG_CTRL DebugCtrlValue)
2830 {
2831 return DebugCtrlEnumeration[DebugCtrlValue];
2832
2833 }
2834 #endif // GED_DEBUG_CTRL_HIDDEN
2835
2836 #ifndef GED_DEP_CTRL_HIDDEN
2837 const char* GED_GetDepCtrlString(GED_DEP_CTRL DepCtrlValue)
2838 {
2839 return DepCtrlEnumeration[DepCtrlValue];
2840
2841 }
2842 #endif // GED_DEP_CTRL_HIDDEN
2843
2844 #ifndef GED_DNSCL_MODE_HIDDEN
2845 const char* GED_GetDnsclModeString(GED_DNSCL_MODE DnsclModeValue)
2846 {
2847 return DnsclModeEnumeration[DnsclModeValue];
2848
2849 }
2850 #endif // GED_DNSCL_MODE_HIDDEN
2851
2852 #ifndef GED_DPADDR_REG_SIZE_HIDDEN
2853 const char* GED_GetDPAddrRegSizeString(GED_DPADDR_REG_SIZE DPAddrRegSizeValue)
2854 {
2855 return DPAddrRegSizeEnumeration[DPAddrRegSizeValue];
2856
2857 }
2858 #endif // GED_DPADDR_REG_SIZE_HIDDEN
2859
2860 #ifndef GED_DP_ADDR_SIZE_HIDDEN
2861 const char* GED_GetDpAddrSizeString(GED_DP_ADDR_SIZE DpAddrSizeValue)
2862 {
2863 return DpAddrSizeEnumeration[DpAddrSizeValue];
2864
2865 }
2866 #endif // GED_DP_ADDR_SIZE_HIDDEN
2867
2868 #ifndef GED_DP_ADDR_SURFACE_TYPE_HIDDEN
2869 const char* GED_GetDpAddrSurfaceTypeString(GED_DP_ADDR_SURFACE_TYPE DpAddrSurfaceTypeValue)
2870 {
2871 return DpAddrSurfaceTypeEnumeration[DpAddrSurfaceTypeValue];
2872
2873 }
2874 #endif // GED_DP_ADDR_SURFACE_TYPE_HIDDEN
2875
2876 #ifndef GED_DPCACHE_LOAD_HIDDEN
2877 const char* GED_GetDPCacheLoadString(GED_DPCACHE_LOAD DPCacheLoadValue)
2878 {
2879 return DPCacheLoadEnumeration[DPCacheLoadValue];
2880
2881 }
2882 #endif // GED_DPCACHE_LOAD_HIDDEN
2883
2884 #ifndef GED_DPCACHE_STORE_HIDDEN
2885 const char* GED_GetDPCacheStoreString(GED_DPCACHE_STORE DPCacheStoreValue)
2886 {
2887 return DPCacheStoreEnumeration[DPCacheStoreValue];
2888
2889 }
2890 #endif // GED_DPCACHE_STORE_HIDDEN
2891
2892 #ifndef GED_DPCMASK_HIDDEN
2893 const char* GED_GetDPCmaskString(GED_DPCMASK DPCmaskValue)
2894 {
2895 return DPCmaskEnumeration[DPCmaskValue];
2896
2897 }
2898 #endif // GED_DPCMASK_HIDDEN
2899
2900 #ifndef GED_DP_DATA_SIZE_HIDDEN
2901 const char* GED_GetDpDataSizeString(GED_DP_DATA_SIZE DpDataSizeValue)
2902 {
2903 return DpDataSizeEnumeration[DpDataSizeValue];
2904
2905 }
2906 #endif // GED_DP_DATA_SIZE_HIDDEN
2907
2908 #ifndef GED_DP_FENCE_SCOPE_HIDDEN
2909 const char* GED_GetDpFenceScopeString(GED_DP_FENCE_SCOPE DpFenceScopeValue)
2910 {
2911 return DpFenceScopeEnumeration[DpFenceScopeValue];
2912
2913 }
2914 #endif // GED_DP_FENCE_SCOPE_HIDDEN
2915
2916 #ifndef GED_DP_FLUSH_TYPE_HIDDEN
2917 const char* GED_GetDpFlushTypeString(GED_DP_FLUSH_TYPE DpFlushTypeValue)
2918 {
2919 return DpFlushTypeEnumeration[DpFlushTypeValue];
2920
2921 }
2922 #endif // GED_DP_FLUSH_TYPE_HIDDEN
2923
2924 #ifndef GED_DPONE_ADDR_REG_HIDDEN
2925 const char* GED_GetDPOneAddrRegString(GED_DPONE_ADDR_REG DPOneAddrRegValue)
2926 {
2927 return DPOneAddrRegEnumeration[DPOneAddrRegValue];
2928
2929 }
2930 #endif // GED_DPONE_ADDR_REG_HIDDEN
2931
2932 #ifndef GED_DP_OPCODE_HIDDEN
2933 const char* GED_GetDpOpcodeString(GED_DP_OPCODE DpOpcodeValue)
2934 {
2935 return DpOpcodeEnumeration[DpOpcodeValue];
2936
2937 }
2938 #endif // GED_DP_OPCODE_HIDDEN
2939
2940 #ifndef GED_DP_TRANSPOSE_HIDDEN
2941 const char* GED_GetDpTransposeString(GED_DP_TRANSPOSE DpTransposeValue)
2942 {
2943 return DpTransposeEnumeration[DpTransposeValue];
2944
2945 }
2946 #endif // GED_DP_TRANSPOSE_HIDDEN
2947
2948 #ifndef GED_DP_VECT_SIZE_HIDDEN
2949 const char* GED_GetDpVectSizeString(GED_DP_VECT_SIZE DpVectSizeValue)
2950 {
2951 return DpVectSizeEnumeration[DpVectSizeValue];
2952
2953 }
2954 #endif // GED_DP_VECT_SIZE_HIDDEN
2955
2956 #ifndef GED_DST_CHAN_EN_HIDDEN
2957 const char* GED_GetDstChanEnString(GED_DST_CHAN_EN DstChanEnValue)
2958 {
2959 return DstChanEnEnumeration[DstChanEnValue];
2960
2961 }
2962 #endif // GED_DST_CHAN_EN_HIDDEN
2963
2964 #ifndef GED_EOT_HIDDEN
2965 const char* GED_GetEOTString(GED_EOT EOTValue)
2966 {
2967 return EOTEnumeration[EOTValue];
2968
2969 }
2970 #endif // GED_EOT_HIDDEN
2971
2972 #ifndef GED_EXEC_MASK_OFFSET_CTRL_HIDDEN
2973 const char* GED_GetExecMaskOffsetCtrlString(GED_EXEC_MASK_OFFSET_CTRL ExecMaskOffsetCtrlValue)
2974 {
2975 return ExecMaskOffsetCtrlEnumeration[ExecMaskOffsetCtrlValue];
2976
2977 }
2978 #endif // GED_EXEC_MASK_OFFSET_CTRL_HIDDEN
2979
2980 #ifndef GED_EXECUTION_DATA_TYPE_HIDDEN
2981 const char* GED_GetExecutionDataTypeString(GED_EXECUTION_DATA_TYPE ExecutionDataTypeValue)
2982 {
2983 return ExecutionDataTypeEnumeration[ExecutionDataTypeValue];
2984
2985 }
2986 #endif // GED_EXECUTION_DATA_TYPE_HIDDEN
2987
2988 #ifndef GED_FUSION_CTRL_HIDDEN
2989 const char* GED_GetFusionCtrlString(GED_FUSION_CTRL FusionCtrlValue)
2990 {
2991 return FusionCtrlEnumeration[FusionCtrlValue];
2992
2993 }
2994 #endif // GED_FUSION_CTRL_HIDDEN
2995
2996 #ifndef GED_HEADER_PRESENT_HIDDEN
2997 const char* GED_GetHeaderPresentString(GED_HEADER_PRESENT HeaderPresentValue)
2998 {
2999 return HeaderPresentEnumeration[HeaderPresentValue];
3000
3001 }
3002 #endif // GED_HEADER_PRESENT_HIDDEN
3003
3004 #ifndef GED_IS_IMM_HIDDEN
3005 const char* GED_GetIsImmString(GED_IS_IMM IsImmValue)
3006 {
3007 return IsImmEnumeration[IsImmValue];
3008
3009 }
3010 #endif // GED_IS_IMM_HIDDEN
3011
3012 #ifndef GED_LFSR_FC_HIDDEN
3013 const char* GED_GetLfsrFCString(GED_LFSR_FC LfsrFCValue)
3014 {
3015 return LfsrFCEnumeration[LfsrFCValue];
3016
3017 }
3018 #endif // GED_LFSR_FC_HIDDEN
3019
3020 #ifndef GED_MASK_CTRL_HIDDEN
3021 const char* GED_GetMaskCtrlString(GED_MASK_CTRL MaskCtrlValue)
3022 {
3023 return MaskCtrlEnumeration[MaskCtrlValue];
3024
3025 }
3026 #endif // GED_MASK_CTRL_HIDDEN
3027
3028 #ifndef GED_MATH_FC_HIDDEN
3029 const char* GED_GetMathFCString(GED_MATH_FC MathFCValue)
3030 {
3031 return MathFCEnumeration[MathFCValue];
3032
3033 }
3034 #endif // GED_MATH_FC_HIDDEN
3035
3036 #ifndef GED_MATH_MACRO_EXT_HIDDEN
3037 const char* GED_GetMathMacroExtString(GED_MATH_MACRO_EXT MathMacroExtValue)
3038 {
3039 return MathMacroExtEnumeration[MathMacroExtValue];
3040
3041 }
3042 #endif // GED_MATH_MACRO_EXT_HIDDEN
3043
3044 #ifndef GED_MESSAGE_TYPE_HIDDEN
3045 const char* GED_GetMessageTypeString(GED_MESSAGE_TYPE MessageTypeValue)
3046 {
3047 return MessageTypeEnumeration[MessageTypeValue];
3048
3049 }
3050 #endif // GED_MESSAGE_TYPE_HIDDEN
3051
3052 #ifndef GED_NO_SRC_DEP_SET_HIDDEN
3053 const char* GED_GetNoSrcDepSetString(GED_NO_SRC_DEP_SET NoSrcDepSetValue)
3054 {
3055 return NoSrcDepSetEnumeration[NoSrcDepSetValue];
3056
3057 }
3058 #endif // GED_NO_SRC_DEP_SET_HIDDEN
3059
3060 #ifndef GED_OPCODE_HIDDEN
3061 const char* GED_GetOpcodeString(GED_OPCODE OpcodeValue)
3062 {
3063 return OpcodeEnumeration[OpcodeValue];
3064
3065 }
3066 #endif // GED_OPCODE_HIDDEN
3067
3068 #ifndef GED_PRECISION_HIDDEN
3069 const char* GED_GetPrecisionString(GED_PRECISION PrecisionValue)
3070 {
3071 return PrecisionEnumeration[PrecisionValue];
3072
3073 }
3074 #endif // GED_PRECISION_HIDDEN
3075
3076 #ifndef GED_PRED_CTRL_HIDDEN
3077 const char* GED_GetPredCtrlString(GED_PRED_CTRL PredCtrlValue)
3078 {
3079 return PredCtrlEnumeration[PredCtrlValue];
3080
3081 }
3082 #endif // GED_PRED_CTRL_HIDDEN
3083
3084 #ifndef GED_PRED_INV_HIDDEN
3085 const char* GED_GetPredInvString(GED_PRED_INV PredInvValue)
3086 {
3087 return PredInvEnumeration[PredInvValue];
3088
3089 }
3090 #endif // GED_PRED_INV_HIDDEN
3091
3092 #ifndef GED_REG_FILE_HIDDEN
3093 const char* GED_GetRegFileString(GED_REG_FILE RegFileValue)
3094 {
3095 return RegFileEnumeration[RegFileValue];
3096
3097 }
3098 #endif // GED_REG_FILE_HIDDEN
3099
3100 #ifndef GED_REP_CTRL_HIDDEN
3101 const char* GED_GetRepCtrlString(GED_REP_CTRL RepCtrlValue)
3102 {
3103 return RepCtrlEnumeration[RepCtrlValue];
3104
3105 }
3106 #endif // GED_REP_CTRL_HIDDEN
3107
3108 #ifndef GED_RETURN_DATA_CONTROL_HIDDEN
3109 const char* GED_GetReturnDataControlString(GED_RETURN_DATA_CONTROL ReturnDataControlValue)
3110 {
3111 return ReturnDataControlEnumeration[ReturnDataControlValue];
3112
3113 }
3114 #endif // GED_RETURN_DATA_CONTROL_HIDDEN
3115
3116 #ifndef GED_ROUNDING_MODE_HIDDEN
3117 const char* GED_GetRoundingModeString(GED_ROUNDING_MODE RoundingModeValue)
3118 {
3119 return RoundingModeEnumeration[RoundingModeValue];
3120
3121 }
3122 #endif // GED_ROUNDING_MODE_HIDDEN
3123
3124 #ifndef GED_SATURATE_HIDDEN
3125 const char* GED_GetSaturateString(GED_SATURATE SaturateValue)
3126 {
3127 return SaturateEnumeration[SaturateValue];
3128
3129 }
3130 #endif // GED_SATURATE_HIDDEN
3131
3132 #ifndef GED_SFID_HIDDEN
3133 const char* GED_GetSFIDString(GED_SFID SFIDValue)
3134 {
3135 return SFIDEnumeration[SFIDValue];
3136
3137 }
3138 #endif // GED_SFID_HIDDEN
3139
3140 #ifndef GED_SHUFFLE_FC_HIDDEN
3141 const char* GED_GetShuffleFCString(GED_SHUFFLE_FC ShuffleFCValue)
3142 {
3143 return ShuffleFCEnumeration[ShuffleFCValue];
3144
3145 }
3146 #endif // GED_SHUFFLE_FC_HIDDEN
3147
3148 #ifndef GED_SIMDMODE_HIDDEN
3149 const char* GED_GetSIMDModeString(GED_SIMDMODE SIMDModeValue)
3150 {
3151 return SIMDModeEnumeration[SIMDModeValue];
3152
3153 }
3154 #endif // GED_SIMDMODE_HIDDEN
3155
3156 #ifndef GED_SLOT_GROUP_HIDDEN
3157 const char* GED_GetSlotGroupString(GED_SLOT_GROUP SlotGroupValue)
3158 {
3159 return SlotGroupEnumeration[SlotGroupValue];
3160
3161 }
3162 #endif // GED_SLOT_GROUP_HIDDEN
3163
3164 #ifndef GED_SRC_MOD_HIDDEN
3165 const char* GED_GetSrcModString(GED_SRC_MOD SrcModValue)
3166 {
3167 return SrcModEnumeration[SrcModValue];
3168
3169 }
3170 #endif // GED_SRC_MOD_HIDDEN
3171
3172 #ifndef GED_SUB_BYTE_PRECISION_HIDDEN
3173 const char* GED_GetSubBytePrecisionString(GED_SUB_BYTE_PRECISION SubBytePrecisionValue)
3174 {
3175 return SubBytePrecisionEnumeration[SubBytePrecisionValue];
3176
3177 }
3178 #endif // GED_SUB_BYTE_PRECISION_HIDDEN
3179
3180 #ifndef GED_SUB_FUNC_ID_HIDDEN
3181 const char* GED_GetSubFuncIDString(GED_SUB_FUNC_ID SubFuncIDValue)
3182 {
3183 return SubFuncIDEnumeration[SubFuncIDValue];
3184
3185 }
3186 #endif // GED_SUB_FUNC_ID_HIDDEN
3187
3188 #ifndef GED_SWIZZLE_HIDDEN
3189 const char* GED_GetSwizzleString(GED_SWIZZLE SwizzleValue)
3190 {
3191 return SwizzleEnumeration[SwizzleValue];
3192
3193 }
3194 #endif // GED_SWIZZLE_HIDDEN
3195
3196 #ifndef GED_SYNC_FC_HIDDEN
3197 const char* GED_GetSyncFCString(GED_SYNC_FC SyncFCValue)
3198 {
3199 return SyncFCEnumeration[SyncFCValue];
3200
3201 }
3202 #endif // GED_SYNC_FC_HIDDEN
3203
3204 #ifndef GED_THREAD_CTRL_HIDDEN
3205 const char* GED_GetThreadCtrlString(GED_THREAD_CTRL ThreadCtrlValue)
3206 {
3207 return ThreadCtrlEnumeration[ThreadCtrlValue];
3208
3209 }
3210 #endif // GED_THREAD_CTRL_HIDDEN
3211 uint32_t GED_GetOperandWidth(const GED_DATA_TYPE datatype, const GED_MODEL modelId, GED_RETURN_VALUE* result)
3212 {
3213 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
3214 if (NULL == result) result = &localResult;
3215 if ((uint32_t)GED_DATA_TYPE_INVALID <= (uint32_t)datatype)
3216 {
3217 *result = GED_RETURN_VALUE_INVALID_VALUE;
3218 return datatype;
3219 }
3220 return GEDInterpreter::ReinterpretEnum(datatype, 0, modelId, *result);
3221 }
3222 uint32_t GED_GetOperandNumericType(const GED_DATA_TYPE datatype, const GED_MODEL modelId, GED_RETURN_VALUE* result)
3223 {
3224 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
3225 if (NULL == result) result = &localResult;
3226 if ((uint32_t)GED_DATA_TYPE_INVALID <= (uint32_t)datatype)
3227 {
3228 *result = GED_RETURN_VALUE_INVALID_VALUE;
3229 return datatype;
3230 }
3231 return GEDInterpreter::ReinterpretEnum(datatype, 1, modelId, *result);
3232 }
3233 uint32_t GED_GetNibCtrl(const GED_EXEC_MASK_OFFSET_CTRL execmaskoffsetctrl, const GED_MODEL modelId, GED_RETURN_VALUE* result)
3234 {
3235 GED_RETURN_VALUE localResult = GED_RETURN_VALUE_INVALID_FIELD;
3236 if (NULL == result) result = &localResult;
3237 if ((uint32_t)GED_EXEC_MASK_OFFSET_CTRL_INVALID <= (uint32_t)execmaskoffsetctrl)
3238 {
3239 *result = GED_RETURN_VALUE_INVALID_VALUE;
3240 return execmaskoffsetctrl;
3241 }
3242 return GEDInterpreter::ReinterpretEnum(execmaskoffsetctrl, 2, modelId, *result);
3243 }