Debian Codegraph @

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