Debian Codegraph @

visa/iga/GEDLibrary/GED_external/build/autogen-intel64/ged.h

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
16 #ifndef GED_H
17 #define GED_H
18
19
20 #ifndef GED_VALIDATION_API
21 #define GED_VALIDATION_API 0
22 #endif // GED_VALIDATION_API
23
24 #ifndef GED_EXPERIMENTAL
25 #define GED_EXPERIMENTAL 0
26 #endif // GED_EXPERIMENTAL
27
28 #ifndef GED_CALLCONV
29 #define GED_CALLCONV
30 #endif // GED_CALLCONV
31 #include "ged_basic_types.h"
32 #include "ged_enum_types.h"
33 #include "ged_ins_field.h"
34 #include "ged_enumerations.h"
35
36 /*!
37 * This is an opaque type for holding a GED instruction. The data should be accessed using the APIs supplied in this header. Before
38 * using a ged_ins_t object, one of @ref GED_DecodeIns or @ref GED_InitEmptyIns must be called. Calling any other function will result
39 * in undefined behavior.
40 */
41 typedef struct
42 {
43 char _dummy[40]; // dummy, do not access directly
44 } ged_ins_t;
45
46 /*!
47 * This enumeration holds the models supported by GED.
48 */
49 typedef enum
50 {
51
52 /*!
53 * GED Model Version: none
54 * Supported CPUs: none
55 */
56 GED_MODEL_NONE,
57
58 /*!
59 * GED Model Version: 7
60 * Supported CPUs: ivb
61 */
62 GED_MODEL_7,
63
64 /*!
65 * GED Model Version: 7.5
66 * Supported CPUs: hsw
67 */
68 GED_MODEL_7_5,
69
70 /*!
71 * GED Model Version: 8
72 * Supported CPUs: bdw
73 */
74 GED_MODEL_8,
75
76 /*!
77 * GED Model Version: 8.1
78 * Supported CPUs: chv
79 */
80 GED_MODEL_8_1,
81
82 /*!
83 * GED Model Version: 9
84 * Supported CPUs: skl
85 */
86 GED_MODEL_9,
87
88 /*!
89 * GED Model Version: 10
90 * Supported CPUs: cnl
91 */
92 GED_MODEL_10,
93
94 /*!
95 * GED Model Version: 11
96 * Supported CPUs: icl
97 */
98 GED_MODEL_11,
99
100 /*!
101 * GED Model Version: tgl
102 * Supported CPUs: DashG
103 */
104 GED_MODEL_TGL,
105
106 /*!
107 * GED Model Version: xe.hp
108 * Supported CPUs: XeHP
109 */
110 GED_MODEL_XE_HP,
111
112 /*!
113 * GED Model Version: xe.hpg
114 * Supported CPUs: XeHPG
115 */
116 GED_MODEL_XE_HPG,
117
118 /*!
119 * GED Model Version: xe.hpc.a
120 * Supported CPUs: XeHpcA
121 */
122 GED_MODEL_XE_HPC_A,
123
124 /*!
125 * GED Model Version: xe.hpc
126 * Supported CPUs: XeHpc
127 */
128 GED_MODEL_XE_HPC,
129
130 /*!
131 * GED Model Version: xe.lpg.md
132 * Supported CPUs: Xe_LPG_MD
133 */
134 GED_MODEL_XE_LPG_MD,
135
136 /*!
137 * GED Model Version: xe2
138 * Supported CPUs: Xe2
139 */
140 GED_MODEL_XE2,
141 GED_MODEL_INVALID
142 } GED_MODEL;
143
144 /*!
145 * Get the GED model version (in string form) for the given GED_MODEL Id.
146 * If the Id is not valid, return an empty string
147 *
148 * @param[in] model The GED model.
149 *
150 * @return The requested string, otherwise an empty string.
151 */
152 extern const char* GED_CALLCONV GED_GetModelVersionString(GED_MODEL model);
153
154 #ifdef __cplusplus
155 extern "C"
156 {
157 #endif // __cplusplus
158
159 /*!
160 * Get the string representation for the given GED_RETURN_VALUE enumerator.
161 * If the value is not valid, return an empty string
162 *
163 * @param[in] returnValue The given GED_RETURN_VALUE enumerator.
164 *
165 * @return The requested string.
166 */
167 extern const char* GED_CALLCONV GED_GetReturnValueString(GED_RETURN_VALUE returnValue);
168
169 /*!
170 * Get the padding of the GED_RETURN_VALUE enum's string representation in order for it to be aligned column-wise.
171 * If the value is not valid, return an empty string
172 *
173 * @param[in] returnValue The given GED_RETURN_VALUE enumerator.
174 *
175 * @return The requested pad.
176 */
177 extern const char* GED_CALLCONV GED_GetReturnValuePad(GED_RETURN_VALUE returnValue);
178
179 /*!
180 * Initialize an empty ged_ins_t object and set its opcode. Can be called to initialize a newly allocated object or to clear an
181 * existing one. Typically, this function is used for encoding instructions from scratch. For decoding, one may call @ref
182 * GED_DecodeIns directly without calling this function first.
183 *
184 * @param[in] modelId The GED model for the instruction.
185 * @param[in,out] ins Pointer to the ged_ins_t object to be initialized.
186 * @param[in] opcode The new opcode.
187 *
188 * @return GED_RETURN_VALUE indicating success or invalid opcode.
189 */
190 extern GED_RETURN_VALUE GED_CALLCONV GED_InitEmptyIns(const GED_MODEL modelId, ged_ins_t* ins, GED_OPCODE opcode);
191
192 /*!
193 * Decode a single instruction. If the array of raw bytes includes several instructions, only one instruction will be decoded and the
194 * remaining bytes will be ignored.
195 *
196 * @param[in] modelId The GED model for the instruction.
197 * @param[in] rawBytes An array of size "size" with the raw bytes of the instruction to decode.
198 * @param[in] size The number of bytes in the "rawBytes" array.
199 * @param[out] ins Pointer in which to store the decoded instruction (must be preallocated by the calling function).
200 *
201 * @return GED_RETURN_VALUE indicating success or decoding error.
202 */
203 extern GED_RETURN_VALUE GED_CALLCONV GED_DecodeIns(const GED_MODEL modelId, const unsigned char* rawBytes, const uint32_t size,
204 ged_ins_t* ins);
205
206 /*!
207 * Encode the given instruction and store the raw bytes in the given array. If the instruction cannot be encoded as requested, the
208 * array will remain unchanged. The array is expected to be preallocated and large enough to hold the requested instruction bytes. One
209 * may provide a NULL pointer instead, in which case the encoding operation will occur, validating the instruction, but the encoded
210 * bytes will not be stored.
211 *
212 * @param[in] ins Pointer to the instruction object.
213 * @param[in] insType Determine if instruction should be compacted or not. If the instruction does not have a valid compact
214 * form, the rawBytes buffer will remain unchanged and error will be returned.
215 * @param[out] rawBytes A preallocated buffer in which to store the instruction bytes. The buffer is expected to be large
216 * enough to hold the requested instruction bytes. One may pass a NULL pointer, in which case the encoded
217 * instruction bytes will not be stored.
218 *
219 * @return GED_RETURN_VALUE indicating success or encoding error.
220 */
221 extern GED_RETURN_VALUE GED_CALLCONV GED_EncodeIns(ged_ins_t* ins, const GED_INS_TYPE insType, unsigned char* rawBytes);
222
223 /*!
224 * Get the size (in bytes) of the given instruction. See @ref GED_IsCompact for details.
225 *
226 * @param[in] ins Pointer to the instruction object.
227 *
228 * @return The size (in bytes) of the given instruction.
229 */
230 extern uint32_t GED_CALLCONV GED_InsSize(const ged_ins_t* ins);
231
232 /*!
233 * Check if the given instruction was modified (i.e. on of the instruction field setter APIs was called) since it was last
234 * decoded/encoded (i.e. since the last call to @ref GED_DecodeIns or @ref GED_EncodeIns).
235 *
236 * @param[in] ins Pointer to the instruction object.
237 *
238 * @return TRUE if the instruction was modified since the last decode/encode operation.
239 */
240 extern bool GED_CALLCONV GED_InsModified(const ged_ins_t* ins);
241
242 #if GED_VALIDATION_API
243
244 /*!
245 * Count the amount of valid compact encodings the instruction has.
246 *
247 * @param[in] ins Pointer to the instruction object.
248 * @param[out] count The number of valid compact encodings the instruction has. If an instruction does not have a valid compact
249 * encoding, result is undefined.
250 *
251 * @return GED_RETURN_VALUE indicating success or encoding error.
252 */
253 extern GED_RETURN_VALUE GED_CALLCONV GED_CountCompactEncodings(ged_ins_t* ins, unsigned int& count);
254
255 /*!
256 * Generate all valid compact encodings of the instruction. The buffer is expected to be preallocated and large enough to hold the
257 * requested instructions' bytes. Use @ref GED_CountCompactEncodings get the amount of expected compact encodings.
258 *
259 * @param[in] ins Pointer to the instruction object.
260 * @param[in] size The size of the preallocated buffer compactBytesArray, in bytes.
261 * @param[out] compactBytesArray A preallocated buffer in which to store the instruction bytes. The buffer is expected to be
262 * large enough to hold the requested instructions' bytes.
263 *
264 * @return GED_RETURN_VALUE indicating success or encoding error.
265 */
266 extern GED_RETURN_VALUE GED_CALLCONV GED_GetCompactEncodings(ged_ins_t* ins, const unsigned int size, unsigned char*
267 compactBytesArray);
268
269 /*!
270 * Print all bit positions and their mapping of given field in the instruction.If a field is invalid, print accordingly. If a fragment
271 * of the field has a fixed value("padded"), print its fixed value
272 *
273 * @param[in] ins Pointer to the instruction object containing the field in question.
274 * @param[in] field The requested field.
275 *
276 * @return GED_RETURN_VALUE indicating success or decoding error.
277 */
278 extern GED_RETURN_VALUE GED_CALLCONV GED_PrintFieldBitLocation(const ged_ins_t* ins, const GED_INS_FIELD field);
279 #endif // GED_VALIDATION_API
280
281 /*!
282 * Return encoding of field within instruction bytes
283 *
284 * @param[in] ins Pointer to the instruction object containing the field in question.
285 * @param[in] field The requested field.
286 * @param[in] fragments Array of fragments.
287 * @param[in] length Length of fragments array.
288 *
289 * @return GED_RETURN_VALUE indicating success or decoding error.
290 */
291 extern GED_RETURN_VALUE GED_CALLCONV GED_QueryFieldBitLocation(const ged_ins_t* ins, const GED_INS_FIELD field, uint32_t * fragments,
292 uint32_t * length);
293
294 /*!
295 * Get the size (in bits) of the given field within the given instruction. If the field is invalid for the given instruction, the
296 * function returns 0.
297 *
298 * @param[in] ins Pointer to the instruction object containing the field in question.
299 * @param[in] field The requested field.
300 *
301 * @return The field's size (in bits) if it is valid, 0 otherwise.
302 */
303 extern uint32_t GED_CALLCONV GED_FieldSize(const ged_ins_t* ins, const GED_INS_FIELD field);
304
305 /*!
306 * Get the given instruction's opcode. The function returns an enumeration value, use @ref GED_GetMnemonic to obtain the instruction's
307 * string mnemonic.
308 *
309 * @param[in] ins Pointer to the decoded instruction object.
310 *
311 * @return Opcode enumeration value as defined in ged_enumerations.h.
312 */
313 extern GED_OPCODE GED_CALLCONV GED_GetOpcode(const ged_ins_t* ins);
314
315 /*!
316 * Get the given instruction's mnemonic.
317 *
318 * @param[in] ins Pointer to the decoded instruction object.
319 *
320 * @return String representation of the instruction's mnemonic.
321 */
322 extern const char* GED_CALLCONV GED_GetMnemonic(const ged_ins_t* ins);
323
324 /*!
325 * Set a new opcode in the given instruction. If the instruction layout changes due to the new opcode, all other bits will be cleared
326 * (effectively invalidating all the instruction fields). If the layout does not change, all the other instruction fields' values will
327 * remain unchanged.
328 *
329 * @param[in,out] ins Pointer to the decoded instruction object.
330 * @param[in] opcode The new opcode.
331 *
332 * @return GED_RETURN_VALUE indicating success or encoding error.
333 */
334 extern GED_RETURN_VALUE GED_CALLCONV GED_SetOpcode(ged_ins_t* ins, const GED_OPCODE opcode);
335
336 /*!
337 * Check if the given instruction is compacted. For decoded instructions it reflects the state of the CmptCtrl bit. For Encoded
338 * instructions, it reflects the encoded status. If @ref GED_EncodeIns was successfully called with compact=TRUE then the function
339 * will return TRUE. If @ref GED_EncodeIns was successfully called with compact=FALSE, then the function will return FALSE regardless
340 * of the validity of the instruction's compact form. This means that even if the instruction can be encoded as compact the function
341 * will still return FALSE. If the instruction was modified since it was last decoded/encoded i.e. @ref GED_InsModified returns TRUE,
342 * the behavior of this function is undefined and one must call @ref GED_EncodeIns in order to get a the correct result.
343 *
344 * @param[in] ins Pointer to the decoded instruction object.
345 *
346 * @return TRUE if the instruction is compacted i.e. in its compact form, FALSE, otherwise.
347 */
348 extern bool GED_CALLCONV GED_IsCompact(const ged_ins_t* ins);
349
350 /*!
351 * The function returns GED model of the specified instruction.
352 *
353 * @param[in] ins Pointer to the decoded instruction object.
354 *
355 * @return Model ID
356 */
357 extern GED_MODEL GED_CALLCONV GED_GetModel(const ged_ins_t* ins);
358
359 /*!
360 * Get the value of the ___SrcImm field in the given instruction. See @ref GED_INS_FIELD____SrcImm for the field's description.
361 *
362 * @param[in] ins Pointer to the decoded instruction object.
363 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
364 * which caused the failure.
365 *
366 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
367 * it is important to check the GED_RETURN_VALUE result.
368 *
369 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
370 */
371 extern uint32_t GED_CALLCONV GED_Get___SrcImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
372
373 /*!
374 * Set the value of the ___SrcImm field in the given instruction. See @ref GED_INS_FIELD____SrcImm for the field's description.
375 *
376 * @param[in,out] ins Pointer to the instruction object for encoding.
377 * @param[in] value The value to encode.
378 *
379 * @return GED_RETURN_VALUE indicating success or encoding error.
380 */
381 extern GED_RETURN_VALUE GED_CALLCONV GED_Set___SrcImm(ged_ins_t* ins, const uint32_t value);
382
383 /*!
384 * Get the value of the NumOfSourceOperands field in the given instruction. See @ref GED_INS_FIELD_NumOfSourceOperands for the field's
385 * description.
386 *
387 * @param[in] ins Pointer to the decoded instruction object.
388 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
389 * which caused the failure.
390 *
391 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
392 * it is important to check the GED_RETURN_VALUE result.
393 *
394 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
395 */
396 extern uint32_t GED_CALLCONV GED_GetNumOfSourceOperands(ged_ins_t* ins, GED_RETURN_VALUE* result);
397
398 /*!
399 * Get the value of the HasDestinationOperand field in the given instruction. See @ref GED_INS_FIELD_HasDestinationOperand for the
400 * field's description.
401 *
402 * @param[in] ins Pointer to the decoded instruction object.
403 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
404 * which caused the failure.
405 *
406 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
407 * it is important to check the GED_RETURN_VALUE result.
408 *
409 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
410 */
411 extern uint32_t GED_CALLCONV GED_GetHasDestinationOperand(ged_ins_t* ins, GED_RETURN_VALUE* result);
412
413 /*!
414 * Get the value of the AccessMode field in the given instruction. The function returns an enumeration value. To obtain the enum
415 * entry's string representation, use @ref GED_GetAccessModeString. See @ref GED_INS_FIELD_AccessMode for the field's description.
416 *
417 * @param[in] ins Pointer to the decoded instruction object.
418 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
419 * which caused the failure.
420 *
421 * @return AccessMode's enumeration if the field is valid, GED_ACCESS_MODE_INVALID otherwise.
422 *
423 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
424 */
425 extern GED_ACCESS_MODE GED_CALLCONV GED_GetAccessMode(ged_ins_t* ins, GED_RETURN_VALUE* result);
426
427 /*!
428 * Set the value of the AccessMode field in the given instruction. See @ref GED_INS_FIELD_AccessMode for the field's description.
429 *
430 * @param[in,out] ins Pointer to the instruction object for encoding.
431 * @param[in] value The value to encode.
432 *
433 * @return GED_RETURN_VALUE indicating success or encoding error.
434 */
435 extern GED_RETURN_VALUE GED_CALLCONV GED_SetAccessMode(ged_ins_t* ins, const GED_ACCESS_MODE value);
436
437 /*!
438 * Get the value of the MaskCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
439 * string representation, use @ref GED_GetMaskCtrlString. See @ref GED_INS_FIELD_MaskCtrl for the field's description.
440 *
441 * @param[in] ins Pointer to the decoded instruction object.
442 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
443 * which caused the failure.
444 *
445 * @return MaskCtrl's enumeration if the field is valid, GED_MASK_CTRL_INVALID otherwise.
446 *
447 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
448 */
449 extern GED_MASK_CTRL GED_CALLCONV GED_GetMaskCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
450
451 /*!
452 * Set the value of the MaskCtrl field in the given instruction. See @ref GED_INS_FIELD_MaskCtrl for the field's description.
453 *
454 * @param[in,out] ins Pointer to the instruction object for encoding.
455 * @param[in] value The value to encode.
456 *
457 * @return GED_RETURN_VALUE indicating success or encoding error.
458 */
459 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMaskCtrl(ged_ins_t* ins, const GED_MASK_CTRL value);
460
461 /*!
462 * Get the value of the DepCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
463 * string representation, use @ref GED_GetDepCtrlString. See @ref GED_INS_FIELD_DepCtrl for the field's description.
464 *
465 * @param[in] ins Pointer to the decoded instruction object.
466 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
467 * which caused the failure.
468 *
469 * @return DepCtrl's enumeration if the field is valid, GED_DEP_CTRL_INVALID otherwise.
470 *
471 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
472 */
473 extern GED_DEP_CTRL GED_CALLCONV GED_GetDepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
474
475 /*!
476 * Set the value of the DepCtrl field in the given instruction. See @ref GED_INS_FIELD_DepCtrl for the field's description.
477 *
478 * @param[in,out] ins Pointer to the instruction object for encoding.
479 * @param[in] value The value to encode.
480 *
481 * @return GED_RETURN_VALUE indicating success or encoding error.
482 */
483 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDepCtrl(ged_ins_t* ins, const GED_DEP_CTRL value);
484
485 /*!
486 * Get the value of the ExecMaskOffsetCtrl field in the given instruction. The function returns an enumeration value. To obtain the
487 * enum entry's string representation, use @ref GED_GetExecMaskOffsetCtrlString. See @ref GED_INS_FIELD_ExecMaskOffsetCtrl for the
488 * field's description.
489 *
490 * @param[in] ins Pointer to the decoded instruction object.
491 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
492 * which caused the failure.
493 *
494 * @return ExecMaskOffsetCtrl's enumeration if the field is valid, GED_EXEC_MASK_OFFSET_CTRL_INVALID otherwise.
495 *
496 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
497 */
498 extern GED_EXEC_MASK_OFFSET_CTRL GED_CALLCONV GED_GetExecMaskOffsetCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
499
500 /*!
501 * Set the value of the ExecMaskOffsetCtrl field in the given instruction. See @ref GED_INS_FIELD_ExecMaskOffsetCtrl for the field's
502 * description.
503 *
504 * @param[in,out] ins Pointer to the instruction object for encoding.
505 * @param[in] value The value to encode.
506 *
507 * @return GED_RETURN_VALUE indicating success or encoding error.
508 */
509 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExecMaskOffsetCtrl(ged_ins_t* ins, const GED_EXEC_MASK_OFFSET_CTRL value);
510
511 /*!
512 * Get the value of the ChannelOffset field in the given instruction. The function returns an enumeration value. To obtain the enum
513 * entry's string representation, use @ref GED_GetChannelOffsetString. See @ref GED_INS_FIELD_ChannelOffset for the field's
514 * description.
515 *
516 * @param[in] ins Pointer to the decoded instruction object.
517 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
518 * which caused the failure.
519 *
520 * @return ChannelOffset's enumeration if the field is valid, GED_CHANNEL_OFFSET_INVALID otherwise.
521 *
522 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
523 */
524 extern GED_CHANNEL_OFFSET GED_CALLCONV GED_GetChannelOffset(ged_ins_t* ins, GED_RETURN_VALUE* result);
525
526 /*!
527 * Set the value of the ChannelOffset field in the given instruction. See @ref GED_INS_FIELD_ChannelOffset for the field's
528 * description.
529 *
530 * @param[in,out] ins Pointer to the instruction object for encoding.
531 * @param[in] value The value to encode.
532 *
533 * @return GED_RETURN_VALUE indicating success or encoding error.
534 */
535 extern GED_RETURN_VALUE GED_CALLCONV GED_SetChannelOffset(ged_ins_t* ins, const GED_CHANNEL_OFFSET value);
536
537 /*!
538 * Get the value of the ThreadCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
539 * entry's string representation, use @ref GED_GetThreadCtrlString. See @ref GED_INS_FIELD_ThreadCtrl for the field's description.
540 *
541 * @param[in] ins Pointer to the decoded instruction object.
542 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
543 * which caused the failure.
544 *
545 * @return ThreadCtrl's enumeration if the field is valid, GED_THREAD_CTRL_INVALID otherwise.
546 *
547 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
548 */
549 extern GED_THREAD_CTRL GED_CALLCONV GED_GetThreadCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
550
551 /*!
552 * Set the value of the ThreadCtrl field in the given instruction. See @ref GED_INS_FIELD_ThreadCtrl for the field's description.
553 *
554 * @param[in,out] ins Pointer to the instruction object for encoding.
555 * @param[in] value The value to encode.
556 *
557 * @return GED_RETURN_VALUE indicating success or encoding error.
558 */
559 extern GED_RETURN_VALUE GED_CALLCONV GED_SetThreadCtrl(ged_ins_t* ins, const GED_THREAD_CTRL value);
560
561 /*!
562 * Get the value of the PredCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
563 * string representation, use @ref GED_GetPredCtrlString. See @ref GED_INS_FIELD_PredCtrl for the field's description.
564 *
565 * @param[in] ins Pointer to the decoded instruction object.
566 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
567 * which caused the failure.
568 *
569 * @return PredCtrl's enumeration if the field is valid, GED_PRED_CTRL_INVALID otherwise.
570 *
571 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
572 */
573 extern GED_PRED_CTRL GED_CALLCONV GED_GetPredCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
574
575 /*!
576 * Set the value of the PredCtrl field in the given instruction. See @ref GED_INS_FIELD_PredCtrl for the field's description.
577 *
578 * @param[in,out] ins Pointer to the instruction object for encoding.
579 * @param[in] value The value to encode.
580 *
581 * @return GED_RETURN_VALUE indicating success or encoding error.
582 */
583 extern GED_RETURN_VALUE GED_CALLCONV GED_SetPredCtrl(ged_ins_t* ins, const GED_PRED_CTRL value);
584
585 /*!
586 * Get the value of the PredInv field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
587 * string representation, use @ref GED_GetPredInvString. See @ref GED_INS_FIELD_PredInv for the field's description.
588 *
589 * @param[in] ins Pointer to the decoded instruction object.
590 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
591 * which caused the failure.
592 *
593 * @return PredInv's enumeration if the field is valid, GED_PRED_INV_INVALID otherwise.
594 *
595 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
596 */
597 extern GED_PRED_INV GED_CALLCONV GED_GetPredInv(ged_ins_t* ins, GED_RETURN_VALUE* result);
598
599 /*!
600 * Set the value of the PredInv field in the given instruction. See @ref GED_INS_FIELD_PredInv for the field's description.
601 *
602 * @param[in,out] ins Pointer to the instruction object for encoding.
603 * @param[in] value The value to encode.
604 *
605 * @return GED_RETURN_VALUE indicating success or encoding error.
606 */
607 extern GED_RETURN_VALUE GED_CALLCONV GED_SetPredInv(ged_ins_t* ins, const GED_PRED_INV value);
608
609 /*!
610 * Get the value of the ExecSize field in the given instruction. See @ref GED_INS_FIELD_ExecSize for the field's description.
611 *
612 * @param[in] ins Pointer to the decoded instruction object.
613 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
614 * which caused the failure.
615 *
616 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
617 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
618 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
619 * GED_RETURN_VALUE result.
620 *
621 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
622 */
623 extern uint32_t GED_CALLCONV GED_GetExecSize(ged_ins_t* ins, GED_RETURN_VALUE* result);
624
625 /*!
626 * Set the value of the ExecSize field in the given instruction. See @ref GED_INS_FIELD_ExecSize for the field's description.
627 *
628 * @param[in,out] ins Pointer to the instruction object for encoding.
629 * @param[in] value The value to encode.
630 *
631 * @return GED_RETURN_VALUE indicating success or encoding error.
632 */
633 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExecSize(ged_ins_t* ins, const uint32_t value);
634
635 /*!
636 * Get the value of the CondModifier field in the given instruction. The function returns an enumeration value. To obtain the enum
637 * entry's string representation, use @ref GED_GetCondModifierString. See @ref GED_INS_FIELD_CondModifier for the field's description.
638 *
639 * @param[in] ins Pointer to the decoded instruction object.
640 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
641 * which caused the failure.
642 *
643 * @return CondModifier's enumeration if the field is valid, GED_COND_MODIFIER_INVALID otherwise.
644 *
645 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
646 */
647 extern GED_COND_MODIFIER GED_CALLCONV GED_GetCondModifier(ged_ins_t* ins, GED_RETURN_VALUE* result);
648
649 /*!
650 * Set the value of the CondModifier field in the given instruction. See @ref GED_INS_FIELD_CondModifier for the field's description.
651 *
652 * @param[in,out] ins Pointer to the instruction object for encoding.
653 * @param[in] value The value to encode.
654 *
655 * @return GED_RETURN_VALUE indicating success or encoding error.
656 */
657 extern GED_RETURN_VALUE GED_CALLCONV GED_SetCondModifier(ged_ins_t* ins, const GED_COND_MODIFIER value);
658
659 /*!
660 * Get the value of the AccWrCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
661 * entry's string representation, use @ref GED_GetAccWrCtrlString. See @ref GED_INS_FIELD_AccWrCtrl for the field's description.
662 *
663 * @param[in] ins Pointer to the decoded instruction object.
664 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
665 * which caused the failure.
666 *
667 * @return AccWrCtrl's enumeration if the field is valid, GED_ACC_WR_CTRL_INVALID otherwise.
668 *
669 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
670 */
671 extern GED_ACC_WR_CTRL GED_CALLCONV GED_GetAccWrCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
672
673 /*!
674 * Set the value of the AccWrCtrl field in the given instruction. See @ref GED_INS_FIELD_AccWrCtrl for the field's description.
675 *
676 * @param[in,out] ins Pointer to the instruction object for encoding.
677 * @param[in] value The value to encode.
678 *
679 * @return GED_RETURN_VALUE indicating success or encoding error.
680 */
681 extern GED_RETURN_VALUE GED_CALLCONV GED_SetAccWrCtrl(ged_ins_t* ins, const GED_ACC_WR_CTRL value);
682
683 /*!
684 * Get the value of the DebugCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
685 * entry's string representation, use @ref GED_GetDebugCtrlString. See @ref GED_INS_FIELD_DebugCtrl for the field's description.
686 *
687 * @param[in] ins Pointer to the decoded instruction object.
688 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
689 * which caused the failure.
690 *
691 * @return DebugCtrl's enumeration if the field is valid, GED_DEBUG_CTRL_INVALID otherwise.
692 *
693 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
694 */
695 extern GED_DEBUG_CTRL GED_CALLCONV GED_GetDebugCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
696
697 /*!
698 * Set the value of the DebugCtrl field in the given instruction. See @ref GED_INS_FIELD_DebugCtrl for the field's description.
699 *
700 * @param[in,out] ins Pointer to the instruction object for encoding.
701 * @param[in] value The value to encode.
702 *
703 * @return GED_RETURN_VALUE indicating success or encoding error.
704 */
705 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDebugCtrl(ged_ins_t* ins, const GED_DEBUG_CTRL value);
706
707 /*!
708 * Get the value of the Saturate field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
709 * string representation, use @ref GED_GetSaturateString. See @ref GED_INS_FIELD_Saturate for the field's description.
710 *
711 * @param[in] ins Pointer to the decoded instruction object.
712 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
713 * which caused the failure.
714 *
715 * @return Saturate's enumeration if the field is valid, GED_SATURATE_INVALID otherwise.
716 *
717 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
718 */
719 extern GED_SATURATE GED_CALLCONV GED_GetSaturate(ged_ins_t* ins, GED_RETURN_VALUE* result);
720
721 /*!
722 * Set the value of the Saturate field in the given instruction. See @ref GED_INS_FIELD_Saturate for the field's description.
723 *
724 * @param[in,out] ins Pointer to the instruction object for encoding.
725 * @param[in] value The value to encode.
726 *
727 * @return GED_RETURN_VALUE indicating success or encoding error.
728 */
729 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSaturate(ged_ins_t* ins, const GED_SATURATE value);
730
731 /*!
732 * Get the value of the DstRegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
733 * entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_DstRegFile for the field's description.
734 *
735 * @param[in] ins Pointer to the decoded instruction object.
736 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
737 * which caused the failure.
738 *
739 * @return DstRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
740 *
741 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
742 */
743 extern GED_REG_FILE GED_CALLCONV GED_GetDstRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);
744
745 /*!
746 * Set the value of the DstRegFile field in the given instruction. See @ref GED_INS_FIELD_DstRegFile for the field's description.
747 *
748 * @param[in,out] ins Pointer to the instruction object for encoding.
749 * @param[in] value The value to encode.
750 *
751 * @return GED_RETURN_VALUE indicating success or encoding error.
752 */
753 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstRegFile(ged_ins_t* ins, const GED_REG_FILE value);
754
755 /*!
756 * Get the value of the DstDataType field in the given instruction. The function returns an enumeration value. To obtain the enum
757 * entry's string representation, use @ref GED_GetDataTypeString. See @ref GED_INS_FIELD_DstDataType for the field's description.
758 *
759 * @param[in] ins Pointer to the decoded instruction object.
760 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
761 * which caused the failure.
762 *
763 * @return DstDataType's enumeration if the field is valid, GED_DATA_TYPE_INVALID otherwise.
764 *
765 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
766 */
767 extern GED_DATA_TYPE GED_CALLCONV GED_GetDstDataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
768
769 /*!
770 * Set the value of the DstDataType field in the given instruction. See @ref GED_INS_FIELD_DstDataType for the field's description.
771 *
772 * @param[in,out] ins Pointer to the instruction object for encoding.
773 * @param[in] value The value to encode.
774 *
775 * @return GED_RETURN_VALUE indicating success or encoding error.
776 */
777 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstDataType(ged_ins_t* ins, const GED_DATA_TYPE value);
778
779 /*!
780 * Get the value of the Src0RegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
781 * entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_Src0RegFile for the field's description.
782 *
783 * @param[in] ins Pointer to the decoded instruction object.
784 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
785 * which caused the failure.
786 *
787 * @return Src0RegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
788 *
789 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
790 */
791 extern GED_REG_FILE GED_CALLCONV GED_GetSrc0RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);
792
793 /*!
794 * Set the value of the Src0RegFile field in the given instruction. See @ref GED_INS_FIELD_Src0RegFile for the field's description.
795 *
796 * @param[in,out] ins Pointer to the instruction object for encoding.
797 * @param[in] value The value to encode.
798 *
799 * @return GED_RETURN_VALUE indicating success or encoding error.
800 */
801 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0RegFile(ged_ins_t* ins, const GED_REG_FILE value);
802
803 /*!
804 * Get the value of the Src0DataType field in the given instruction. The function returns an enumeration value. To obtain the enum
805 * entry's string representation, use @ref GED_GetDataTypeString. See @ref GED_INS_FIELD_Src0DataType for the field's description.
806 *
807 * @param[in] ins Pointer to the decoded instruction object.
808 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
809 * which caused the failure.
810 *
811 * @return Src0DataType's enumeration if the field is valid, GED_DATA_TYPE_INVALID otherwise.
812 *
813 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
814 */
815 extern GED_DATA_TYPE GED_CALLCONV GED_GetSrc0DataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
816
817 /*!
818 * Set the value of the Src0DataType field in the given instruction. See @ref GED_INS_FIELD_Src0DataType for the field's description.
819 *
820 * @param[in,out] ins Pointer to the instruction object for encoding.
821 * @param[in] value The value to encode.
822 *
823 * @return GED_RETURN_VALUE indicating success or encoding error.
824 */
825 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0DataType(ged_ins_t* ins, const GED_DATA_TYPE value);
826
827 /*!
828 * Get the value of the Src1RegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
829 * entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_Src1RegFile for the field's description.
830 *
831 * @param[in] ins Pointer to the decoded instruction object.
832 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
833 * which caused the failure.
834 *
835 * @return Src1RegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
836 *
837 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
838 */
839 extern GED_REG_FILE GED_CALLCONV GED_GetSrc1RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);
840
841 /*!
842 * Set the value of the Src1RegFile field in the given instruction. See @ref GED_INS_FIELD_Src1RegFile for the field's description.
843 *
844 * @param[in,out] ins Pointer to the instruction object for encoding.
845 * @param[in] value The value to encode.
846 *
847 * @return GED_RETURN_VALUE indicating success or encoding error.
848 */
849 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1RegFile(ged_ins_t* ins, const GED_REG_FILE value);
850
851 /*!
852 * Get the value of the Src1DataType field in the given instruction. The function returns an enumeration value. To obtain the enum
853 * entry's string representation, use @ref GED_GetDataTypeString. See @ref GED_INS_FIELD_Src1DataType for the field's description.
854 *
855 * @param[in] ins Pointer to the decoded instruction object.
856 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
857 * which caused the failure.
858 *
859 * @return Src1DataType's enumeration if the field is valid, GED_DATA_TYPE_INVALID otherwise.
860 *
861 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
862 */
863 extern GED_DATA_TYPE GED_CALLCONV GED_GetSrc1DataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
864
865 /*!
866 * Set the value of the Src1DataType field in the given instruction. See @ref GED_INS_FIELD_Src1DataType for the field's description.
867 *
868 * @param[in,out] ins Pointer to the instruction object for encoding.
869 * @param[in] value The value to encode.
870 *
871 * @return GED_RETURN_VALUE indicating success or encoding error.
872 */
873 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1DataType(ged_ins_t* ins, const GED_DATA_TYPE value);
874
875 /*!
876 * Get the value of the DstChanEn field in the given instruction. The function returns an enumeration value. To obtain the enum
877 * entry's string representation, use @ref GED_GetDstChanEnString. See @ref GED_INS_FIELD_DstChanEn for the field's description.
878 *
879 * @param[in] ins Pointer to the decoded instruction object.
880 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
881 * which caused the failure.
882 *
883 * @return DstChanEn's enumeration if the field is valid, GED_DST_CHAN_EN_INVALID otherwise.
884 *
885 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
886 */
887 extern GED_DST_CHAN_EN GED_CALLCONV GED_GetDstChanEn(ged_ins_t* ins, GED_RETURN_VALUE* result);
888
889 /*!
890 * Set the value of the DstChanEn field in the given instruction. See @ref GED_INS_FIELD_DstChanEn for the field's description.
891 *
892 * @param[in,out] ins Pointer to the instruction object for encoding.
893 * @param[in] value The value to encode.
894 *
895 * @return GED_RETURN_VALUE indicating success or encoding error.
896 */
897 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstChanEn(ged_ins_t* ins, const GED_DST_CHAN_EN value);
898
899 /*!
900 * Get the value of the DstSubRegNum field in the given instruction. See @ref GED_INS_FIELD_DstSubRegNum for the field's description.
901 *
902 * @param[in] ins Pointer to the decoded instruction object.
903 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
904 * which caused the failure.
905 *
906 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
907 * it is important to check the GED_RETURN_VALUE result.
908 *
909 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
910 */
911 extern uint32_t GED_CALLCONV GED_GetDstSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
912
913 /*!
914 * Set the value of the DstSubRegNum field in the given instruction. See @ref GED_INS_FIELD_DstSubRegNum for the field's description.
915 *
916 * @param[in,out] ins Pointer to the instruction object for encoding.
917 * @param[in] value The value to encode.
918 *
919 * @return GED_RETURN_VALUE indicating success or encoding error.
920 */
921 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstSubRegNum(ged_ins_t* ins, const uint32_t value);
922
923 /*!
924 * Get the value of the DstAddrImm field in the given instruction. See @ref GED_INS_FIELD_DstAddrImm for the field's description.
925 *
926 * @param[in] ins Pointer to the decoded instruction object.
927 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
928 * which caused the failure.
929 *
930 * @return The requested value if the field is valid, -1 otherwise. If -1 is a valid value for this field, it is important to
931 * check the GED_RETURN_VALUE result.
932 *
933 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
934 */
935 extern int32_t GED_CALLCONV GED_GetDstAddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
936
937 /*!
938 * Set the value of the DstAddrImm field in the given instruction. See @ref GED_INS_FIELD_DstAddrImm for the field's description.
939 *
940 * @param[in,out] ins Pointer to the instruction object for encoding.
941 * @param[in] value The value to encode.
942 *
943 * @return GED_RETURN_VALUE indicating success or encoding error.
944 */
945 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstAddrImm(ged_ins_t* ins, const int32_t value);
946
947 /*!
948 * Get the value of the DstRegNum field in the given instruction. See @ref GED_INS_FIELD_DstRegNum for the field's description.
949 *
950 * @param[in] ins Pointer to the decoded instruction object.
951 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
952 * which caused the failure.
953 *
954 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
955 * it is important to check the GED_RETURN_VALUE result.
956 *
957 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
958 */
959 extern uint32_t GED_CALLCONV GED_GetDstRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
960
961 /*!
962 * Set the value of the DstRegNum field in the given instruction. See @ref GED_INS_FIELD_DstRegNum for the field's description.
963 *
964 * @param[in,out] ins Pointer to the instruction object for encoding.
965 * @param[in] value The value to encode.
966 *
967 * @return GED_RETURN_VALUE indicating success or encoding error.
968 */
969 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstRegNum(ged_ins_t* ins, const uint32_t value);
970
971 /*!
972 * Get the value of the DstAddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_DstAddrSubRegNum for the field's
973 * description.
974 *
975 * @param[in] ins Pointer to the decoded instruction object.
976 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
977 * which caused the failure.
978 *
979 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
980 * it is important to check the GED_RETURN_VALUE result.
981 *
982 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
983 */
984 extern uint32_t GED_CALLCONV GED_GetDstAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
985
986 /*!
987 * Set the value of the DstAddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_DstAddrSubRegNum for the field's
988 * description.
989 *
990 * @param[in,out] ins Pointer to the instruction object for encoding.
991 * @param[in] value The value to encode.
992 *
993 * @return GED_RETURN_VALUE indicating success or encoding error.
994 */
995 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstAddrSubRegNum(ged_ins_t* ins, const uint32_t value);
996
997 /*!
998 * Get the value of the DstHorzStride field in the given instruction. See @ref GED_INS_FIELD_DstHorzStride for the field's
999 * description.
1000 *
1001 * @param[in] ins Pointer to the decoded instruction object.
1002 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1003 * which caused the failure.
1004 *
1005 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1006 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1007 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1008 * GED_RETURN_VALUE result.
1009 *
1010 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1011 */
1012 extern uint32_t GED_CALLCONV GED_GetDstHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
1013
1014 /*!
1015 * Set the value of the DstHorzStride field in the given instruction. See @ref GED_INS_FIELD_DstHorzStride for the field's
1016 * description.
1017 *
1018 * @param[in,out] ins Pointer to the instruction object for encoding.
1019 * @param[in] value The value to encode.
1020 *
1021 * @return GED_RETURN_VALUE indicating success or encoding error.
1022 */
1023 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstHorzStride(ged_ins_t* ins, const uint32_t value);
1024
1025 /*!
1026 * Get the value of the DstAddrMode field in the given instruction. The function returns an enumeration value. To obtain the enum
1027 * entry's string representation, use @ref GED_GetAddrModeString. See @ref GED_INS_FIELD_DstAddrMode for the field's description.
1028 *
1029 * @param[in] ins Pointer to the decoded instruction object.
1030 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1031 * which caused the failure.
1032 *
1033 * @return DstAddrMode's enumeration if the field is valid, GED_ADDR_MODE_INVALID otherwise.
1034 *
1035 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1036 */
1037 extern GED_ADDR_MODE GED_CALLCONV GED_GetDstAddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result);
1038
1039 /*!
1040 * Set the value of the DstAddrMode field in the given instruction. See @ref GED_INS_FIELD_DstAddrMode for the field's description.
1041 *
1042 * @param[in,out] ins Pointer to the instruction object for encoding.
1043 * @param[in] value The value to encode.
1044 *
1045 * @return GED_RETURN_VALUE indicating success or encoding error.
1046 */
1047 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstAddrMode(ged_ins_t* ins, const GED_ADDR_MODE value);
1048
1049 /*!
1050 * Get the value of the Src0ChanSel field in the given instruction. See @ref GED_INS_FIELD_Src0ChanSel for the field's description.
1051 *
1052 * @param[in] ins Pointer to the decoded instruction object.
1053 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1054 * which caused the failure.
1055 *
1056 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1057 * it is important to check the GED_RETURN_VALUE result.
1058 *
1059 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1060 */
1061 extern uint32_t GED_CALLCONV GED_GetSrc0ChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result);
1062
1063 /*!
1064 * Set the value of the Src0ChanSel field in the given instruction. See @ref GED_INS_FIELD_Src0ChanSel for the field's description.
1065 *
1066 * @param[in,out] ins Pointer to the instruction object for encoding.
1067 * @param[in] value The value to encode.
1068 *
1069 * @return GED_RETURN_VALUE indicating success or encoding error.
1070 */
1071 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0ChanSel(ged_ins_t* ins, const uint32_t value);
1072
1073 /*!
1074 * Get the value of the Src0SubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src0SubRegNum for the field's
1075 * description.
1076 *
1077 * @param[in] ins Pointer to the decoded instruction object.
1078 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1079 * which caused the failure.
1080 *
1081 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1082 * it is important to check the GED_RETURN_VALUE result.
1083 *
1084 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1085 */
1086 extern uint32_t GED_CALLCONV GED_GetSrc0SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1087
1088 /*!
1089 * Set the value of the Src0SubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src0SubRegNum for the field's
1090 * description.
1091 *
1092 * @param[in,out] ins Pointer to the instruction object for encoding.
1093 * @param[in] value The value to encode.
1094 *
1095 * @return GED_RETURN_VALUE indicating success or encoding error.
1096 */
1097 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0SubRegNum(ged_ins_t* ins, const uint32_t value);
1098
1099 /*!
1100 * Get the value of the Src0AddrImm field in the given instruction. See @ref GED_INS_FIELD_Src0AddrImm for the field's description.
1101 *
1102 * @param[in] ins Pointer to the decoded instruction object.
1103 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1104 * which caused the failure.
1105 *
1106 * @return The requested value if the field is valid, -1 otherwise. If -1 is a valid value for this field, it is important to
1107 * check the GED_RETURN_VALUE result.
1108 *
1109 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1110 */
1111 extern int32_t GED_CALLCONV GED_GetSrc0AddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
1112
1113 /*!
1114 * Set the value of the Src0AddrImm field in the given instruction. See @ref GED_INS_FIELD_Src0AddrImm for the field's description.
1115 *
1116 * @param[in,out] ins Pointer to the instruction object for encoding.
1117 * @param[in] value The value to encode.
1118 *
1119 * @return GED_RETURN_VALUE indicating success or encoding error.
1120 */
1121 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0AddrImm(ged_ins_t* ins, const int32_t value);
1122
1123 /*!
1124 * Get the value of the Src0RegNum field in the given instruction. See @ref GED_INS_FIELD_Src0RegNum for the field's description.
1125 *
1126 * @param[in] ins Pointer to the decoded instruction object.
1127 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1128 * which caused the failure.
1129 *
1130 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1131 * it is important to check the GED_RETURN_VALUE result.
1132 *
1133 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1134 */
1135 extern uint32_t GED_CALLCONV GED_GetSrc0RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1136
1137 /*!
1138 * Set the value of the Src0RegNum field in the given instruction. See @ref GED_INS_FIELD_Src0RegNum for the field's description.
1139 *
1140 * @param[in,out] ins Pointer to the instruction object for encoding.
1141 * @param[in] value The value to encode.
1142 *
1143 * @return GED_RETURN_VALUE indicating success or encoding error.
1144 */
1145 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0RegNum(ged_ins_t* ins, const uint32_t value);
1146
1147 /*!
1148 * Get the value of the Src0AddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src0AddrSubRegNum for the field's
1149 * description.
1150 *
1151 * @param[in] ins Pointer to the decoded instruction object.
1152 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1153 * which caused the failure.
1154 *
1155 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1156 * it is important to check the GED_RETURN_VALUE result.
1157 *
1158 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1159 */
1160 extern uint32_t GED_CALLCONV GED_GetSrc0AddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1161
1162 /*!
1163 * Set the value of the Src0AddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src0AddrSubRegNum for the field's
1164 * description.
1165 *
1166 * @param[in,out] ins Pointer to the instruction object for encoding.
1167 * @param[in] value The value to encode.
1168 *
1169 * @return GED_RETURN_VALUE indicating success or encoding error.
1170 */
1171 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0AddrSubRegNum(ged_ins_t* ins, const uint32_t value);
1172
1173 /*!
1174 * Get the value of the Src0SrcMod field in the given instruction. The function returns an enumeration value. To obtain the enum
1175 * entry's string representation, use @ref GED_GetSrcModString. See @ref GED_INS_FIELD_Src0SrcMod for the field's description.
1176 *
1177 * @param[in] ins Pointer to the decoded instruction object.
1178 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1179 * which caused the failure.
1180 *
1181 * @return Src0SrcMod's enumeration if the field is valid, GED_SRC_MOD_INVALID otherwise.
1182 *
1183 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1184 */
1185 extern GED_SRC_MOD GED_CALLCONV GED_GetSrc0SrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result);
1186
1187 /*!
1188 * Set the value of the Src0SrcMod field in the given instruction. See @ref GED_INS_FIELD_Src0SrcMod for the field's description.
1189 *
1190 * @param[in,out] ins Pointer to the instruction object for encoding.
1191 * @param[in] value The value to encode.
1192 *
1193 * @return GED_RETURN_VALUE indicating success or encoding error.
1194 */
1195 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0SrcMod(ged_ins_t* ins, const GED_SRC_MOD value);
1196
1197 /*!
1198 * Get the value of the Src0AddrMode field in the given instruction. The function returns an enumeration value. To obtain the enum
1199 * entry's string representation, use @ref GED_GetAddrModeString. See @ref GED_INS_FIELD_Src0AddrMode for the field's description.
1200 *
1201 * @param[in] ins Pointer to the decoded instruction object.
1202 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1203 * which caused the failure.
1204 *
1205 * @return Src0AddrMode's enumeration if the field is valid, GED_ADDR_MODE_INVALID otherwise.
1206 *
1207 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1208 */
1209 extern GED_ADDR_MODE GED_CALLCONV GED_GetSrc0AddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result);
1210
1211 /*!
1212 * Set the value of the Src0AddrMode field in the given instruction. See @ref GED_INS_FIELD_Src0AddrMode for the field's description.
1213 *
1214 * @param[in,out] ins Pointer to the instruction object for encoding.
1215 * @param[in] value The value to encode.
1216 *
1217 * @return GED_RETURN_VALUE indicating success or encoding error.
1218 */
1219 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0AddrMode(ged_ins_t* ins, const GED_ADDR_MODE value);
1220
1221 /*!
1222 * Get the value of the Src0HorzStride field in the given instruction. See @ref GED_INS_FIELD_Src0HorzStride for the field's
1223 * description.
1224 *
1225 * @param[in] ins Pointer to the decoded instruction object.
1226 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1227 * which caused the failure.
1228 *
1229 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1230 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1231 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1232 * GED_RETURN_VALUE result.
1233 *
1234 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1235 */
1236 extern uint32_t GED_CALLCONV GED_GetSrc0HorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
1237
1238 /*!
1239 * Set the value of the Src0HorzStride field in the given instruction. See @ref GED_INS_FIELD_Src0HorzStride for the field's
1240 * description.
1241 *
1242 * @param[in,out] ins Pointer to the instruction object for encoding.
1243 * @param[in] value The value to encode.
1244 *
1245 * @return GED_RETURN_VALUE indicating success or encoding error.
1246 */
1247 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0HorzStride(ged_ins_t* ins, const uint32_t value);
1248
1249 /*!
1250 * Get the value of the Src0Width field in the given instruction. See @ref GED_INS_FIELD_Src0Width for the field's description.
1251 *
1252 * @param[in] ins Pointer to the decoded instruction object.
1253 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1254 * which caused the failure.
1255 *
1256 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1257 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1258 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1259 * GED_RETURN_VALUE result.
1260 *
1261 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1262 */
1263 extern uint32_t GED_CALLCONV GED_GetSrc0Width(ged_ins_t* ins, GED_RETURN_VALUE* result);
1264
1265 /*!
1266 * Set the value of the Src0Width field in the given instruction. See @ref GED_INS_FIELD_Src0Width for the field's description.
1267 *
1268 * @param[in,out] ins Pointer to the instruction object for encoding.
1269 * @param[in] value The value to encode.
1270 *
1271 * @return GED_RETURN_VALUE indicating success or encoding error.
1272 */
1273 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0Width(ged_ins_t* ins, const uint32_t value);
1274
1275 /*!
1276 * Get the value of the Src0VertStride field in the given instruction. See @ref GED_INS_FIELD_Src0VertStride for the field's
1277 * description.
1278 *
1279 * @param[in] ins Pointer to the decoded instruction object.
1280 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1281 * which caused the failure.
1282 *
1283 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1284 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1285 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1286 * GED_RETURN_VALUE result.
1287 *
1288 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1289 */
1290 extern uint32_t GED_CALLCONV GED_GetSrc0VertStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
1291
1292 /*!
1293 * Set the value of the Src0VertStride field in the given instruction. See @ref GED_INS_FIELD_Src0VertStride for the field's
1294 * description.
1295 *
1296 * @param[in,out] ins Pointer to the instruction object for encoding.
1297 * @param[in] value The value to encode.
1298 *
1299 * @return GED_RETURN_VALUE indicating success or encoding error.
1300 */
1301 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0VertStride(ged_ins_t* ins, const uint32_t value);
1302
1303 /*!
1304 * Get the value of the FlagSubRegNum field in the given instruction. See @ref GED_INS_FIELD_FlagSubRegNum for the field's
1305 * description.
1306 *
1307 * @param[in] ins Pointer to the decoded instruction object.
1308 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1309 * which caused the failure.
1310 *
1311 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1312 * it is important to check the GED_RETURN_VALUE result.
1313 *
1314 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1315 */
1316 extern uint32_t GED_CALLCONV GED_GetFlagSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1317
1318 /*!
1319 * Set the value of the FlagSubRegNum field in the given instruction. See @ref GED_INS_FIELD_FlagSubRegNum for the field's
1320 * description.
1321 *
1322 * @param[in,out] ins Pointer to the instruction object for encoding.
1323 * @param[in] value The value to encode.
1324 *
1325 * @return GED_RETURN_VALUE indicating success or encoding error.
1326 */
1327 extern GED_RETURN_VALUE GED_CALLCONV GED_SetFlagSubRegNum(ged_ins_t* ins, const uint32_t value);
1328
1329 /*!
1330 * Get the value of the FlagRegNum field in the given instruction. See @ref GED_INS_FIELD_FlagRegNum for the field's description.
1331 *
1332 * @param[in] ins Pointer to the decoded instruction object.
1333 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1334 * which caused the failure.
1335 *
1336 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1337 * it is important to check the GED_RETURN_VALUE result.
1338 *
1339 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1340 */
1341 extern uint32_t GED_CALLCONV GED_GetFlagRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1342
1343 /*!
1344 * Set the value of the FlagRegNum field in the given instruction. See @ref GED_INS_FIELD_FlagRegNum for the field's description.
1345 *
1346 * @param[in,out] ins Pointer to the instruction object for encoding.
1347 * @param[in] value The value to encode.
1348 *
1349 * @return GED_RETURN_VALUE indicating success or encoding error.
1350 */
1351 extern GED_RETURN_VALUE GED_CALLCONV GED_SetFlagRegNum(ged_ins_t* ins, const uint32_t value);
1352
1353 /*!
1354 * Get the value of the Src1ChanSel field in the given instruction. See @ref GED_INS_FIELD_Src1ChanSel for the field's description.
1355 *
1356 * @param[in] ins Pointer to the decoded instruction object.
1357 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1358 * which caused the failure.
1359 *
1360 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1361 * it is important to check the GED_RETURN_VALUE result.
1362 *
1363 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1364 */
1365 extern uint32_t GED_CALLCONV GED_GetSrc1ChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result);
1366
1367 /*!
1368 * Set the value of the Src1ChanSel field in the given instruction. See @ref GED_INS_FIELD_Src1ChanSel for the field's description.
1369 *
1370 * @param[in,out] ins Pointer to the instruction object for encoding.
1371 * @param[in] value The value to encode.
1372 *
1373 * @return GED_RETURN_VALUE indicating success or encoding error.
1374 */
1375 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1ChanSel(ged_ins_t* ins, const uint32_t value);
1376
1377 /*!
1378 * Get the value of the Src1SubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src1SubRegNum for the field's
1379 * description.
1380 *
1381 * @param[in] ins Pointer to the decoded instruction object.
1382 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1383 * which caused the failure.
1384 *
1385 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1386 * it is important to check the GED_RETURN_VALUE result.
1387 *
1388 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1389 */
1390 extern uint32_t GED_CALLCONV GED_GetSrc1SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1391
1392 /*!
1393 * Set the value of the Src1SubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src1SubRegNum for the field's
1394 * description.
1395 *
1396 * @param[in,out] ins Pointer to the instruction object for encoding.
1397 * @param[in] value The value to encode.
1398 *
1399 * @return GED_RETURN_VALUE indicating success or encoding error.
1400 */
1401 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1SubRegNum(ged_ins_t* ins, const uint32_t value);
1402
1403 /*!
1404 * Get the value of the Src1AddrImm field in the given instruction. See @ref GED_INS_FIELD_Src1AddrImm for the field's description.
1405 *
1406 * @param[in] ins Pointer to the decoded instruction object.
1407 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1408 * which caused the failure.
1409 *
1410 * @return The requested value if the field is valid, -1 otherwise. If -1 is a valid value for this field, it is important to
1411 * check the GED_RETURN_VALUE result.
1412 *
1413 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1414 */
1415 extern int32_t GED_CALLCONV GED_GetSrc1AddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
1416
1417 /*!
1418 * Set the value of the Src1AddrImm field in the given instruction. See @ref GED_INS_FIELD_Src1AddrImm for the field's description.
1419 *
1420 * @param[in,out] ins Pointer to the instruction object for encoding.
1421 * @param[in] value The value to encode.
1422 *
1423 * @return GED_RETURN_VALUE indicating success or encoding error.
1424 */
1425 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1AddrImm(ged_ins_t* ins, const int32_t value);
1426
1427 /*!
1428 * Get the value of the Src1RegNum field in the given instruction. See @ref GED_INS_FIELD_Src1RegNum for the field's description.
1429 *
1430 * @param[in] ins Pointer to the decoded instruction object.
1431 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1432 * which caused the failure.
1433 *
1434 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1435 * it is important to check the GED_RETURN_VALUE result.
1436 *
1437 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1438 */
1439 extern uint32_t GED_CALLCONV GED_GetSrc1RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1440
1441 /*!
1442 * Set the value of the Src1RegNum field in the given instruction. See @ref GED_INS_FIELD_Src1RegNum for the field's description.
1443 *
1444 * @param[in,out] ins Pointer to the instruction object for encoding.
1445 * @param[in] value The value to encode.
1446 *
1447 * @return GED_RETURN_VALUE indicating success or encoding error.
1448 */
1449 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1RegNum(ged_ins_t* ins, const uint32_t value);
1450
1451 /*!
1452 * Get the value of the Src1AddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src1AddrSubRegNum for the field's
1453 * description.
1454 *
1455 * @param[in] ins Pointer to the decoded instruction object.
1456 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1457 * which caused the failure.
1458 *
1459 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1460 * it is important to check the GED_RETURN_VALUE result.
1461 *
1462 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1463 */
1464 extern uint32_t GED_CALLCONV GED_GetSrc1AddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1465
1466 /*!
1467 * Set the value of the Src1AddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src1AddrSubRegNum for the field's
1468 * description.
1469 *
1470 * @param[in,out] ins Pointer to the instruction object for encoding.
1471 * @param[in] value The value to encode.
1472 *
1473 * @return GED_RETURN_VALUE indicating success or encoding error.
1474 */
1475 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1AddrSubRegNum(ged_ins_t* ins, const uint32_t value);
1476
1477 /*!
1478 * Get the value of the Src1SrcMod field in the given instruction. The function returns an enumeration value. To obtain the enum
1479 * entry's string representation, use @ref GED_GetSrcModString. See @ref GED_INS_FIELD_Src1SrcMod for the field's description.
1480 *
1481 * @param[in] ins Pointer to the decoded instruction object.
1482 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1483 * which caused the failure.
1484 *
1485 * @return Src1SrcMod's enumeration if the field is valid, GED_SRC_MOD_INVALID otherwise.
1486 *
1487 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1488 */
1489 extern GED_SRC_MOD GED_CALLCONV GED_GetSrc1SrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result);
1490
1491 /*!
1492 * Set the value of the Src1SrcMod field in the given instruction. See @ref GED_INS_FIELD_Src1SrcMod for the field's description.
1493 *
1494 * @param[in,out] ins Pointer to the instruction object for encoding.
1495 * @param[in] value The value to encode.
1496 *
1497 * @return GED_RETURN_VALUE indicating success or encoding error.
1498 */
1499 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1SrcMod(ged_ins_t* ins, const GED_SRC_MOD value);
1500
1501 /*!
1502 * Get the value of the Src1AddrMode field in the given instruction. The function returns an enumeration value. To obtain the enum
1503 * entry's string representation, use @ref GED_GetAddrModeString. See @ref GED_INS_FIELD_Src1AddrMode for the field's description.
1504 *
1505 * @param[in] ins Pointer to the decoded instruction object.
1506 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1507 * which caused the failure.
1508 *
1509 * @return Src1AddrMode's enumeration if the field is valid, GED_ADDR_MODE_INVALID otherwise.
1510 *
1511 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1512 */
1513 extern GED_ADDR_MODE GED_CALLCONV GED_GetSrc1AddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result);
1514
1515 /*!
1516 * Set the value of the Src1AddrMode field in the given instruction. See @ref GED_INS_FIELD_Src1AddrMode for the field's description.
1517 *
1518 * @param[in,out] ins Pointer to the instruction object for encoding.
1519 * @param[in] value The value to encode.
1520 *
1521 * @return GED_RETURN_VALUE indicating success or encoding error.
1522 */
1523 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1AddrMode(ged_ins_t* ins, const GED_ADDR_MODE value);
1524
1525 /*!
1526 * Get the value of the Src1HorzStride field in the given instruction. See @ref GED_INS_FIELD_Src1HorzStride for the field's
1527 * description.
1528 *
1529 * @param[in] ins Pointer to the decoded instruction object.
1530 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1531 * which caused the failure.
1532 *
1533 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1534 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1535 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1536 * GED_RETURN_VALUE result.
1537 *
1538 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1539 */
1540 extern uint32_t GED_CALLCONV GED_GetSrc1HorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
1541
1542 /*!
1543 * Set the value of the Src1HorzStride field in the given instruction. See @ref GED_INS_FIELD_Src1HorzStride for the field's
1544 * description.
1545 *
1546 * @param[in,out] ins Pointer to the instruction object for encoding.
1547 * @param[in] value The value to encode.
1548 *
1549 * @return GED_RETURN_VALUE indicating success or encoding error.
1550 */
1551 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1HorzStride(ged_ins_t* ins, const uint32_t value);
1552
1553 /*!
1554 * Get the value of the Src1Width field in the given instruction. See @ref GED_INS_FIELD_Src1Width for the field's description.
1555 *
1556 * @param[in] ins Pointer to the decoded instruction object.
1557 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1558 * which caused the failure.
1559 *
1560 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1561 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1562 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1563 * GED_RETURN_VALUE result.
1564 *
1565 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1566 */
1567 extern uint32_t GED_CALLCONV GED_GetSrc1Width(ged_ins_t* ins, GED_RETURN_VALUE* result);
1568
1569 /*!
1570 * Set the value of the Src1Width field in the given instruction. See @ref GED_INS_FIELD_Src1Width for the field's description.
1571 *
1572 * @param[in,out] ins Pointer to the instruction object for encoding.
1573 * @param[in] value The value to encode.
1574 *
1575 * @return GED_RETURN_VALUE indicating success or encoding error.
1576 */
1577 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1Width(ged_ins_t* ins, const uint32_t value);
1578
1579 /*!
1580 * Get the value of the Src1VertStride field in the given instruction. See @ref GED_INS_FIELD_Src1VertStride for the field's
1581 * description.
1582 *
1583 * @param[in] ins Pointer to the decoded instruction object.
1584 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1585 * which caused the failure.
1586 *
1587 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1588 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1589 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1590 * GED_RETURN_VALUE result.
1591 *
1592 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1593 */
1594 extern uint32_t GED_CALLCONV GED_GetSrc1VertStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
1595
1596 /*!
1597 * Set the value of the Src1VertStride field in the given instruction. See @ref GED_INS_FIELD_Src1VertStride for the field's
1598 * description.
1599 *
1600 * @param[in,out] ins Pointer to the instruction object for encoding.
1601 * @param[in] value The value to encode.
1602 *
1603 * @return GED_RETURN_VALUE indicating success or encoding error.
1604 */
1605 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1VertStride(ged_ins_t* ins, const uint32_t value);
1606
1607 /*!
1608 * Get the value of the Imm field in the given instruction. See @ref GED_INS_FIELD_Imm for the field's description.
1609 *
1610 * @param[in] ins Pointer to the decoded instruction object.
1611 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1612 * which caused the failure.
1613 *
1614 * @return The requested value if the field is valid, uint64_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1615 * it is important to check the GED_RETURN_VALUE result.
1616 *
1617 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1618 */
1619 extern uint64_t GED_CALLCONV GED_GetImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
1620
1621 /*!
1622 * Set the value of the Imm field in the given instruction. See @ref GED_INS_FIELD_Imm for the field's description.
1623 *
1624 * @param[in,out] ins Pointer to the instruction object for encoding.
1625 * @param[in] value The value to encode.
1626 *
1627 * @return GED_RETURN_VALUE indicating success or encoding error.
1628 */
1629 extern GED_RETURN_VALUE GED_CALLCONV GED_SetImm(ged_ins_t* ins, const uint64_t value);
1630
1631 /*!
1632 * Get the value of the Src2SrcMod field in the given instruction. The function returns an enumeration value. To obtain the enum
1633 * entry's string representation, use @ref GED_GetSrcModString. See @ref GED_INS_FIELD_Src2SrcMod for the field's description.
1634 *
1635 * @param[in] ins Pointer to the decoded instruction object.
1636 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1637 * which caused the failure.
1638 *
1639 * @return Src2SrcMod's enumeration if the field is valid, GED_SRC_MOD_INVALID otherwise.
1640 *
1641 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1642 */
1643 extern GED_SRC_MOD GED_CALLCONV GED_GetSrc2SrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result);
1644
1645 /*!
1646 * Set the value of the Src2SrcMod field in the given instruction. See @ref GED_INS_FIELD_Src2SrcMod for the field's description.
1647 *
1648 * @param[in,out] ins Pointer to the instruction object for encoding.
1649 * @param[in] value The value to encode.
1650 *
1651 * @return GED_RETURN_VALUE indicating success or encoding error.
1652 */
1653 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2SrcMod(ged_ins_t* ins, const GED_SRC_MOD value);
1654
1655 /*!
1656 * Get the value of the SrcDataType field in the given instruction. The function returns an enumeration value. To obtain the enum
1657 * entry's string representation, use @ref GED_GetDataTypeString. See @ref GED_INS_FIELD_SrcDataType for the field's description.
1658 *
1659 * @param[in] ins Pointer to the decoded instruction object.
1660 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1661 * which caused the failure.
1662 *
1663 * @return SrcDataType's enumeration if the field is valid, GED_DATA_TYPE_INVALID otherwise.
1664 *
1665 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1666 */
1667 extern GED_DATA_TYPE GED_CALLCONV GED_GetSrcDataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
1668
1669 /*!
1670 * Set the value of the SrcDataType field in the given instruction. See @ref GED_INS_FIELD_SrcDataType for the field's description.
1671 *
1672 * @param[in,out] ins Pointer to the instruction object for encoding.
1673 * @param[in] value The value to encode.
1674 *
1675 * @return GED_RETURN_VALUE indicating success or encoding error.
1676 */
1677 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrcDataType(ged_ins_t* ins, const GED_DATA_TYPE value);
1678
1679 /*!
1680 * Get the value of the Src0RepCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
1681 * entry's string representation, use @ref GED_GetRepCtrlString. See @ref GED_INS_FIELD_Src0RepCtrl for the field's description.
1682 *
1683 * @param[in] ins Pointer to the decoded instruction object.
1684 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1685 * which caused the failure.
1686 *
1687 * @return Src0RepCtrl's enumeration if the field is valid, GED_REP_CTRL_INVALID otherwise.
1688 *
1689 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1690 */
1691 extern GED_REP_CTRL GED_CALLCONV GED_GetSrc0RepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
1692
1693 /*!
1694 * Set the value of the Src0RepCtrl field in the given instruction. See @ref GED_INS_FIELD_Src0RepCtrl for the field's description.
1695 *
1696 * @param[in,out] ins Pointer to the instruction object for encoding.
1697 * @param[in] value The value to encode.
1698 *
1699 * @return GED_RETURN_VALUE indicating success or encoding error.
1700 */
1701 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0RepCtrl(ged_ins_t* ins, const GED_REP_CTRL value);
1702
1703 /*!
1704 * Get the value of the Src1RepCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
1705 * entry's string representation, use @ref GED_GetRepCtrlString. See @ref GED_INS_FIELD_Src1RepCtrl for the field's description.
1706 *
1707 * @param[in] ins Pointer to the decoded instruction object.
1708 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1709 * which caused the failure.
1710 *
1711 * @return Src1RepCtrl's enumeration if the field is valid, GED_REP_CTRL_INVALID otherwise.
1712 *
1713 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1714 */
1715 extern GED_REP_CTRL GED_CALLCONV GED_GetSrc1RepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
1716
1717 /*!
1718 * Set the value of the Src1RepCtrl field in the given instruction. See @ref GED_INS_FIELD_Src1RepCtrl for the field's description.
1719 *
1720 * @param[in,out] ins Pointer to the instruction object for encoding.
1721 * @param[in] value The value to encode.
1722 *
1723 * @return GED_RETURN_VALUE indicating success or encoding error.
1724 */
1725 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1RepCtrl(ged_ins_t* ins, const GED_REP_CTRL value);
1726
1727 /*!
1728 * Get the value of the Src2RepCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
1729 * entry's string representation, use @ref GED_GetRepCtrlString. See @ref GED_INS_FIELD_Src2RepCtrl for the field's description.
1730 *
1731 * @param[in] ins Pointer to the decoded instruction object.
1732 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1733 * which caused the failure.
1734 *
1735 * @return Src2RepCtrl's enumeration if the field is valid, GED_REP_CTRL_INVALID otherwise.
1736 *
1737 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1738 */
1739 extern GED_REP_CTRL GED_CALLCONV GED_GetSrc2RepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
1740
1741 /*!
1742 * Set the value of the Src2RepCtrl field in the given instruction. See @ref GED_INS_FIELD_Src2RepCtrl for the field's description.
1743 *
1744 * @param[in,out] ins Pointer to the instruction object for encoding.
1745 * @param[in] value The value to encode.
1746 *
1747 * @return GED_RETURN_VALUE indicating success or encoding error.
1748 */
1749 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2RepCtrl(ged_ins_t* ins, const GED_REP_CTRL value);
1750
1751 /*!
1752 * Get the value of the Src2ChanSel field in the given instruction. See @ref GED_INS_FIELD_Src2ChanSel for the field's description.
1753 *
1754 * @param[in] ins Pointer to the decoded instruction object.
1755 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1756 * which caused the failure.
1757 *
1758 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1759 * it is important to check the GED_RETURN_VALUE result.
1760 *
1761 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1762 */
1763 extern uint32_t GED_CALLCONV GED_GetSrc2ChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result);
1764
1765 /*!
1766 * Set the value of the Src2ChanSel field in the given instruction. See @ref GED_INS_FIELD_Src2ChanSel for the field's description.
1767 *
1768 * @param[in,out] ins Pointer to the instruction object for encoding.
1769 * @param[in] value The value to encode.
1770 *
1771 * @return GED_RETURN_VALUE indicating success or encoding error.
1772 */
1773 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2ChanSel(ged_ins_t* ins, const uint32_t value);
1774
1775 /*!
1776 * Get the value of the Src2SubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src2SubRegNum for the field's
1777 * description.
1778 *
1779 * @param[in] ins Pointer to the decoded instruction object.
1780 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1781 * which caused the failure.
1782 *
1783 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1784 * it is important to check the GED_RETURN_VALUE result.
1785 *
1786 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1787 */
1788 extern uint32_t GED_CALLCONV GED_GetSrc2SubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1789
1790 /*!
1791 * Set the value of the Src2SubRegNum field in the given instruction. See @ref GED_INS_FIELD_Src2SubRegNum for the field's
1792 * description.
1793 *
1794 * @param[in,out] ins Pointer to the instruction object for encoding.
1795 * @param[in] value The value to encode.
1796 *
1797 * @return GED_RETURN_VALUE indicating success or encoding error.
1798 */
1799 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2SubRegNum(ged_ins_t* ins, const uint32_t value);
1800
1801 /*!
1802 * Get the value of the Src2RegNum field in the given instruction. See @ref GED_INS_FIELD_Src2RegNum for the field's description.
1803 *
1804 * @param[in] ins Pointer to the decoded instruction object.
1805 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1806 * which caused the failure.
1807 *
1808 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1809 * it is important to check the GED_RETURN_VALUE result.
1810 *
1811 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1812 */
1813 extern uint32_t GED_CALLCONV GED_GetSrc2RegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1814
1815 /*!
1816 * Set the value of the Src2RegNum field in the given instruction. See @ref GED_INS_FIELD_Src2RegNum for the field's description.
1817 *
1818 * @param[in,out] ins Pointer to the instruction object for encoding.
1819 * @param[in] value The value to encode.
1820 *
1821 * @return GED_RETURN_VALUE indicating success or encoding error.
1822 */
1823 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2RegNum(ged_ins_t* ins, const uint32_t value);
1824
1825 /*!
1826 * Get the value of the Src2RegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
1827 * entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_Src2RegFile for the field's description.
1828 *
1829 * @param[in] ins Pointer to the decoded instruction object.
1830 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1831 * which caused the failure.
1832 *
1833 * @return Src2RegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
1834 *
1835 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1836 */
1837 extern GED_REG_FILE GED_CALLCONV GED_GetSrc2RegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);
1838
1839 /*!
1840 * Set the value of the Src2RegFile field in the given instruction. See @ref GED_INS_FIELD_Src2RegFile for the field's description.
1841 *
1842 * @param[in,out] ins Pointer to the instruction object for encoding.
1843 * @param[in] value The value to encode.
1844 *
1845 * @return GED_RETURN_VALUE indicating success or encoding error.
1846 */
1847 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2RegFile(ged_ins_t* ins, const GED_REG_FILE value);
1848
1849 /*!
1850 * Get the value of the Src2AddrMode field in the given instruction. The function returns an enumeration value. To obtain the enum
1851 * entry's string representation, use @ref GED_GetAddrModeString. See @ref GED_INS_FIELD_Src2AddrMode for the field's description.
1852 *
1853 * @param[in] ins Pointer to the decoded instruction object.
1854 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1855 * which caused the failure.
1856 *
1857 * @return Src2AddrMode's enumeration if the field is valid, GED_ADDR_MODE_INVALID otherwise.
1858 *
1859 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1860 */
1861 extern GED_ADDR_MODE GED_CALLCONV GED_GetSrc2AddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result);
1862
1863 /*!
1864 * Set the value of the Src2AddrMode field in the given instruction. See @ref GED_INS_FIELD_Src2AddrMode for the field's description.
1865 *
1866 * @param[in,out] ins Pointer to the instruction object for encoding.
1867 * @param[in] value The value to encode.
1868 *
1869 * @return GED_RETURN_VALUE indicating success or encoding error.
1870 */
1871 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2AddrMode(ged_ins_t* ins, const GED_ADDR_MODE value);
1872
1873 /*!
1874 * Get the value of the Src2VertStride field in the given instruction. See @ref GED_INS_FIELD_Src2VertStride for the field's
1875 * description.
1876 *
1877 * @param[in] ins Pointer to the decoded instruction object.
1878 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1879 * which caused the failure.
1880 *
1881 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
1882 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
1883 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
1884 * GED_RETURN_VALUE result.
1885 *
1886 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1887 */
1888 extern uint32_t GED_CALLCONV GED_GetSrc2VertStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
1889
1890 /*!
1891 * Set the value of the Src2VertStride field in the given instruction. See @ref GED_INS_FIELD_Src2VertStride for the field's
1892 * description.
1893 *
1894 * @param[in,out] ins Pointer to the instruction object for encoding.
1895 * @param[in] value The value to encode.
1896 *
1897 * @return GED_RETURN_VALUE indicating success or encoding error.
1898 */
1899 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2VertStride(ged_ins_t* ins, const uint32_t value);
1900
1901 /*!
1902 * Get the value of the SFID field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
1903 * string representation, use @ref GED_GetSFIDString. See @ref GED_INS_FIELD_SFID for the field's description.
1904 *
1905 * @param[in] ins Pointer to the decoded instruction object.
1906 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1907 * which caused the failure.
1908 *
1909 * @return SFID's enumeration if the field is valid, GED_SFID_INVALID otherwise.
1910 *
1911 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1912 */
1913 extern GED_SFID GED_CALLCONV GED_GetSFID(ged_ins_t* ins, GED_RETURN_VALUE* result);
1914
1915 /*!
1916 * Set the value of the SFID field in the given instruction. See @ref GED_INS_FIELD_SFID for the field's description.
1917 *
1918 * @param[in,out] ins Pointer to the instruction object for encoding.
1919 * @param[in] value The value to encode.
1920 *
1921 * @return GED_RETURN_VALUE indicating success or encoding error.
1922 */
1923 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSFID(ged_ins_t* ins, const GED_SFID value);
1924
1925 /*!
1926 * Get the value of the DescRegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
1927 * entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_DescRegFile for the field's description.
1928 *
1929 * @param[in] ins Pointer to the decoded instruction object.
1930 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1931 * which caused the failure.
1932 *
1933 * @return DescRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
1934 *
1935 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1936 */
1937 extern GED_REG_FILE GED_CALLCONV GED_GetDescRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);
1938
1939 /*!
1940 * Set the value of the DescRegFile field in the given instruction. See @ref GED_INS_FIELD_DescRegFile for the field's description.
1941 *
1942 * @param[in,out] ins Pointer to the instruction object for encoding.
1943 * @param[in] value The value to encode.
1944 *
1945 * @return GED_RETURN_VALUE indicating success or encoding error.
1946 */
1947 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescRegFile(ged_ins_t* ins, const GED_REG_FILE value);
1948
1949 /*!
1950 * Get the value of the DescDataType field in the given instruction. The function returns an enumeration value. To obtain the enum
1951 * entry's string representation, use @ref GED_GetDataTypeString. See @ref GED_INS_FIELD_DescDataType for the field's description.
1952 *
1953 * @param[in] ins Pointer to the decoded instruction object.
1954 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1955 * which caused the failure.
1956 *
1957 * @return DescDataType's enumeration if the field is valid, GED_DATA_TYPE_INVALID otherwise.
1958 *
1959 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1960 */
1961 extern GED_DATA_TYPE GED_CALLCONV GED_GetDescDataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
1962
1963 /*!
1964 * Set the value of the DescDataType field in the given instruction. See @ref GED_INS_FIELD_DescDataType for the field's description.
1965 *
1966 * @param[in,out] ins Pointer to the instruction object for encoding.
1967 * @param[in] value The value to encode.
1968 *
1969 * @return GED_RETURN_VALUE indicating success or encoding error.
1970 */
1971 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescDataType(ged_ins_t* ins, const GED_DATA_TYPE value);
1972
1973 /*!
1974 * Get the value of the DescAddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_DescAddrSubRegNum for the field's
1975 * description.
1976 *
1977 * @param[in] ins Pointer to the decoded instruction object.
1978 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
1979 * which caused the failure.
1980 *
1981 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
1982 * it is important to check the GED_RETURN_VALUE result.
1983 *
1984 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
1985 */
1986 extern uint32_t GED_CALLCONV GED_GetDescAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
1987
1988 /*!
1989 * Set the value of the DescAddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_DescAddrSubRegNum for the field's
1990 * description.
1991 *
1992 * @param[in,out] ins Pointer to the instruction object for encoding.
1993 * @param[in] value The value to encode.
1994 *
1995 * @return GED_RETURN_VALUE indicating success or encoding error.
1996 */
1997 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescAddrSubRegNum(ged_ins_t* ins, const uint32_t value);
1998
1999 /*!
2000 * Get the value of the DescRegNum field in the given instruction. See @ref GED_INS_FIELD_DescRegNum for the field's description.
2001 *
2002 * @param[in] ins Pointer to the decoded instruction object.
2003 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2004 * which caused the failure.
2005 *
2006 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2007 * it is important to check the GED_RETURN_VALUE result.
2008 *
2009 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2010 */
2011 extern uint32_t GED_CALLCONV GED_GetDescRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
2012
2013 /*!
2014 * Set the value of the DescRegNum field in the given instruction. See @ref GED_INS_FIELD_DescRegNum for the field's description.
2015 *
2016 * @param[in,out] ins Pointer to the instruction object for encoding.
2017 * @param[in] value The value to encode.
2018 *
2019 * @return GED_RETURN_VALUE indicating success or encoding error.
2020 */
2021 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescRegNum(ged_ins_t* ins, const uint32_t value);
2022
2023 /*!
2024 * Get the value of the DescHorzStride field in the given instruction. See @ref GED_INS_FIELD_DescHorzStride for the field's
2025 * description.
2026 *
2027 * @param[in] ins Pointer to the decoded instruction object.
2028 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2029 * which caused the failure.
2030 *
2031 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
2032 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
2033 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
2034 * GED_RETURN_VALUE result.
2035 *
2036 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2037 */
2038 extern uint32_t GED_CALLCONV GED_GetDescHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
2039
2040 /*!
2041 * Set the value of the DescHorzStride field in the given instruction. See @ref GED_INS_FIELD_DescHorzStride for the field's
2042 * description.
2043 *
2044 * @param[in,out] ins Pointer to the instruction object for encoding.
2045 * @param[in] value The value to encode.
2046 *
2047 * @return GED_RETURN_VALUE indicating success or encoding error.
2048 */
2049 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescHorzStride(ged_ins_t* ins, const uint32_t value);
2050
2051 /*!
2052 * Get the value of the DescWidth field in the given instruction. See @ref GED_INS_FIELD_DescWidth for the field's description.
2053 *
2054 * @param[in] ins Pointer to the decoded instruction object.
2055 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2056 * which caused the failure.
2057 *
2058 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
2059 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
2060 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
2061 * GED_RETURN_VALUE result.
2062 *
2063 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2064 */
2065 extern uint32_t GED_CALLCONV GED_GetDescWidth(ged_ins_t* ins, GED_RETURN_VALUE* result);
2066
2067 /*!
2068 * Set the value of the DescWidth field in the given instruction. See @ref GED_INS_FIELD_DescWidth for the field's description.
2069 *
2070 * @param[in,out] ins Pointer to the instruction object for encoding.
2071 * @param[in] value The value to encode.
2072 *
2073 * @return GED_RETURN_VALUE indicating success or encoding error.
2074 */
2075 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescWidth(ged_ins_t* ins, const uint32_t value);
2076
2077 /*!
2078 * Get the value of the DescVertStride field in the given instruction. See @ref GED_INS_FIELD_DescVertStride for the field's
2079 * description.
2080 *
2081 * @param[in] ins Pointer to the decoded instruction object.
2082 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2083 * which caused the failure.
2084 *
2085 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
2086 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
2087 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
2088 * GED_RETURN_VALUE result.
2089 *
2090 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2091 */
2092 extern uint32_t GED_CALLCONV GED_GetDescVertStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
2093
2094 /*!
2095 * Set the value of the DescVertStride field in the given instruction. See @ref GED_INS_FIELD_DescVertStride for the field's
2096 * description.
2097 *
2098 * @param[in,out] ins Pointer to the instruction object for encoding.
2099 * @param[in] value The value to encode.
2100 *
2101 * @return GED_RETURN_VALUE indicating success or encoding error.
2102 */
2103 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescVertStride(ged_ins_t* ins, const uint32_t value);
2104
2105 /*!
2106 * Get the value of the MsgDesc field in the given instruction. See @ref GED_INS_FIELD_MsgDesc for the field's description.
2107 *
2108 * @param[in] ins Pointer to the decoded instruction object.
2109 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2110 * which caused the failure.
2111 *
2112 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2113 * it is important to check the GED_RETURN_VALUE result.
2114 *
2115 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2116 */
2117 extern uint32_t GED_CALLCONV GED_GetMsgDesc(ged_ins_t* ins, GED_RETURN_VALUE* result);
2118
2119 /*!
2120 * Set the value of the MsgDesc field in the given instruction. See @ref GED_INS_FIELD_MsgDesc for the field's description.
2121 *
2122 * @param[in,out] ins Pointer to the instruction object for encoding.
2123 * @param[in] value The value to encode.
2124 *
2125 * @return GED_RETURN_VALUE indicating success or encoding error.
2126 */
2127 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDesc(ged_ins_t* ins, const uint32_t value);
2128
2129 /*!
2130 * Get the value of the ExMsgDescImm field in the given instruction. See @ref GED_INS_FIELD_ExMsgDescImm for the field's description.
2131 *
2132 * @param[in] ins Pointer to the decoded instruction object.
2133 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2134 * which caused the failure.
2135 *
2136 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2137 * it is important to check the GED_RETURN_VALUE result.
2138 *
2139 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2140 */
2141 extern uint32_t GED_CALLCONV GED_GetExMsgDescImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
2142
2143 /*!
2144 * Set the value of the ExMsgDescImm field in the given instruction. See @ref GED_INS_FIELD_ExMsgDescImm for the field's description.
2145 *
2146 * @param[in,out] ins Pointer to the instruction object for encoding.
2147 * @param[in] value The value to encode.
2148 *
2149 * @return GED_RETURN_VALUE indicating success or encoding error.
2150 */
2151 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExMsgDescImm(ged_ins_t* ins, const uint32_t value);
2152
2153 /*!
2154 * Get the value of the EOT field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
2155 * string representation, use @ref GED_GetEOTString. See @ref GED_INS_FIELD_EOT for the field's description.
2156 *
2157 * @param[in] ins Pointer to the decoded instruction object.
2158 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2159 * which caused the failure.
2160 *
2161 * @return EOT's enumeration if the field is valid, GED_EOT_INVALID otherwise.
2162 *
2163 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2164 */
2165 extern GED_EOT GED_CALLCONV GED_GetEOT(ged_ins_t* ins, GED_RETURN_VALUE* result);
2166
2167 /*!
2168 * Set the value of the EOT field in the given instruction. See @ref GED_INS_FIELD_EOT for the field's description.
2169 *
2170 * @param[in,out] ins Pointer to the instruction object for encoding.
2171 * @param[in] value The value to encode.
2172 *
2173 * @return GED_RETURN_VALUE indicating success or encoding error.
2174 */
2175 extern GED_RETURN_VALUE GED_CALLCONV GED_SetEOT(ged_ins_t* ins, const GED_EOT value);
2176
2177 /*!
2178 * Get the value of the MathFC field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
2179 * string representation, use @ref GED_GetMathFCString. See @ref GED_INS_FIELD_MathFC for the field's description.
2180 *
2181 * @param[in] ins Pointer to the decoded instruction object.
2182 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2183 * which caused the failure.
2184 *
2185 * @return MathFC's enumeration if the field is valid, GED_MATH_FC_INVALID otherwise.
2186 *
2187 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2188 */
2189 extern GED_MATH_FC GED_CALLCONV GED_GetMathFC(ged_ins_t* ins, GED_RETURN_VALUE* result);
2190
2191 /*!
2192 * Set the value of the MathFC field in the given instruction. See @ref GED_INS_FIELD_MathFC for the field's description.
2193 *
2194 * @param[in,out] ins Pointer to the instruction object for encoding.
2195 * @param[in] value The value to encode.
2196 *
2197 * @return GED_RETURN_VALUE indicating success or encoding error.
2198 */
2199 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMathFC(ged_ins_t* ins, const GED_MATH_FC value);
2200
2201 /*!
2202 * Get the value of the JIP field in the given instruction. See @ref GED_INS_FIELD_JIP for the field's description.
2203 *
2204 * @param[in] ins Pointer to the decoded instruction object.
2205 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2206 * which caused the failure.
2207 *
2208 * @return The requested value if the field is valid, -1 otherwise. If -1 is a valid value for this field, it is important to
2209 * check the GED_RETURN_VALUE result.
2210 *
2211 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2212 */
2213 extern int32_t GED_CALLCONV GED_GetJIP(ged_ins_t* ins, GED_RETURN_VALUE* result);
2214
2215 /*!
2216 * Set the value of the JIP field in the given instruction. See @ref GED_INS_FIELD_JIP for the field's description.
2217 *
2218 * @param[in,out] ins Pointer to the instruction object for encoding.
2219 * @param[in] value The value to encode.
2220 *
2221 * @return GED_RETURN_VALUE indicating success or encoding error.
2222 */
2223 extern GED_RETURN_VALUE GED_CALLCONV GED_SetJIP(ged_ins_t* ins, const int32_t value);
2224
2225 /*!
2226 * Get the value of the UIP field in the given instruction. See @ref GED_INS_FIELD_UIP for the field's description.
2227 *
2228 * @param[in] ins Pointer to the decoded instruction object.
2229 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2230 * which caused the failure.
2231 *
2232 * @return The requested value if the field is valid, -1 otherwise. If -1 is a valid value for this field, it is important to
2233 * check the GED_RETURN_VALUE result.
2234 *
2235 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2236 */
2237 extern int32_t GED_CALLCONV GED_GetUIP(ged_ins_t* ins, GED_RETURN_VALUE* result);
2238
2239 /*!
2240 * Set the value of the UIP field in the given instruction. See @ref GED_INS_FIELD_UIP for the field's description.
2241 *
2242 * @param[in,out] ins Pointer to the instruction object for encoding.
2243 * @param[in] value The value to encode.
2244 *
2245 * @return GED_RETURN_VALUE indicating success or encoding error.
2246 */
2247 extern GED_RETURN_VALUE GED_CALLCONV GED_SetUIP(ged_ins_t* ins, const int32_t value);
2248
2249 /*!
2250 * Get the value of the ControlIndex field in the given instruction. See @ref GED_INS_FIELD_ControlIndex for the field's description.
2251 *
2252 * @param[in] ins Pointer to the decoded instruction object.
2253 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2254 * which caused the failure.
2255 *
2256 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2257 * it is important to check the GED_RETURN_VALUE result.
2258 *
2259 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2260 */
2261 extern uint32_t GED_CALLCONV GED_GetControlIndex(ged_ins_t* ins, GED_RETURN_VALUE* result);
2262
2263 /*!
2264 * Set the value of the ControlIndex field in the given instruction. See @ref GED_INS_FIELD_ControlIndex for the field's description.
2265 *
2266 * @param[in,out] ins Pointer to the instruction object for encoding.
2267 * @param[in] value The value to encode.
2268 *
2269 * @return GED_RETURN_VALUE indicating success or encoding error.
2270 */
2271 extern GED_RETURN_VALUE GED_CALLCONV GED_SetControlIndex(ged_ins_t* ins, const uint32_t value);
2272
2273 /*!
2274 * Get the value of the DataTypeIndex field in the given instruction. See @ref GED_INS_FIELD_DataTypeIndex for the field's
2275 * description.
2276 *
2277 * @param[in] ins Pointer to the decoded instruction object.
2278 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2279 * which caused the failure.
2280 *
2281 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2282 * it is important to check the GED_RETURN_VALUE result.
2283 *
2284 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2285 */
2286 extern uint32_t GED_CALLCONV GED_GetDataTypeIndex(ged_ins_t* ins, GED_RETURN_VALUE* result);
2287
2288 /*!
2289 * Set the value of the DataTypeIndex field in the given instruction. See @ref GED_INS_FIELD_DataTypeIndex for the field's
2290 * description.
2291 *
2292 * @param[in,out] ins Pointer to the instruction object for encoding.
2293 * @param[in] value The value to encode.
2294 *
2295 * @return GED_RETURN_VALUE indicating success or encoding error.
2296 */
2297 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDataTypeIndex(ged_ins_t* ins, const uint32_t value);
2298
2299 /*!
2300 * Get the value of the SubRegIndex field in the given instruction. See @ref GED_INS_FIELD_SubRegIndex for the field's description.
2301 *
2302 * @param[in] ins Pointer to the decoded instruction object.
2303 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2304 * which caused the failure.
2305 *
2306 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2307 * it is important to check the GED_RETURN_VALUE result.
2308 *
2309 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2310 */
2311 extern uint32_t GED_CALLCONV GED_GetSubRegIndex(ged_ins_t* ins, GED_RETURN_VALUE* result);
2312
2313 /*!
2314 * Set the value of the SubRegIndex field in the given instruction. See @ref GED_INS_FIELD_SubRegIndex for the field's description.
2315 *
2316 * @param[in,out] ins Pointer to the instruction object for encoding.
2317 * @param[in] value The value to encode.
2318 *
2319 * @return GED_RETURN_VALUE indicating success or encoding error.
2320 */
2321 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSubRegIndex(ged_ins_t* ins, const uint32_t value);
2322
2323 /*!
2324 * Get the value of the Src0Index field in the given instruction. See @ref GED_INS_FIELD_Src0Index for the field's description.
2325 *
2326 * @param[in] ins Pointer to the decoded instruction object.
2327 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2328 * which caused the failure.
2329 *
2330 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2331 * it is important to check the GED_RETURN_VALUE result.
2332 *
2333 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2334 */
2335 extern uint32_t GED_CALLCONV GED_GetSrc0Index(ged_ins_t* ins, GED_RETURN_VALUE* result);
2336
2337 /*!
2338 * Set the value of the Src0Index field in the given instruction. See @ref GED_INS_FIELD_Src0Index for the field's description.
2339 *
2340 * @param[in,out] ins Pointer to the instruction object for encoding.
2341 * @param[in] value The value to encode.
2342 *
2343 * @return GED_RETURN_VALUE indicating success or encoding error.
2344 */
2345 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0Index(ged_ins_t* ins, const uint32_t value);
2346
2347 /*!
2348 * Get the value of the Src1Index field in the given instruction. See @ref GED_INS_FIELD_Src1Index for the field's description.
2349 *
2350 * @param[in] ins Pointer to the decoded instruction object.
2351 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2352 * which caused the failure.
2353 *
2354 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2355 * it is important to check the GED_RETURN_VALUE result.
2356 *
2357 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2358 */
2359 extern uint32_t GED_CALLCONV GED_GetSrc1Index(ged_ins_t* ins, GED_RETURN_VALUE* result);
2360
2361 /*!
2362 * Set the value of the Src1Index field in the given instruction. See @ref GED_INS_FIELD_Src1Index for the field's description.
2363 *
2364 * @param[in,out] ins Pointer to the instruction object for encoding.
2365 * @param[in] value The value to encode.
2366 *
2367 * @return GED_RETURN_VALUE indicating success or encoding error.
2368 */
2369 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1Index(ged_ins_t* ins, const uint32_t value);
2370
2371 /*!
2372 * Get the value of the DescIndex field in the given instruction. See @ref GED_INS_FIELD_DescIndex for the field's description.
2373 *
2374 * @param[in] ins Pointer to the decoded instruction object.
2375 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2376 * which caused the failure.
2377 *
2378 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2379 * it is important to check the GED_RETURN_VALUE result.
2380 *
2381 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2382 */
2383 extern uint32_t GED_CALLCONV GED_GetDescIndex(ged_ins_t* ins, GED_RETURN_VALUE* result);
2384
2385 /*!
2386 * Set the value of the DescIndex field in the given instruction. See @ref GED_INS_FIELD_DescIndex for the field's description.
2387 *
2388 * @param[in,out] ins Pointer to the instruction object for encoding.
2389 * @param[in] value The value to encode.
2390 *
2391 * @return GED_RETURN_VALUE indicating success or encoding error.
2392 */
2393 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDescIndex(ged_ins_t* ins, const uint32_t value);
2394
2395 /*!
2396 * Get the value of the ExDescRegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
2397 * entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_ExDescRegFile for the field's description.
2398 *
2399 * @param[in] ins Pointer to the decoded instruction object.
2400 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2401 * which caused the failure.
2402 *
2403 * @return ExDescRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
2404 *
2405 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2406 */
2407 extern GED_REG_FILE GED_CALLCONV GED_GetExDescRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);
2408
2409 /*!
2410 * Set the value of the ExDescRegFile field in the given instruction. See @ref GED_INS_FIELD_ExDescRegFile for the field's
2411 * description.
2412 *
2413 * @param[in,out] ins Pointer to the instruction object for encoding.
2414 * @param[in] value The value to encode.
2415 *
2416 * @return GED_RETURN_VALUE indicating success or encoding error.
2417 */
2418 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExDescRegFile(ged_ins_t* ins, const GED_REG_FILE value);
2419
2420 /*!
2421 * Get the value of the DstMathMacroExt field in the given instruction. The function returns an enumeration value. To obtain the enum
2422 * entry's string representation, use @ref GED_GetMathMacroExtString. See @ref GED_INS_FIELD_DstMathMacroExt for the field's
2423 * description.
2424 *
2425 * @param[in] ins Pointer to the decoded instruction object.
2426 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2427 * which caused the failure.
2428 *
2429 * @return DstMathMacroExt's enumeration if the field is valid, GED_MATH_MACRO_EXT_INVALID otherwise.
2430 *
2431 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2432 */
2433 extern GED_MATH_MACRO_EXT GED_CALLCONV GED_GetDstMathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result);
2434
2435 /*!
2436 * Set the value of the DstMathMacroExt field in the given instruction. See @ref GED_INS_FIELD_DstMathMacroExt for the field's
2437 * description.
2438 *
2439 * @param[in,out] ins Pointer to the instruction object for encoding.
2440 * @param[in] value The value to encode.
2441 *
2442 * @return GED_RETURN_VALUE indicating success or encoding error.
2443 */
2444 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDstMathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value);
2445
2446 /*!
2447 * Get the value of the Src0MathMacroExt field in the given instruction. The function returns an enumeration value. To obtain the enum
2448 * entry's string representation, use @ref GED_GetMathMacroExtString. See @ref GED_INS_FIELD_Src0MathMacroExt for the field's
2449 * description.
2450 *
2451 * @param[in] ins Pointer to the decoded instruction object.
2452 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2453 * which caused the failure.
2454 *
2455 * @return Src0MathMacroExt's enumeration if the field is valid, GED_MATH_MACRO_EXT_INVALID otherwise.
2456 *
2457 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2458 */
2459 extern GED_MATH_MACRO_EXT GED_CALLCONV GED_GetSrc0MathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result);
2460
2461 /*!
2462 * Set the value of the Src0MathMacroExt field in the given instruction. See @ref GED_INS_FIELD_Src0MathMacroExt for the field's
2463 * description.
2464 *
2465 * @param[in,out] ins Pointer to the instruction object for encoding.
2466 * @param[in] value The value to encode.
2467 *
2468 * @return GED_RETURN_VALUE indicating success or encoding error.
2469 */
2470 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0MathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value);
2471
2472 /*!
2473 * Get the value of the Src1MathMacroExt field in the given instruction. The function returns an enumeration value. To obtain the enum
2474 * entry's string representation, use @ref GED_GetMathMacroExtString. See @ref GED_INS_FIELD_Src1MathMacroExt for the field's
2475 * description.
2476 *
2477 * @param[in] ins Pointer to the decoded instruction object.
2478 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2479 * which caused the failure.
2480 *
2481 * @return Src1MathMacroExt's enumeration if the field is valid, GED_MATH_MACRO_EXT_INVALID otherwise.
2482 *
2483 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2484 */
2485 extern GED_MATH_MACRO_EXT GED_CALLCONV GED_GetSrc1MathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result);
2486
2487 /*!
2488 * Set the value of the Src1MathMacroExt field in the given instruction. See @ref GED_INS_FIELD_Src1MathMacroExt for the field's
2489 * description.
2490 *
2491 * @param[in,out] ins Pointer to the instruction object for encoding.
2492 * @param[in] value The value to encode.
2493 *
2494 * @return GED_RETURN_VALUE indicating success or encoding error.
2495 */
2496 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1MathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value);
2497
2498 /*!
2499 * Get the value of the Src2MathMacroExt field in the given instruction. The function returns an enumeration value. To obtain the enum
2500 * entry's string representation, use @ref GED_GetMathMacroExtString. See @ref GED_INS_FIELD_Src2MathMacroExt for the field's
2501 * description.
2502 *
2503 * @param[in] ins Pointer to the decoded instruction object.
2504 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2505 * which caused the failure.
2506 *
2507 * @return Src2MathMacroExt's enumeration if the field is valid, GED_MATH_MACRO_EXT_INVALID otherwise.
2508 *
2509 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2510 */
2511 extern GED_MATH_MACRO_EXT GED_CALLCONV GED_GetSrc2MathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result);
2512
2513 /*!
2514 * Set the value of the Src2MathMacroExt field in the given instruction. See @ref GED_INS_FIELD_Src2MathMacroExt for the field's
2515 * description.
2516 *
2517 * @param[in,out] ins Pointer to the instruction object for encoding.
2518 * @param[in] value The value to encode.
2519 *
2520 * @return GED_RETURN_VALUE indicating success or encoding error.
2521 */
2522 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2MathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value);
2523
2524 /*!
2525 * Get the value of the BranchCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
2526 * entry's string representation, use @ref GED_GetBranchCtrlString. See @ref GED_INS_FIELD_BranchCtrl for the field's description.
2527 *
2528 * @param[in] ins Pointer to the decoded instruction object.
2529 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2530 * which caused the failure.
2531 *
2532 * @return BranchCtrl's enumeration if the field is valid, GED_BRANCH_CTRL_INVALID otherwise.
2533 *
2534 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2535 */
2536 extern GED_BRANCH_CTRL GED_CALLCONV GED_GetBranchCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
2537
2538 /*!
2539 * Set the value of the BranchCtrl field in the given instruction. See @ref GED_INS_FIELD_BranchCtrl for the field's description.
2540 *
2541 * @param[in,out] ins Pointer to the instruction object for encoding.
2542 * @param[in] value The value to encode.
2543 *
2544 * @return GED_RETURN_VALUE indicating success or encoding error.
2545 */
2546 extern GED_RETURN_VALUE GED_CALLCONV GED_SetBranchCtrl(ged_ins_t* ins, const GED_BRANCH_CTRL value);
2547
2548 /*!
2549 * Get the value of the SourceIndex field in the given instruction. See @ref GED_INS_FIELD_SourceIndex for the field's description.
2550 *
2551 * @param[in] ins Pointer to the decoded instruction object.
2552 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2553 * which caused the failure.
2554 *
2555 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2556 * it is important to check the GED_RETURN_VALUE result.
2557 *
2558 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2559 */
2560 extern uint32_t GED_CALLCONV GED_GetSourceIndex(ged_ins_t* ins, GED_RETURN_VALUE* result);
2561
2562 /*!
2563 * Set the value of the SourceIndex field in the given instruction. See @ref GED_INS_FIELD_SourceIndex for the field's description.
2564 *
2565 * @param[in,out] ins Pointer to the instruction object for encoding.
2566 * @param[in] value The value to encode.
2567 *
2568 * @return GED_RETURN_VALUE indicating success or encoding error.
2569 */
2570 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSourceIndex(ged_ins_t* ins, const uint32_t value);
2571
2572 /*!
2573 * Get the value of the Src2DataType field in the given instruction. The function returns an enumeration value. To obtain the enum
2574 * entry's string representation, use @ref GED_GetDataTypeString. See @ref GED_INS_FIELD_Src2DataType for the field's description.
2575 *
2576 * @param[in] ins Pointer to the decoded instruction object.
2577 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2578 * which caused the failure.
2579 *
2580 * @return Src2DataType's enumeration if the field is valid, GED_DATA_TYPE_INVALID otherwise.
2581 *
2582 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2583 */
2584 extern GED_DATA_TYPE GED_CALLCONV GED_GetSrc2DataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
2585
2586 /*!
2587 * Set the value of the Src2DataType field in the given instruction. See @ref GED_INS_FIELD_Src2DataType for the field's description.
2588 *
2589 * @param[in,out] ins Pointer to the instruction object for encoding.
2590 * @param[in] value The value to encode.
2591 *
2592 * @return GED_RETURN_VALUE indicating success or encoding error.
2593 */
2594 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2DataType(ged_ins_t* ins, const GED_DATA_TYPE value);
2595
2596 /*!
2597 * Get the value of the NoSrcDepSet field in the given instruction. The function returns an enumeration value. To obtain the enum
2598 * entry's string representation, use @ref GED_GetNoSrcDepSetString. See @ref GED_INS_FIELD_NoSrcDepSet for the field's description.
2599 *
2600 * @param[in] ins Pointer to the decoded instruction object.
2601 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2602 * which caused the failure.
2603 *
2604 * @return NoSrcDepSet's enumeration if the field is valid, GED_NO_SRC_DEP_SET_INVALID otherwise.
2605 *
2606 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2607 */
2608 extern GED_NO_SRC_DEP_SET GED_CALLCONV GED_GetNoSrcDepSet(ged_ins_t* ins, GED_RETURN_VALUE* result);
2609
2610 /*!
2611 * Set the value of the NoSrcDepSet field in the given instruction. See @ref GED_INS_FIELD_NoSrcDepSet for the field's description.
2612 *
2613 * @param[in,out] ins Pointer to the instruction object for encoding.
2614 * @param[in] value The value to encode.
2615 *
2616 * @return GED_RETURN_VALUE indicating success or encoding error.
2617 */
2618 extern GED_RETURN_VALUE GED_CALLCONV GED_SetNoSrcDepSet(ged_ins_t* ins, const GED_NO_SRC_DEP_SET value);
2619
2620 /*!
2621 * Get the value of the ExFuncCtrl field in the given instruction. See @ref GED_INS_FIELD_ExFuncCtrl for the field's description.
2622 *
2623 * @param[in] ins Pointer to the decoded instruction object.
2624 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2625 * which caused the failure.
2626 *
2627 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2628 * it is important to check the GED_RETURN_VALUE result.
2629 *
2630 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2631 */
2632 extern uint32_t GED_CALLCONV GED_GetExFuncCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
2633
2634 /*!
2635 * Set the value of the ExFuncCtrl field in the given instruction. See @ref GED_INS_FIELD_ExFuncCtrl for the field's description.
2636 *
2637 * @param[in,out] ins Pointer to the instruction object for encoding.
2638 * @param[in] value The value to encode.
2639 *
2640 * @return GED_RETURN_VALUE indicating success or encoding error.
2641 */
2642 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExFuncCtrl(ged_ins_t* ins, const uint32_t value);
2643
2644 /*!
2645 * Get the value of the ExMsgLength field in the given instruction. See @ref GED_INS_FIELD_ExMsgLength for the field's description.
2646 *
2647 * @param[in] ins Pointer to the decoded instruction object.
2648 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2649 * which caused the failure.
2650 *
2651 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2652 * it is important to check the GED_RETURN_VALUE result.
2653 *
2654 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2655 */
2656 extern uint32_t GED_CALLCONV GED_GetExMsgLength(ged_ins_t* ins, GED_RETURN_VALUE* result);
2657
2658 /*!
2659 * Set the value of the ExMsgLength field in the given instruction. See @ref GED_INS_FIELD_ExMsgLength for the field's description.
2660 *
2661 * @param[in,out] ins Pointer to the instruction object for encoding.
2662 * @param[in] value The value to encode.
2663 *
2664 * @return GED_RETURN_VALUE indicating success or encoding error.
2665 */
2666 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExMsgLength(ged_ins_t* ins, const uint32_t value);
2667
2668 /*!
2669 * Get the value of the ExDescAddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_ExDescAddrSubRegNum for the field's
2670 * description.
2671 *
2672 * @param[in] ins Pointer to the decoded instruction object.
2673 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2674 * which caused the failure.
2675 *
2676 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2677 * it is important to check the GED_RETURN_VALUE result.
2678 *
2679 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2680 */
2681 extern uint32_t GED_CALLCONV GED_GetExDescAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
2682
2683 /*!
2684 * Set the value of the ExDescAddrSubRegNum field in the given instruction. See @ref GED_INS_FIELD_ExDescAddrSubRegNum for the field's
2685 * description.
2686 *
2687 * @param[in,out] ins Pointer to the instruction object for encoding.
2688 * @param[in] value The value to encode.
2689 *
2690 * @return GED_RETURN_VALUE indicating success or encoding error.
2691 */
2692 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExDescAddrSubRegNum(ged_ins_t* ins, const uint32_t value);
2693
2694 /*!
2695 * Get the value of the ExDescRegNum field in the given instruction. See @ref GED_INS_FIELD_ExDescRegNum for the field's description.
2696 *
2697 * @param[in] ins Pointer to the decoded instruction object.
2698 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2699 * which caused the failure.
2700 *
2701 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2702 * it is important to check the GED_RETURN_VALUE result.
2703 *
2704 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2705 */
2706 extern uint32_t GED_CALLCONV GED_GetExDescRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);
2707
2708 /*!
2709 * Set the value of the ExDescRegNum field in the given instruction. See @ref GED_INS_FIELD_ExDescRegNum for the field's description.
2710 *
2711 * @param[in,out] ins Pointer to the instruction object for encoding.
2712 * @param[in] value The value to encode.
2713 *
2714 * @return GED_RETURN_VALUE indicating success or encoding error.
2715 */
2716 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExDescRegNum(ged_ins_t* ins, const uint32_t value);
2717
2718 /*!
2719 * Get the value of the MsgDescCategory field in the given instruction. See @ref GED_INS_FIELD_MsgDescCategory for the field's
2720 * description.
2721 *
2722 * @param[in] ins Pointer to the decoded instruction object.
2723 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2724 * which caused the failure.
2725 *
2726 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2727 * it is important to check the GED_RETURN_VALUE result.
2728 *
2729 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2730 */
2731 extern uint32_t GED_CALLCONV GED_GetMsgDescCategory(ged_ins_t* ins, GED_RETURN_VALUE* result);
2732
2733 /*!
2734 * Set the value of the MsgDescCategory field in the given instruction. See @ref GED_INS_FIELD_MsgDescCategory for the field's
2735 * description.
2736 *
2737 * @param[in,out] ins Pointer to the instruction object for encoding.
2738 * @param[in] value The value to encode.
2739 *
2740 * @return GED_RETURN_VALUE indicating success or encoding error.
2741 */
2742 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDescCategory(ged_ins_t* ins, const uint32_t value);
2743
2744 /*!
2745 * Get the value of the MsgDescScratchAddrOffset field in the given instruction. See @ref GED_INS_FIELD_MsgDescScratchAddrOffset for
2746 * the field's description.
2747 *
2748 * @param[in] ins Pointer to the decoded instruction object.
2749 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2750 * which caused the failure.
2751 *
2752 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2753 * it is important to check the GED_RETURN_VALUE result.
2754 *
2755 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2756 */
2757 extern uint32_t GED_CALLCONV GED_GetMsgDescScratchAddrOffset(ged_ins_t* ins, GED_RETURN_VALUE* result);
2758
2759 /*!
2760 * Set the value of the MsgDescScratchAddrOffset field in the given instruction. See @ref GED_INS_FIELD_MsgDescScratchAddrOffset for
2761 * the field's description.
2762 *
2763 * @param[in,out] ins Pointer to the instruction object for encoding.
2764 * @param[in] value The value to encode.
2765 *
2766 * @return GED_RETURN_VALUE indicating success or encoding error.
2767 */
2768 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDescScratchAddrOffset(ged_ins_t* ins, const uint32_t value);
2769
2770 /*!
2771 * Get the value of the MsgDescScratchBlockSize field in the given instruction. See @ref GED_INS_FIELD_MsgDescScratchBlockSize for the
2772 * field's description.
2773 *
2774 * @param[in] ins Pointer to the decoded instruction object.
2775 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2776 * which caused the failure.
2777 *
2778 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
2779 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
2780 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
2781 * GED_RETURN_VALUE result.
2782 *
2783 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2784 */
2785 extern uint32_t GED_CALLCONV GED_GetMsgDescScratchBlockSize(ged_ins_t* ins, GED_RETURN_VALUE* result);
2786
2787 /*!
2788 * Set the value of the MsgDescScratchBlockSize field in the given instruction. See @ref GED_INS_FIELD_MsgDescScratchBlockSize for the
2789 * field's description.
2790 *
2791 * @param[in,out] ins Pointer to the instruction object for encoding.
2792 * @param[in] value The value to encode.
2793 *
2794 * @return GED_RETURN_VALUE indicating success or encoding error.
2795 */
2796 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDescScratchBlockSize(ged_ins_t* ins, const uint32_t value);
2797
2798 /*!
2799 * Get the value of the MsgDescScratchInvalidateAfterRead field in the given instruction. See @ref
2800 * GED_INS_FIELD_MsgDescScratchInvalidateAfterRead for the field's description.
2801 *
2802 * @param[in] ins Pointer to the decoded instruction object.
2803 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2804 * which caused the failure.
2805 *
2806 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2807 * it is important to check the GED_RETURN_VALUE result.
2808 *
2809 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2810 */
2811 extern uint32_t GED_CALLCONV GED_GetMsgDescScratchInvalidateAfterRead(ged_ins_t* ins, GED_RETURN_VALUE* result);
2812
2813 /*!
2814 * Set the value of the MsgDescScratchInvalidateAfterRead field in the given instruction. See @ref
2815 * GED_INS_FIELD_MsgDescScratchInvalidateAfterRead for the field's description.
2816 *
2817 * @param[in,out] ins Pointer to the instruction object for encoding.
2818 * @param[in] value The value to encode.
2819 *
2820 * @return GED_RETURN_VALUE indicating success or encoding error.
2821 */
2822 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDescScratchInvalidateAfterRead(ged_ins_t* ins, const uint32_t value);
2823
2824 /*!
2825 * Get the value of the MsgDescScratchChannelMode field in the given instruction. The function returns an enumeration value. To obtain
2826 * the enum entry's string representation, use @ref GED_GetChannelModeString. See @ref GED_INS_FIELD_MsgDescScratchChannelMode for the
2827 * field's description.
2828 *
2829 * @param[in] ins Pointer to the decoded instruction object.
2830 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2831 * which caused the failure.
2832 *
2833 * @return MsgDescScratchChannelMode's enumeration if the field is valid, GED_CHANNEL_MODE_INVALID otherwise.
2834 *
2835 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2836 */
2837 extern GED_CHANNEL_MODE GED_CALLCONV GED_GetMsgDescScratchChannelMode(ged_ins_t* ins, GED_RETURN_VALUE* result);
2838
2839 /*!
2840 * Set the value of the MsgDescScratchChannelMode field in the given instruction. See @ref GED_INS_FIELD_MsgDescScratchChannelMode for
2841 * the field's description.
2842 *
2843 * @param[in,out] ins Pointer to the instruction object for encoding.
2844 * @param[in] value The value to encode.
2845 *
2846 * @return GED_RETURN_VALUE indicating success or encoding error.
2847 */
2848 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDescScratchChannelMode(ged_ins_t* ins, const GED_CHANNEL_MODE value);
2849
2850 /*!
2851 * Get the value of the MsgDescScratchMessageType field in the given instruction. The function returns an enumeration value. To obtain
2852 * the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref GED_INS_FIELD_MsgDescScratchMessageType for the
2853 * field's description.
2854 *
2855 * @param[in] ins Pointer to the decoded instruction object.
2856 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2857 * which caused the failure.
2858 *
2859 * @return MsgDescScratchMessageType's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
2860 *
2861 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2862 */
2863 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMsgDescScratchMessageType(ged_ins_t* ins, GED_RETURN_VALUE* result);
2864
2865 /*!
2866 * Set the value of the MsgDescScratchMessageType field in the given instruction. See @ref GED_INS_FIELD_MsgDescScratchMessageType for
2867 * the field's description.
2868 *
2869 * @param[in,out] ins Pointer to the instruction object for encoding.
2870 * @param[in] value The value to encode.
2871 *
2872 * @return GED_RETURN_VALUE indicating success or encoding error.
2873 */
2874 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMsgDescScratchMessageType(ged_ins_t* ins, const GED_MESSAGE_TYPE value);
2875
2876 /*!
2877 * Get the value of the ExecutionDataType field in the given instruction. The function returns an enumeration value. To obtain the
2878 * enum entry's string representation, use @ref GED_GetExecutionDataTypeString. See @ref GED_INS_FIELD_ExecutionDataType for the
2879 * field's description.
2880 *
2881 * @param[in] ins Pointer to the decoded instruction object.
2882 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2883 * which caused the failure.
2884 *
2885 * @return ExecutionDataType's enumeration if the field is valid, GED_EXECUTION_DATA_TYPE_INVALID otherwise.
2886 *
2887 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2888 */
2889 extern GED_EXECUTION_DATA_TYPE GED_CALLCONV GED_GetExecutionDataType(ged_ins_t* ins, GED_RETURN_VALUE* result);
2890
2891 /*!
2892 * Set the value of the ExecutionDataType field in the given instruction. See @ref GED_INS_FIELD_ExecutionDataType for the field's
2893 * description.
2894 *
2895 * @param[in,out] ins Pointer to the instruction object for encoding.
2896 * @param[in] value The value to encode.
2897 *
2898 * @return GED_RETURN_VALUE indicating success or encoding error.
2899 */
2900 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExecutionDataType(ged_ins_t* ins, const GED_EXECUTION_DATA_TYPE value);
2901
2902 /*!
2903 * Get the value of the Src0TernaryImm field in the given instruction. See @ref GED_INS_FIELD_Src0TernaryImm for the field's
2904 * description.
2905 *
2906 * @param[in] ins Pointer to the decoded instruction object.
2907 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2908 * which caused the failure.
2909 *
2910 * @return The requested value if the field is valid, uint64_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2911 * it is important to check the GED_RETURN_VALUE result.
2912 *
2913 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2914 */
2915 extern uint64_t GED_CALLCONV GED_GetSrc0TernaryImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
2916
2917 /*!
2918 * Set the value of the Src0TernaryImm field in the given instruction. See @ref GED_INS_FIELD_Src0TernaryImm for the field's
2919 * description.
2920 *
2921 * @param[in,out] ins Pointer to the instruction object for encoding.
2922 * @param[in] value The value to encode.
2923 *
2924 * @return GED_RETURN_VALUE indicating success or encoding error.
2925 */
2926 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0TernaryImm(ged_ins_t* ins, const uint64_t value);
2927
2928 /*!
2929 * Get the value of the Src2TernaryImm field in the given instruction. See @ref GED_INS_FIELD_Src2TernaryImm for the field's
2930 * description.
2931 *
2932 * @param[in] ins Pointer to the decoded instruction object.
2933 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2934 * which caused the failure.
2935 *
2936 * @return The requested value if the field is valid, uint64_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2937 * it is important to check the GED_RETURN_VALUE result.
2938 *
2939 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2940 */
2941 extern uint64_t GED_CALLCONV GED_GetSrc2TernaryImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
2942
2943 /*!
2944 * Set the value of the Src2TernaryImm field in the given instruction. See @ref GED_INS_FIELD_Src2TernaryImm for the field's
2945 * description.
2946 *
2947 * @param[in,out] ins Pointer to the instruction object for encoding.
2948 * @param[in] value The value to encode.
2949 *
2950 * @return GED_RETURN_VALUE indicating success or encoding error.
2951 */
2952 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2TernaryImm(ged_ins_t* ins, const uint64_t value);
2953
2954 /*!
2955 * Get the value of the Src2HorzStride field in the given instruction. See @ref GED_INS_FIELD_Src2HorzStride for the field's
2956 * description.
2957 *
2958 * @param[in] ins Pointer to the decoded instruction object.
2959 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2960 * which caused the failure.
2961 *
2962 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
2963 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
2964 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
2965 * GED_RETURN_VALUE result.
2966 *
2967 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2968 */
2969 extern uint32_t GED_CALLCONV GED_GetSrc2HorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result);
2970
2971 /*!
2972 * Set the value of the Src2HorzStride field in the given instruction. See @ref GED_INS_FIELD_Src2HorzStride for the field's
2973 * description.
2974 *
2975 * @param[in,out] ins Pointer to the instruction object for encoding.
2976 * @param[in] value The value to encode.
2977 *
2978 * @return GED_RETURN_VALUE indicating success or encoding error.
2979 */
2980 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2HorzStride(ged_ins_t* ins, const uint32_t value);
2981
2982 /*!
2983 * Get the value of the SWSB field in the given instruction. See @ref GED_INS_FIELD_SWSB for the field's description.
2984 *
2985 * @param[in] ins Pointer to the decoded instruction object.
2986 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
2987 * which caused the failure.
2988 *
2989 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
2990 * it is important to check the GED_RETURN_VALUE result.
2991 *
2992 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
2993 */
2994 extern uint32_t GED_CALLCONV GED_GetSWSB(ged_ins_t* ins, GED_RETURN_VALUE* result);
2995
2996 /*!
2997 * Set the value of the SWSB field in the given instruction. See @ref GED_INS_FIELD_SWSB for the field's description.
2998 *
2999 * @param[in,out] ins Pointer to the instruction object for encoding.
3000 * @param[in] value The value to encode.
3001 *
3002 * @return GED_RETURN_VALUE indicating success or encoding error.
3003 */
3004 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSWSB(ged_ins_t* ins, const uint32_t value);
3005
3006 /*!
3007 * Get the value of the Src1IsImm field in the given instruction. See @ref GED_INS_FIELD_Src1IsImm for the field's description.
3008 *
3009 * @param[in] ins Pointer to the decoded instruction object.
3010 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3011 * which caused the failure.
3012 *
3013 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3014 * it is important to check the GED_RETURN_VALUE result.
3015 *
3016 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3017 */
3018 extern uint32_t GED_CALLCONV GED_GetSrc1IsImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
3019
3020 /*!
3021 * Set the value of the Src1IsImm field in the given instruction. See @ref GED_INS_FIELD_Src1IsImm for the field's description.
3022 *
3023 * @param[in,out] ins Pointer to the instruction object for encoding.
3024 * @param[in] value The value to encode.
3025 *
3026 * @return GED_RETURN_VALUE indicating success or encoding error.
3027 */
3028 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1IsImm(ged_ins_t* ins, const uint32_t value);
3029
3030 /*!
3031 * Get the value of the Src0IsImm field in the given instruction. See @ref GED_INS_FIELD_Src0IsImm for the field's description.
3032 *
3033 * @param[in] ins Pointer to the decoded instruction object.
3034 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3035 * which caused the failure.
3036 *
3037 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3038 * it is important to check the GED_RETURN_VALUE result.
3039 *
3040 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3041 */
3042 extern uint32_t GED_CALLCONV GED_GetSrc0IsImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
3043
3044 /*!
3045 * Set the value of the Src0IsImm field in the given instruction. See @ref GED_INS_FIELD_Src0IsImm for the field's description.
3046 *
3047 * @param[in,out] ins Pointer to the instruction object for encoding.
3048 * @param[in] value The value to encode.
3049 *
3050 * @return GED_RETURN_VALUE indicating success or encoding error.
3051 */
3052 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0IsImm(ged_ins_t* ins, const uint32_t value);
3053
3054 /*!
3055 * Get the value of the Src0SubRegNumByte field in the given instruction. See @ref GED_INS_FIELD_Src0SubRegNumByte for the field's
3056 * description.
3057 *
3058 * @param[in] ins Pointer to the decoded instruction object.
3059 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3060 * which caused the failure.
3061 *
3062 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3063 * it is important to check the GED_RETURN_VALUE result.
3064 *
3065 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3066 */
3067 extern uint32_t GED_CALLCONV GED_GetSrc0SubRegNumByte(ged_ins_t* ins, GED_RETURN_VALUE* result);
3068
3069 /*!
3070 * Set the value of the Src0SubRegNumByte field in the given instruction. See @ref GED_INS_FIELD_Src0SubRegNumByte for the field's
3071 * description.
3072 *
3073 * @param[in,out] ins Pointer to the instruction object for encoding.
3074 * @param[in] value The value to encode.
3075 *
3076 * @return GED_RETURN_VALUE indicating success or encoding error.
3077 */
3078 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc0SubRegNumByte(ged_ins_t* ins, const uint32_t value);
3079
3080 /*!
3081 * Get the value of the SyncFC field in the given instruction. The function returns an enumeration value. To obtain the enum entry's
3082 * string representation, use @ref GED_GetSyncFCString. See @ref GED_INS_FIELD_SyncFC for the field's description.
3083 *
3084 * @param[in] ins Pointer to the decoded instruction object.
3085 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3086 * which caused the failure.
3087 *
3088 * @return SyncFC's enumeration if the field is valid, GED_SYNC_FC_INVALID otherwise.
3089 *
3090 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3091 */
3092 extern GED_SYNC_FC GED_CALLCONV GED_GetSyncFC(ged_ins_t* ins, GED_RETURN_VALUE* result);
3093
3094 /*!
3095 * Set the value of the SyncFC field in the given instruction. See @ref GED_INS_FIELD_SyncFC for the field's description.
3096 *
3097 * @param[in,out] ins Pointer to the instruction object for encoding.
3098 * @param[in] value The value to encode.
3099 *
3100 * @return GED_RETURN_VALUE indicating success or encoding error.
3101 */
3102 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSyncFC(ged_ins_t* ins, const GED_SYNC_FC value);
3103
3104 /*!
3105 * Get the value of the FusionCtrl field in the given instruction. The function returns an enumeration value. To obtain the enum
3106 * entry's string representation, use @ref GED_GetFusionCtrlString. See @ref GED_INS_FIELD_FusionCtrl for the field's description.
3107 *
3108 * @param[in] ins Pointer to the decoded instruction object.
3109 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3110 * which caused the failure.
3111 *
3112 * @return FusionCtrl's enumeration if the field is valid, GED_FUSION_CTRL_INVALID otherwise.
3113 *
3114 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3115 */
3116 extern GED_FUSION_CTRL GED_CALLCONV GED_GetFusionCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result);
3117
3118 /*!
3119 * Set the value of the FusionCtrl field in the given instruction. See @ref GED_INS_FIELD_FusionCtrl for the field's description.
3120 *
3121 * @param[in,out] ins Pointer to the instruction object for encoding.
3122 * @param[in] value The value to encode.
3123 *
3124 * @return GED_RETURN_VALUE indicating success or encoding error.
3125 */
3126 extern GED_RETURN_VALUE GED_CALLCONV GED_SetFusionCtrl(ged_ins_t* ins, const GED_FUSION_CTRL value);
3127
3128 /*!
3129 * Get the value of the DataTypeIndexNoDep field in the given instruction. See @ref GED_INS_FIELD_DataTypeIndexNoDep for the field's
3130 * description.
3131 *
3132 * @param[in] ins Pointer to the decoded instruction object.
3133 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3134 * which caused the failure.
3135 *
3136 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3137 * it is important to check the GED_RETURN_VALUE result.
3138 *
3139 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3140 */
3141 extern uint32_t GED_CALLCONV GED_GetDataTypeIndexNoDep(ged_ins_t* ins, GED_RETURN_VALUE* result);
3142
3143 /*!
3144 * Set the value of the DataTypeIndexNoDep field in the given instruction. See @ref GED_INS_FIELD_DataTypeIndexNoDep for the field's
3145 * description.
3146 *
3147 * @param[in,out] ins Pointer to the instruction object for encoding.
3148 * @param[in] value The value to encode.
3149 *
3150 * @return GED_RETURN_VALUE indicating success or encoding error.
3151 */
3152 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDataTypeIndexNoDep(ged_ins_t* ins, const uint32_t value);
3153
3154 /*!
3155 * Get the value of the CompactedImm field in the given instruction. See @ref GED_INS_FIELD_CompactedImm for the field's description.
3156 *
3157 * @param[in] ins Pointer to the decoded instruction object.
3158 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3159 * which caused the failure.
3160 *
3161 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3162 * it is important to check the GED_RETURN_VALUE result.
3163 *
3164 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3165 */
3166 extern uint32_t GED_CALLCONV GED_GetCompactedImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
3167
3168 /*!
3169 * Set the value of the CompactedImm field in the given instruction. See @ref GED_INS_FIELD_CompactedImm for the field's description.
3170 *
3171 * @param[in,out] ins Pointer to the instruction object for encoding.
3172 * @param[in] value The value to encode.
3173 *
3174 * @return GED_RETURN_VALUE indicating success or encoding error.
3175 */
3176 extern GED_RETURN_VALUE GED_CALLCONV GED_SetCompactedImm(ged_ins_t* ins, const uint32_t value);
3177
3178 /*!
3179 * Get the value of the RepeatCount field in the given instruction. See @ref GED_INS_FIELD_RepeatCount for the field's description.
3180 *
3181 * @param[in] ins Pointer to the decoded instruction object.
3182 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3183 * which caused the failure.
3184 *
3185 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
3186 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
3187 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
3188 * GED_RETURN_VALUE result.
3189 *
3190 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3191 */
3192 extern uint32_t GED_CALLCONV GED_GetRepeatCount(ged_ins_t* ins, GED_RETURN_VALUE* result);
3193
3194 /*!
3195 * Set the value of the RepeatCount field in the given instruction. See @ref GED_INS_FIELD_RepeatCount for the field's description.
3196 *
3197 * @param[in,out] ins Pointer to the instruction object for encoding.
3198 * @param[in] value The value to encode.
3199 *
3200 * @return GED_RETURN_VALUE indicating success or encoding error.
3201 */
3202 extern GED_RETURN_VALUE GED_CALLCONV GED_SetRepeatCount(ged_ins_t* ins, const uint32_t value);
3203
3204 /*!
3205 * Get the value of the SystolicDepth field in the given instruction. See @ref GED_INS_FIELD_SystolicDepth for the field's
3206 * description.
3207 *
3208 * @param[in] ins Pointer to the decoded instruction object.
3209 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3210 * which caused the failure.
3211 *
3212 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
3213 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
3214 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
3215 * GED_RETURN_VALUE result.
3216 *
3217 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3218 */
3219 extern uint32_t GED_CALLCONV GED_GetSystolicDepth(ged_ins_t* ins, GED_RETURN_VALUE* result);
3220
3221 /*!
3222 * Set the value of the SystolicDepth field in the given instruction. See @ref GED_INS_FIELD_SystolicDepth for the field's
3223 * description.
3224 *
3225 * @param[in,out] ins Pointer to the instruction object for encoding.
3226 * @param[in] value The value to encode.
3227 *
3228 * @return GED_RETURN_VALUE indicating success or encoding error.
3229 */
3230 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSystolicDepth(ged_ins_t* ins, const uint32_t value);
3231
3232 /*!
3233 * Get the value of the Src2Precision field in the given instruction. The function returns an enumeration value. To obtain the enum
3234 * entry's string representation, use @ref GED_GetPrecisionString. See @ref GED_INS_FIELD_Src2Precision for the field's description.
3235 *
3236 * @param[in] ins Pointer to the decoded instruction object.
3237 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3238 * which caused the failure.
3239 *
3240 * @return Src2Precision's enumeration if the field is valid, GED_PRECISION_INVALID otherwise.
3241 *
3242 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3243 */
3244 extern GED_PRECISION GED_CALLCONV GED_GetSrc2Precision(ged_ins_t* ins, GED_RETURN_VALUE* result);
3245
3246 /*!
3247 * Set the value of the Src2Precision field in the given instruction. See @ref GED_INS_FIELD_Src2Precision for the field's
3248 * description.
3249 *
3250 * @param[in,out] ins Pointer to the instruction object for encoding.
3251 * @param[in] value The value to encode.
3252 *
3253 * @return GED_RETURN_VALUE indicating success or encoding error.
3254 */
3255 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2Precision(ged_ins_t* ins, const GED_PRECISION value);
3256
3257 /*!
3258 * Get the value of the Src2SubBytePrecision field in the given instruction. The function returns an enumeration value. To obtain the
3259 * enum entry's string representation, use @ref GED_GetSubBytePrecisionString. See @ref GED_INS_FIELD_Src2SubBytePrecision for the
3260 * field's description.
3261 *
3262 * @param[in] ins Pointer to the decoded instruction object.
3263 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3264 * which caused the failure.
3265 *
3266 * @return Src2SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3267 *
3268 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3269 */
3270 extern GED_SUB_BYTE_PRECISION GED_CALLCONV GED_GetSrc2SubBytePrecision(ged_ins_t* ins, GED_RETURN_VALUE* result);
3271
3272 /*!
3273 * Set the value of the Src2SubBytePrecision field in the given instruction. See @ref GED_INS_FIELD_Src2SubBytePrecision for the
3274 * field's description.
3275 *
3276 * @param[in,out] ins Pointer to the instruction object for encoding.
3277 * @param[in] value The value to encode.
3278 *
3279 * @return GED_RETURN_VALUE indicating success or encoding error.
3280 */
3281 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2SubBytePrecision(ged_ins_t* ins, const GED_SUB_BYTE_PRECISION value);
3282
3283 /*!
3284 * Get the value of the Src1Precision field in the given instruction. The function returns an enumeration value. To obtain the enum
3285 * entry's string representation, use @ref GED_GetPrecisionString. See @ref GED_INS_FIELD_Src1Precision for the field's description.
3286 *
3287 * @param[in] ins Pointer to the decoded instruction object.
3288 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3289 * which caused the failure.
3290 *
3291 * @return Src1Precision's enumeration if the field is valid, GED_PRECISION_INVALID otherwise.
3292 *
3293 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3294 */
3295 extern GED_PRECISION GED_CALLCONV GED_GetSrc1Precision(ged_ins_t* ins, GED_RETURN_VALUE* result);
3296
3297 /*!
3298 * Set the value of the Src1Precision field in the given instruction. See @ref GED_INS_FIELD_Src1Precision for the field's
3299 * description.
3300 *
3301 * @param[in,out] ins Pointer to the instruction object for encoding.
3302 * @param[in] value The value to encode.
3303 *
3304 * @return GED_RETURN_VALUE indicating success or encoding error.
3305 */
3306 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1Precision(ged_ins_t* ins, const GED_PRECISION value);
3307
3308 /*!
3309 * Get the value of the Src1SubBytePrecision field in the given instruction. The function returns an enumeration value. To obtain the
3310 * enum entry's string representation, use @ref GED_GetSubBytePrecisionString. See @ref GED_INS_FIELD_Src1SubBytePrecision for the
3311 * field's description.
3312 *
3313 * @param[in] ins Pointer to the decoded instruction object.
3314 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3315 * which caused the failure.
3316 *
3317 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3318 *
3319 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3320 */
3321 extern GED_SUB_BYTE_PRECISION GED_CALLCONV GED_GetSrc1SubBytePrecision(ged_ins_t* ins, GED_RETURN_VALUE* result);
3322
3323 /*!
3324 * Set the value of the Src1SubBytePrecision field in the given instruction. See @ref GED_INS_FIELD_Src1SubBytePrecision for the
3325 * field's description.
3326 *
3327 * @param[in,out] ins Pointer to the instruction object for encoding.
3328 * @param[in] value The value to encode.
3329 *
3330 * @return GED_RETURN_VALUE indicating success or encoding error.
3331 */
3332 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1SubBytePrecision(ged_ins_t* ins, const GED_SUB_BYTE_PRECISION value);
3333
3334 /*!
3335 * Get the value of the BfnFC field in the given instruction. See @ref GED_INS_FIELD_BfnFC for the field's description.
3336 *
3337 * @param[in] ins Pointer to the decoded instruction object.
3338 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3339 * which caused the failure.
3340 *
3341 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3342 * it is important to check the GED_RETURN_VALUE result.
3343 *
3344 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3345 */
3346 extern uint32_t GED_CALLCONV GED_GetBfnFC(ged_ins_t* ins, GED_RETURN_VALUE* result);
3347
3348 /*!
3349 * Set the value of the BfnFC field in the given instruction. See @ref GED_INS_FIELD_BfnFC for the field's description.
3350 *
3351 * @param[in,out] ins Pointer to the instruction object for encoding.
3352 * @param[in] value The value to encode.
3353 *
3354 * @return GED_RETURN_VALUE indicating success or encoding error.
3355 */
3356 extern GED_RETURN_VALUE GED_CALLCONV GED_SetBfnFC(ged_ins_t* ins, const uint32_t value);
3357
3358 /*!
3359 * Get the value of the ExBSO field in the given instruction. See @ref GED_INS_FIELD_ExBSO for the field's description.
3360 *
3361 * @param[in] ins Pointer to the decoded instruction object.
3362 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3363 * which caused the failure.
3364 *
3365 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3366 * it is important to check the GED_RETURN_VALUE result.
3367 *
3368 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3369 */
3370 extern uint32_t GED_CALLCONV GED_GetExBSO(ged_ins_t* ins, GED_RETURN_VALUE* result);
3371
3372 /*!
3373 * Set the value of the ExBSO field in the given instruction. See @ref GED_INS_FIELD_ExBSO for the field's description.
3374 *
3375 * @param[in,out] ins Pointer to the instruction object for encoding.
3376 * @param[in] value The value to encode.
3377 *
3378 * @return GED_RETURN_VALUE indicating success or encoding error.
3379 */
3380 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExBSO(ged_ins_t* ins, const uint32_t value);
3381
3382 /*!
3383 * Get the value of the CPS field in the given instruction. See @ref GED_INS_FIELD_CPS for the field's description.
3384 *
3385 * @param[in] ins Pointer to the decoded instruction object.
3386 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3387 * which caused the failure.
3388 *
3389 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3390 * it is important to check the GED_RETURN_VALUE result.
3391 *
3392 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3393 */
3394 extern uint32_t GED_CALLCONV GED_GetCPS(ged_ins_t* ins, GED_RETURN_VALUE* result);
3395
3396 /*!
3397 * Set the value of the CPS field in the given instruction. See @ref GED_INS_FIELD_CPS for the field's description.
3398 *
3399 * @param[in,out] ins Pointer to the instruction object for encoding.
3400 * @param[in] value The value to encode.
3401 *
3402 * @return GED_RETURN_VALUE indicating success or encoding error.
3403 */
3404 extern GED_RETURN_VALUE GED_CALLCONV GED_SetCPS(ged_ins_t* ins, const uint32_t value);
3405
3406 /*!
3407 * Get the value of the Src1Length field in the given instruction. See @ref GED_INS_FIELD_Src1Length for the field's description.
3408 *
3409 * @param[in] ins Pointer to the decoded instruction object.
3410 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3411 * which caused the failure.
3412 *
3413 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3414 * it is important to check the GED_RETURN_VALUE result.
3415 *
3416 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3417 */
3418 extern uint32_t GED_CALLCONV GED_GetSrc1Length(ged_ins_t* ins, GED_RETURN_VALUE* result);
3419
3420 /*!
3421 * Set the value of the Src1Length field in the given instruction. See @ref GED_INS_FIELD_Src1Length for the field's description.
3422 *
3423 * @param[in,out] ins Pointer to the instruction object for encoding.
3424 * @param[in] value The value to encode.
3425 *
3426 * @return GED_RETURN_VALUE indicating success or encoding error.
3427 */
3428 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc1Length(ged_ins_t* ins, const uint32_t value);
3429
3430 /*!
3431 * Get the value of the Src2IsImm field in the given instruction. See @ref GED_INS_FIELD_Src2IsImm for the field's description.
3432 *
3433 * @param[in] ins Pointer to the decoded instruction object.
3434 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3435 * which caused the failure.
3436 *
3437 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3438 * it is important to check the GED_RETURN_VALUE result.
3439 *
3440 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3441 */
3442 extern uint32_t GED_CALLCONV GED_GetSrc2IsImm(ged_ins_t* ins, GED_RETURN_VALUE* result);
3443
3444 /*!
3445 * Set the value of the Src2IsImm field in the given instruction. See @ref GED_INS_FIELD_Src2IsImm for the field's description.
3446 *
3447 * @param[in,out] ins Pointer to the instruction object for encoding.
3448 * @param[in] value The value to encode.
3449 *
3450 * @return GED_RETURN_VALUE indicating success or encoding error.
3451 */
3452 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2IsImm(ged_ins_t* ins, const uint32_t value);
3453
3454 /*!
3455 * Get the value of the AddrImm field which corresponds to an indexed Src operand in the given instruction. See @ref
3456 * GED_INS_FIELD_Src0AddrImm, @ref GED_INS_FIELD_Src1AddrImm for the fields' description.
3457 *
3458 * @param[in] ins Pointer to the decoded instruction object.
3459 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3460 * which caused the failure.
3461 * @param[in] index The index (number) of the source operand.
3462 *
3463 * @return The requested value if the field is valid, -1 otherwise. If -1 is a valid value for this field, it is important to
3464 * check the GED_RETURN_VALUE result.
3465 *
3466 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3467 */
3468 extern int32_t GED_CALLCONV GED_GetIndexedSrcAddrImm(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3469
3470 /*!
3471 * Set the value of the AddrImm field which corresponds to an indexed Src operand in the given instruction. See @ref
3472 * GED_INS_FIELD_Src0AddrImm, @ref GED_INS_FIELD_Src1AddrImm for the fields' description.
3473 *
3474 * @param[in,out] ins Pointer to the instruction object for encoding.
3475 * @param[in] value The value to encode.
3476 * @param[in] index The index (number) of the source operand.
3477 *
3478 * @return GED_RETURN_VALUE indicating success or encoding error.
3479 */
3480 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcAddrImm(ged_ins_t* ins, const int32_t value, const uint8_t index);
3481
3482 /*!
3483 * Get the value of the AddrMode field which corresponds to an indexed Src operand in the given instruction. See @ref
3484 * GED_INS_FIELD_Src0AddrMode, @ref GED_INS_FIELD_Src1AddrMode, @ref GED_INS_FIELD_Src2AddrMode for the fields' description.
3485 *
3486 * @param[in] ins Pointer to the decoded instruction object.
3487 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3488 * which caused the failure.
3489 * @param[in] index The index (number) of the source operand.
3490 *
3491 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3492 *
3493 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3494 */
3495 extern GED_ADDR_MODE GED_CALLCONV GED_GetIndexedSrcAddrMode(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3496
3497 /*!
3498 * Set the value of the AddrMode field which corresponds to an indexed Src operand in the given instruction. See @ref
3499 * GED_INS_FIELD_Src0AddrMode, @ref GED_INS_FIELD_Src1AddrMode, @ref GED_INS_FIELD_Src2AddrMode for the fields' description.
3500 *
3501 * @param[in,out] ins Pointer to the instruction object for encoding.
3502 * @param[in] value The value to encode.
3503 * @param[in] index The index (number) of the source operand.
3504 *
3505 * @return GED_RETURN_VALUE indicating success or encoding error.
3506 */
3507 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcAddrMode(ged_ins_t* ins, const GED_ADDR_MODE value, const uint8_t index);
3508
3509 /*!
3510 * Get the value of the AddrSubRegNum field which corresponds to an indexed Src operand in the given instruction. See @ref
3511 * GED_INS_FIELD_Src0AddrSubRegNum, @ref GED_INS_FIELD_Src1AddrSubRegNum for the fields' description.
3512 *
3513 * @param[in] ins Pointer to the decoded instruction object.
3514 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3515 * which caused the failure.
3516 * @param[in] index The index (number) of the source operand.
3517 *
3518 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3519 * it is important to check the GED_RETURN_VALUE result.
3520 *
3521 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3522 */
3523 extern uint32_t GED_CALLCONV GED_GetIndexedSrcAddrSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3524
3525 /*!
3526 * Set the value of the AddrSubRegNum field which corresponds to an indexed Src operand in the given instruction. See @ref
3527 * GED_INS_FIELD_Src0AddrSubRegNum, @ref GED_INS_FIELD_Src1AddrSubRegNum for the fields' description.
3528 *
3529 * @param[in,out] ins Pointer to the instruction object for encoding.
3530 * @param[in] value The value to encode.
3531 * @param[in] index The index (number) of the source operand.
3532 *
3533 * @return GED_RETURN_VALUE indicating success or encoding error.
3534 */
3535 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcAddrSubRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3536
3537 /*!
3538 * Get the value of the ChanSel field which corresponds to an indexed Src operand in the given instruction. See @ref
3539 * GED_INS_FIELD_Src0ChanSel, @ref GED_INS_FIELD_Src1ChanSel, @ref GED_INS_FIELD_Src2ChanSel for the fields' description.
3540 *
3541 * @param[in] ins Pointer to the decoded instruction object.
3542 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3543 * which caused the failure.
3544 * @param[in] index The index (number) of the source operand.
3545 *
3546 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3547 * it is important to check the GED_RETURN_VALUE result.
3548 *
3549 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3550 */
3551 extern uint32_t GED_CALLCONV GED_GetIndexedSrcChanSel(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3552
3553 /*!
3554 * Set the value of the ChanSel field which corresponds to an indexed Src operand in the given instruction. See @ref
3555 * GED_INS_FIELD_Src0ChanSel, @ref GED_INS_FIELD_Src1ChanSel, @ref GED_INS_FIELD_Src2ChanSel for the fields' description.
3556 *
3557 * @param[in,out] ins Pointer to the instruction object for encoding.
3558 * @param[in] value The value to encode.
3559 * @param[in] index The index (number) of the source operand.
3560 *
3561 * @return GED_RETURN_VALUE indicating success or encoding error.
3562 */
3563 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcChanSel(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3564
3565 /*!
3566 * Get the value of the DataType field which corresponds to an indexed Src operand in the given instruction. See @ref
3567 * GED_INS_FIELD_Src0DataType, @ref GED_INS_FIELD_Src1DataType, @ref GED_INS_FIELD_Src2DataType for the fields' description.
3568 *
3569 * @param[in] ins Pointer to the decoded instruction object.
3570 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3571 * which caused the failure.
3572 * @param[in] index The index (number) of the source operand.
3573 *
3574 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3575 *
3576 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3577 */
3578 extern GED_DATA_TYPE GED_CALLCONV GED_GetIndexedSrcDataType(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3579
3580 /*!
3581 * Set the value of the DataType field which corresponds to an indexed Src operand in the given instruction. See @ref
3582 * GED_INS_FIELD_Src0DataType, @ref GED_INS_FIELD_Src1DataType, @ref GED_INS_FIELD_Src2DataType for the fields' description.
3583 *
3584 * @param[in,out] ins Pointer to the instruction object for encoding.
3585 * @param[in] value The value to encode.
3586 * @param[in] index The index (number) of the source operand.
3587 *
3588 * @return GED_RETURN_VALUE indicating success or encoding error.
3589 */
3590 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcDataType(ged_ins_t* ins, const GED_DATA_TYPE value, const uint8_t index);
3591
3592 /*!
3593 * Get the value of the HorzStride field which corresponds to an indexed Src operand in the given instruction. See @ref
3594 * GED_INS_FIELD_Src0HorzStride, @ref GED_INS_FIELD_Src1HorzStride, @ref GED_INS_FIELD_Src2HorzStride for the fields' description.
3595 *
3596 * @param[in] ins Pointer to the decoded instruction object.
3597 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3598 * which caused the failure.
3599 * @param[in] index The index (number) of the source operand.
3600 *
3601 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
3602 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
3603 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
3604 * GED_RETURN_VALUE result.
3605 *
3606 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3607 */
3608 extern uint32_t GED_CALLCONV GED_GetIndexedSrcHorzStride(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3609
3610 /*!
3611 * Set the value of the HorzStride field which corresponds to an indexed Src operand in the given instruction. See @ref
3612 * GED_INS_FIELD_Src0HorzStride, @ref GED_INS_FIELD_Src1HorzStride, @ref GED_INS_FIELD_Src2HorzStride for the fields' description.
3613 *
3614 * @param[in,out] ins Pointer to the instruction object for encoding.
3615 * @param[in] value The value to encode.
3616 * @param[in] index The index (number) of the source operand.
3617 *
3618 * @return GED_RETURN_VALUE indicating success or encoding error.
3619 */
3620 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcHorzStride(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3621
3622 /*!
3623 * Get the value of the Index field which corresponds to an indexed Src operand in the given instruction. See @ref
3624 * GED_INS_FIELD_Src0Index, @ref GED_INS_FIELD_Src1Index for the fields' description.
3625 *
3626 * @param[in] ins Pointer to the decoded instruction object.
3627 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3628 * which caused the failure.
3629 * @param[in] index The index (number) of the source operand.
3630 *
3631 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3632 * it is important to check the GED_RETURN_VALUE result.
3633 *
3634 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3635 */
3636 extern uint32_t GED_CALLCONV GED_GetIndexedSrcIndex(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3637
3638 /*!
3639 * Set the value of the Index field which corresponds to an indexed Src operand in the given instruction. See @ref
3640 * GED_INS_FIELD_Src0Index, @ref GED_INS_FIELD_Src1Index for the fields' description.
3641 *
3642 * @param[in,out] ins Pointer to the instruction object for encoding.
3643 * @param[in] value The value to encode.
3644 * @param[in] index The index (number) of the source operand.
3645 *
3646 * @return GED_RETURN_VALUE indicating success or encoding error.
3647 */
3648 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcIndex(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3649
3650 /*!
3651 * Get the value of the IsImm field which corresponds to an indexed Src operand in the given instruction. See @ref
3652 * GED_INS_FIELD_Src0IsImm, @ref GED_INS_FIELD_Src1IsImm, @ref GED_INS_FIELD_Src2IsImm for the fields' description.
3653 *
3654 * @param[in] ins Pointer to the decoded instruction object.
3655 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3656 * which caused the failure.
3657 * @param[in] index The index (number) of the source operand.
3658 *
3659 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3660 * it is important to check the GED_RETURN_VALUE result.
3661 *
3662 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3663 */
3664 extern uint32_t GED_CALLCONV GED_GetIndexedSrcIsImm(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3665
3666 /*!
3667 * Set the value of the IsImm field which corresponds to an indexed Src operand in the given instruction. See @ref
3668 * GED_INS_FIELD_Src0IsImm, @ref GED_INS_FIELD_Src1IsImm, @ref GED_INS_FIELD_Src2IsImm for the fields' description.
3669 *
3670 * @param[in,out] ins Pointer to the instruction object for encoding.
3671 * @param[in] value The value to encode.
3672 * @param[in] index The index (number) of the source operand.
3673 *
3674 * @return GED_RETURN_VALUE indicating success or encoding error.
3675 */
3676 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcIsImm(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3677
3678 /*!
3679 * Get the value of the MathMacroExt field which corresponds to an indexed Src operand in the given instruction. See @ref
3680 * GED_INS_FIELD_Src0MathMacroExt, @ref GED_INS_FIELD_Src1MathMacroExt, @ref GED_INS_FIELD_Src2MathMacroExt for the fields'
3681 * description.
3682 *
3683 * @param[in] ins Pointer to the decoded instruction object.
3684 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3685 * which caused the failure.
3686 * @param[in] index The index (number) of the source operand.
3687 *
3688 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3689 *
3690 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3691 */
3692 extern GED_MATH_MACRO_EXT GED_CALLCONV GED_GetIndexedSrcMathMacroExt(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3693
3694 /*!
3695 * Set the value of the MathMacroExt field which corresponds to an indexed Src operand in the given instruction. See @ref
3696 * GED_INS_FIELD_Src0MathMacroExt, @ref GED_INS_FIELD_Src1MathMacroExt, @ref GED_INS_FIELD_Src2MathMacroExt for the fields'
3697 * description.
3698 *
3699 * @param[in,out] ins Pointer to the instruction object for encoding.
3700 * @param[in] value The value to encode.
3701 * @param[in] index The index (number) of the source operand.
3702 *
3703 * @return GED_RETURN_VALUE indicating success or encoding error.
3704 */
3705 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcMathMacroExt(ged_ins_t* ins, const GED_MATH_MACRO_EXT value, const uint8_t
3706 index);
3707
3708 /*!
3709 * Get the value of the RegFile field which corresponds to an indexed Src operand in the given instruction. See @ref
3710 * GED_INS_FIELD_Src0RegFile, @ref GED_INS_FIELD_Src1RegFile, @ref GED_INS_FIELD_Src2RegFile for the fields' description.
3711 *
3712 * @param[in] ins Pointer to the decoded instruction object.
3713 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3714 * which caused the failure.
3715 * @param[in] index The index (number) of the source operand.
3716 *
3717 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3718 *
3719 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3720 */
3721 extern GED_REG_FILE GED_CALLCONV GED_GetIndexedSrcRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3722
3723 /*!
3724 * Set the value of the RegFile field which corresponds to an indexed Src operand in the given instruction. See @ref
3725 * GED_INS_FIELD_Src0RegFile, @ref GED_INS_FIELD_Src1RegFile, @ref GED_INS_FIELD_Src2RegFile for the fields' description.
3726 *
3727 * @param[in,out] ins Pointer to the instruction object for encoding.
3728 * @param[in] value The value to encode.
3729 * @param[in] index The index (number) of the source operand.
3730 *
3731 * @return GED_RETURN_VALUE indicating success or encoding error.
3732 */
3733 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcRegFile(ged_ins_t* ins, const GED_REG_FILE value, const uint8_t index);
3734
3735 /*!
3736 * Get the value of the RegNum field which corresponds to an indexed Src operand in the given instruction. See @ref
3737 * GED_INS_FIELD_Src0RegNum, @ref GED_INS_FIELD_Src1RegNum, @ref GED_INS_FIELD_Src2RegNum for the fields' description.
3738 *
3739 * @param[in] ins Pointer to the decoded instruction object.
3740 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3741 * which caused the failure.
3742 * @param[in] index The index (number) of the source operand.
3743 *
3744 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3745 * it is important to check the GED_RETURN_VALUE result.
3746 *
3747 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3748 */
3749 extern uint32_t GED_CALLCONV GED_GetIndexedSrcRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3750
3751 /*!
3752 * Set the value of the RegNum field which corresponds to an indexed Src operand in the given instruction. See @ref
3753 * GED_INS_FIELD_Src0RegNum, @ref GED_INS_FIELD_Src1RegNum, @ref GED_INS_FIELD_Src2RegNum for the fields' description.
3754 *
3755 * @param[in,out] ins Pointer to the instruction object for encoding.
3756 * @param[in] value The value to encode.
3757 * @param[in] index The index (number) of the source operand.
3758 *
3759 * @return GED_RETURN_VALUE indicating success or encoding error.
3760 */
3761 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3762
3763 /*!
3764 * Get the value of the RepCtrl field which corresponds to an indexed Src operand in the given instruction. See @ref
3765 * GED_INS_FIELD_Src0RepCtrl, @ref GED_INS_FIELD_Src1RepCtrl, @ref GED_INS_FIELD_Src2RepCtrl for the fields' description.
3766 *
3767 * @param[in] ins Pointer to the decoded instruction object.
3768 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3769 * which caused the failure.
3770 * @param[in] index The index (number) of the source operand.
3771 *
3772 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3773 *
3774 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3775 */
3776 extern GED_REP_CTRL GED_CALLCONV GED_GetIndexedSrcRepCtrl(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3777
3778 /*!
3779 * Set the value of the RepCtrl field which corresponds to an indexed Src operand in the given instruction. See @ref
3780 * GED_INS_FIELD_Src0RepCtrl, @ref GED_INS_FIELD_Src1RepCtrl, @ref GED_INS_FIELD_Src2RepCtrl for the fields' description.
3781 *
3782 * @param[in,out] ins Pointer to the instruction object for encoding.
3783 * @param[in] value The value to encode.
3784 * @param[in] index The index (number) of the source operand.
3785 *
3786 * @return GED_RETURN_VALUE indicating success or encoding error.
3787 */
3788 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcRepCtrl(ged_ins_t* ins, const GED_REP_CTRL value, const uint8_t index);
3789
3790 /*!
3791 * Get the value of the SrcMod field which corresponds to an indexed Src operand in the given instruction. See @ref
3792 * GED_INS_FIELD_Src0SrcMod, @ref GED_INS_FIELD_Src1SrcMod, @ref GED_INS_FIELD_Src2SrcMod for the fields' description.
3793 *
3794 * @param[in] ins Pointer to the decoded instruction object.
3795 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3796 * which caused the failure.
3797 * @param[in] index The index (number) of the source operand.
3798 *
3799 * @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
3800 *
3801 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3802 */
3803 extern GED_SRC_MOD GED_CALLCONV GED_GetIndexedSrcSrcMod(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3804
3805 /*!
3806 * Set the value of the SrcMod field which corresponds to an indexed Src operand in the given instruction. See @ref
3807 * GED_INS_FIELD_Src0SrcMod, @ref GED_INS_FIELD_Src1SrcMod, @ref GED_INS_FIELD_Src2SrcMod for the fields' description.
3808 *
3809 * @param[in,out] ins Pointer to the instruction object for encoding.
3810 * @param[in] value The value to encode.
3811 * @param[in] index The index (number) of the source operand.
3812 *
3813 * @return GED_RETURN_VALUE indicating success or encoding error.
3814 */
3815 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcSrcMod(ged_ins_t* ins, const GED_SRC_MOD value, const uint8_t index);
3816
3817 /*!
3818 * Get the value of the SubRegNum field which corresponds to an indexed Src operand in the given instruction. See @ref
3819 * GED_INS_FIELD_Src0SubRegNum, @ref GED_INS_FIELD_Src1SubRegNum, @ref GED_INS_FIELD_Src2SubRegNum for the fields' description.
3820 *
3821 * @param[in] ins Pointer to the decoded instruction object.
3822 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3823 * which caused the failure.
3824 * @param[in] index The index (number) of the source operand.
3825 *
3826 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3827 * it is important to check the GED_RETURN_VALUE result.
3828 *
3829 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3830 */
3831 extern uint32_t GED_CALLCONV GED_GetIndexedSrcSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3832
3833 /*!
3834 * Set the value of the SubRegNum field which corresponds to an indexed Src operand in the given instruction. See @ref
3835 * GED_INS_FIELD_Src0SubRegNum, @ref GED_INS_FIELD_Src1SubRegNum, @ref GED_INS_FIELD_Src2SubRegNum for the fields' description.
3836 *
3837 * @param[in,out] ins Pointer to the instruction object for encoding.
3838 * @param[in] value The value to encode.
3839 * @param[in] index The index (number) of the source operand.
3840 *
3841 * @return GED_RETURN_VALUE indicating success or encoding error.
3842 */
3843 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcSubRegNum(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3844
3845 /*!
3846 * Get the value of the SubRegNumByte field which corresponds to an indexed Src operand in the given instruction. See @ref
3847 * GED_INS_FIELD_Src0SubRegNumByte for the fields' description.
3848 *
3849 * @param[in] ins Pointer to the decoded instruction object.
3850 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3851 * which caused the failure.
3852 * @param[in] index The index (number) of the source operand.
3853 *
3854 * @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
3855 * it is important to check the GED_RETURN_VALUE result.
3856 *
3857 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3858 */
3859 extern uint32_t GED_CALLCONV GED_GetIndexedSrcSubRegNumByte(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3860
3861 /*!
3862 * Set the value of the SubRegNumByte field which corresponds to an indexed Src operand in the given instruction. See @ref
3863 * GED_INS_FIELD_Src0SubRegNumByte for the fields' description.
3864 *
3865 * @param[in,out] ins Pointer to the instruction object for encoding.
3866 * @param[in] value The value to encode.
3867 * @param[in] index The index (number) of the source operand.
3868 *
3869 * @return GED_RETURN_VALUE indicating success or encoding error.
3870 */
3871 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcSubRegNumByte(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3872
3873 /*!
3874 * Get the value of the VertStride field which corresponds to an indexed Src operand in the given instruction. See @ref
3875 * GED_INS_FIELD_Src0VertStride, @ref GED_INS_FIELD_Src1VertStride, @ref GED_INS_FIELD_Src2VertStride for the fields' description.
3876 *
3877 * @param[in] ins Pointer to the decoded instruction object.
3878 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3879 * which caused the failure.
3880 * @param[in] index The index (number) of the source operand.
3881 *
3882 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
3883 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
3884 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
3885 * GED_RETURN_VALUE result.
3886 *
3887 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3888 */
3889 extern uint32_t GED_CALLCONV GED_GetIndexedSrcVertStride(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3890
3891 /*!
3892 * Set the value of the VertStride field which corresponds to an indexed Src operand in the given instruction. See @ref
3893 * GED_INS_FIELD_Src0VertStride, @ref GED_INS_FIELD_Src1VertStride, @ref GED_INS_FIELD_Src2VertStride for the fields' description.
3894 *
3895 * @param[in,out] ins Pointer to the instruction object for encoding.
3896 * @param[in] value The value to encode.
3897 * @param[in] index The index (number) of the source operand.
3898 *
3899 * @return GED_RETURN_VALUE indicating success or encoding error.
3900 */
3901 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcVertStride(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3902
3903 /*!
3904 * Get the value of the Width field which corresponds to an indexed Src operand in the given instruction. See @ref
3905 * GED_INS_FIELD_Src0Width, @ref GED_INS_FIELD_Src1Width for the fields' description.
3906 *
3907 * @param[in] ins Pointer to the decoded instruction object.
3908 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
3909 * which caused the failure.
3910 * @param[in] index The index (number) of the source operand.
3911 *
3912 * @return The requested value upon success. If the encoded value is not valid, i.e. does not map to any valid enumerated value
3913 * for this instruction, the (invalid) encoded value is returned. If the field is not valid for the instruction, the
3914 * uint32_t equivalent of -1 is returned. If -1 is a valid value for this field, it is important to check the
3915 * GED_RETURN_VALUE result.
3916 *
3917 * @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
3918 */
3919 extern uint32_t GED_CALLCONV GED_GetIndexedSrcWidth(ged_ins_t* ins, GED_RETURN_VALUE* result, const uint8_t index);
3920
3921 /*!
3922 * Set the value of the Width field which corresponds to an indexed Src operand in the given instruction. See @ref
3923 * GED_INS_FIELD_Src0Width, @ref GED_INS_FIELD_Src1Width for the fields' description.
3924 *
3925 * @param[in,out] ins Pointer to the instruction object for encoding.
3926 * @param[in] value The value to encode.
3927 * @param[in] index The index (number) of the source operand.
3928 *
3929 * @return GED_RETURN_VALUE indicating success or encoding error.
3930 */
3931 extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcWidth(ged_ins_t* ins, const uint32_t value, const uint8_t index);
3932
3933 /*!
3934 * Get the value of the ArchReg field from the given register number (as obtained by @ref GED_GetDstRegNum, @ref GED_GetSrc0RegNum or
3935 * @ref GED_GetSrc1RegNum). The function returns an enumeration value. To obtain the enum entry's string representation, use @ref
3936 * GED_GetArchRegString. See @ref GED_PSEUDO_FIELD_ArchReg for the field's description.
3937 *
3938 * @param[in] regNum The register number.
3939 * @param[in] modelId The GED model by which to interpret.
3940 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
3941 * error which caused the failure.
3942 *
3943 * @return ArchReg's enumeration if the field is valid, GED_ARCH_REG_INVALID otherwise.
3944 */
3945 extern GED_ARCH_REG GED_CALLCONV GED_GetArchReg(const uint32_t regNum, const GED_MODEL modelId, GED_RETURN_VALUE* result);
3946
3947 /*!
3948 * Set the value of the ArchReg field in the given register number. The latter can then be set to its appropriate fields (@ref
3949 * GED_SetDstRegNum, @ref GED_SetSrc0RegNum or @ref GED_SetSrc1RegNum). See @ref GED_PSEUDO_FIELD_ArchReg for the field's description.
3950 *
3951 * @param[in,out] regNum The register number.
3952 * @param[in] modelId The GED model by which to interpret.
3953 * @param[in] archReg The architectural register.
3954 *
3955 * @return GED_RETURN_VALUE indicating success or encoding error.
3956 */
3957 extern GED_RETURN_VALUE GED_CALLCONV GED_SetArchReg(uint32_t* regNum, const GED_MODEL modelId, const GED_ARCH_REG archReg);
3958
3959 /*!
3960 * Get the value of the ArchRegNum field from the given register number (as obtained by @ref GED_GetDstRegNum, @ref GED_GetSrc0RegNum
3961 * or @ref GED_GetSrc1RegNum). See @ref GED_PSEUDO_FIELD_ArchRegNum for the field's description.
3962 *
3963 * @param[in] regNum The register number.
3964 * @param[in] modelId The GED model by which to interpret.
3965 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
3966 * error which caused the failure.
3967 *
3968 * @return The architectural register number if the field is valid, the unchanged regNum value otherwise.
3969 */
3970 extern uint32_t GED_CALLCONV GED_GetArchRegNum(const uint32_t regNum, const GED_MODEL modelId, GED_RETURN_VALUE* result);
3971
3972 /*!
3973 * Set the value of the ArchRegNum field in the given register number. The latter can then be set to its appropriate fields (@ref
3974 * GED_SetDstRegNum, @ref GED_SetSrc0RegNum or @ref GED_SetSrc1RegNum). See @ref GED_PSEUDO_FIELD_ArchRegNum for the field's
3975 * description.
3976 *
3977 * @param[in,out] regNum The register number.
3978 * @param[in] modelId The GED model by which to interpret.
3979 * @param[in] archRegNum The architectural register number.
3980 *
3981 * @return GED_RETURN_VALUE indicating success or encoding error.
3982 */
3983 extern GED_RETURN_VALUE GED_CALLCONV GED_SetArchRegNum(uint32_t* regNum, const GED_MODEL modelId, const uint32_t archRegNum);
3984
3985 /*!
3986 * Get the value of the SwizzleX field from the given channel select (as obtained by @ref GED_GetSrc0ChanSel, @ref GED_GetSrc1ChanSel
3987 * or @ref GED_GetSrc2ChanSel). The function returns an enumeration value. To obtain the enum entry's string representation, use @ref
3988 * GED_GetSwizzleString. See @ref GED_PSEUDO_FIELD_SwizzleX for the field's description.
3989 *
3990 * @param[in] chanSel The channel select.
3991 * @param[in] modelId The GED model by which to interpret.
3992 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
3993 * error which caused the failure.
3994 *
3995 * @return SwizzleX's enumeration if the field is valid, GED_SWIZZLE_INVALID otherwise.
3996 */
3997 extern GED_SWIZZLE GED_CALLCONV GED_GetSwizzleX(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result);
3998
3999 /*!
4000 * Set the value of the SwizzleX field in the given channel select. The latter can then be set to its appropriate fields (@ref
4001 * GED_SetSrc0ChanSel, @ref GED_SetSrc1ChanSel or @ref GED_SetSrc2ChanSel). See @ref GED_PSEUDO_FIELD_SwizzleX for the field's
4002 * description.
4003 *
4004 * @param[in,out] chanSel The channel select.
4005 * @param[in] modelId The GED model by which to interpret.
4006 * @param[in] swizzle The swizzle value.
4007 *
4008 * @return GED_RETURN_VALUE indicating success or encoding error.
4009 */
4010 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSwizzleX(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle);
4011
4012 /*!
4013 * Get the value of the SwizzleY field from the given channel select (as obtained by @ref GED_GetSrc0ChanSel, @ref GED_GetSrc1ChanSel
4014 * or @ref GED_GetSrc2ChanSel). The function returns an enumeration value. To obtain the enum entry's string representation, use @ref
4015 * GED_GetSwizzleString. See @ref GED_PSEUDO_FIELD_SwizzleY for the field's description.
4016 *
4017 * @param[in] chanSel The channel select.
4018 * @param[in] modelId The GED model by which to interpret.
4019 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4020 * error which caused the failure.
4021 *
4022 * @return SwizzleY's enumeration if the field is valid, GED_SWIZZLE_INVALID otherwise.
4023 */
4024 extern GED_SWIZZLE GED_CALLCONV GED_GetSwizzleY(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4025
4026 /*!
4027 * Set the value of the SwizzleY field in the given channel select. The latter can then be set to its appropriate fields (@ref
4028 * GED_SetSrc0ChanSel, @ref GED_SetSrc1ChanSel or @ref GED_SetSrc2ChanSel). See @ref GED_PSEUDO_FIELD_SwizzleY for the field's
4029 * description.
4030 *
4031 * @param[in,out] chanSel The channel select.
4032 * @param[in] modelId The GED model by which to interpret.
4033 * @param[in] swizzle The swizzle value.
4034 *
4035 * @return GED_RETURN_VALUE indicating success or encoding error.
4036 */
4037 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSwizzleY(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle);
4038
4039 /*!
4040 * Get the value of the SwizzleZ field from the given channel select (as obtained by @ref GED_GetSrc0ChanSel, @ref GED_GetSrc1ChanSel
4041 * or @ref GED_GetSrc2ChanSel). The function returns an enumeration value. To obtain the enum entry's string representation, use @ref
4042 * GED_GetSwizzleString. See @ref GED_PSEUDO_FIELD_SwizzleZ for the field's description.
4043 *
4044 * @param[in] chanSel The channel select.
4045 * @param[in] modelId The GED model by which to interpret.
4046 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4047 * error which caused the failure.
4048 *
4049 * @return SwizzleZ's enumeration if the field is valid, GED_SWIZZLE_INVALID otherwise.
4050 */
4051 extern GED_SWIZZLE GED_CALLCONV GED_GetSwizzleZ(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4052
4053 /*!
4054 * Set the value of the SwizzleZ field in the given channel select. The latter can then be set to its appropriate fields (@ref
4055 * GED_SetSrc0ChanSel, @ref GED_SetSrc1ChanSel or @ref GED_SetSrc2ChanSel). See @ref GED_PSEUDO_FIELD_SwizzleZ for the field's
4056 * description.
4057 *
4058 * @param[in,out] chanSel The channel select.
4059 * @param[in] modelId The GED model by which to interpret.
4060 * @param[in] swizzle The swizzle value.
4061 *
4062 * @return GED_RETURN_VALUE indicating success or encoding error.
4063 */
4064 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSwizzleZ(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle);
4065
4066 /*!
4067 * Get the value of the SwizzleW field from the given channel select (as obtained by @ref GED_GetSrc0ChanSel, @ref GED_GetSrc1ChanSel
4068 * or @ref GED_GetSrc2ChanSel). The function returns an enumeration value. To obtain the enum entry's string representation, use @ref
4069 * GED_GetSwizzleString. See @ref GED_PSEUDO_FIELD_SwizzleW for the field's description.
4070 *
4071 * @param[in] chanSel The channel select.
4072 * @param[in] modelId The GED model by which to interpret.
4073 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4074 * error which caused the failure.
4075 *
4076 * @return SwizzleW's enumeration if the field is valid, GED_SWIZZLE_INVALID otherwise.
4077 */
4078 extern GED_SWIZZLE GED_CALLCONV GED_GetSwizzleW(const uint32_t chanSel, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4079
4080 /*!
4081 * Set the value of the SwizzleW field in the given channel select. The latter can then be set to its appropriate fields (@ref
4082 * GED_SetSrc0ChanSel, @ref GED_SetSrc1ChanSel or @ref GED_SetSrc2ChanSel). See @ref GED_PSEUDO_FIELD_SwizzleW for the field's
4083 * description.
4084 *
4085 * @param[in,out] chanSel The channel select.
4086 * @param[in] modelId The GED model by which to interpret.
4087 * @param[in] swizzle The swizzle value.
4088 *
4089 * @return GED_RETURN_VALUE indicating success or encoding error.
4090 */
4091 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSwizzleW(uint32_t* chanSel, const GED_MODEL modelId, const GED_SWIZZLE swizzle);
4092
4093 /*!
4094 * Get the value of the MessageLength field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
4095 * GED_PSEUDO_FIELD_MessageLength for the field's description.
4096 *
4097 * @param[in] msgDesc The message descriptor.
4098 * @param[in] modelId The GED model by which to interpret.
4099 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4100 * error which caused the failure.
4101 *
4102 * @return The message length if the field is valid, the unchanged msgDesc value otherwise.
4103 */
4104 extern uint32_t GED_CALLCONV GED_GetMessageLength(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4105
4106 /*!
4107 * Set the value of the MessageLength field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4108 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageLength for the field's description.
4109 *
4110 * @param[in,out] msgDesc The message descriptor.
4111 * @param[in] modelId The GED model by which to interpret.
4112 * @param[in] length The message length.
4113 *
4114 * @return GED_RETURN_VALUE indicating success or encoding error.
4115 */
4116 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageLength(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t length);
4117
4118 /*!
4119 * Get the value of the ResponseLength field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
4120 * GED_PSEUDO_FIELD_ResponseLength for the field's description.
4121 *
4122 * @param[in] msgDesc The message descriptor.
4123 * @param[in] modelId The GED model by which to interpret.
4124 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4125 * error which caused the failure.
4126 *
4127 * @return The response length if the field is valid, the unchanged msgDesc value otherwise.
4128 */
4129 extern uint32_t GED_CALLCONV GED_GetResponseLength(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4130
4131 /*!
4132 * Set the value of the ResponseLength field in the given message descriptor. The latter can then be set to its appropriate field
4133 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_ResponseLength for the field's description.
4134 *
4135 * @param[in,out] msgDesc The message descriptor.
4136 * @param[in] modelId The GED model by which to interpret.
4137 * @param[in] length The response length.
4138 *
4139 * @return GED_RETURN_VALUE indicating success or encoding error.
4140 */
4141 extern GED_RETURN_VALUE GED_CALLCONV GED_SetResponseLength(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t length);
4142
4143 /*!
4144 * Get the value of the HeaderPresent field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4145 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetHeaderPresentString. See @ref
4146 * GED_PSEUDO_FIELD_HeaderPresent for the field's description.
4147 *
4148 * @param[in] msgDesc The message descriptor.
4149 * @param[in] modelId The GED model by which to interpret.
4150 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4151 * error which caused the failure.
4152 *
4153 * @return HeaderPresent's enumeration if the field is valid, GED_HEADER_PRESENT_INVALID otherwise.
4154 */
4155 extern GED_HEADER_PRESENT GED_CALLCONV GED_GetHeaderPresent(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4156 result);
4157
4158 /*!
4159 * Set the value of the HeaderPresent field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4160 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_HeaderPresent for the field's description.
4161 *
4162 * @param[in,out] msgDesc The message descriptor.
4163 * @param[in] modelId The GED model by which to interpret.
4164 * @param[in] headerPresent The header present.
4165 *
4166 * @return GED_RETURN_VALUE indicating success or encoding error.
4167 */
4168 extern GED_RETURN_VALUE GED_CALLCONV GED_SetHeaderPresent(uint32_t* msgDesc, const GED_MODEL modelId, const GED_HEADER_PRESENT
4169 headerPresent);
4170
4171 /*!
4172 * Get the value of the MessageTypeDP_SAMPLER field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4173 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See
4174 * @ref GED_PSEUDO_FIELD_MessageTypeDP_SAMPLER for the field's description.
4175 *
4176 * @param[in] msgDesc The message descriptor.
4177 * @param[in] modelId The GED model by which to interpret.
4178 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4179 * error which caused the failure.
4180 *
4181 * @return MessageTypeDP_SAMPLER's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4182 */
4183 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_SAMPLER(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4184 result);
4185
4186 /*!
4187 * Set the value of the MessageTypeDP_SAMPLER field in the given message descriptor. The latter can then be set to its appropriate
4188 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_SAMPLER for the field's description.
4189 *
4190 * @param[in,out] msgDesc The message descriptor.
4191 * @param[in] modelId The GED model by which to interpret.
4192 * @param[in] messageType The data port sampler message type.
4193 *
4194 * @return GED_RETURN_VALUE indicating success or encoding error.
4195 */
4196 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_SAMPLER(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4197 messageType);
4198
4199 /*!
4200 * Get the value of the MessageTypeDP_RC field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4201 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
4202 * GED_PSEUDO_FIELD_MessageTypeDP_RC for the field's description.
4203 *
4204 * @param[in] msgDesc The message descriptor.
4205 * @param[in] modelId The GED model by which to interpret.
4206 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4207 * error which caused the failure.
4208 *
4209 * @return MessageTypeDP_RC's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4210 */
4211 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_RC(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4212 result);
4213
4214 /*!
4215 * Set the value of the MessageTypeDP_RC field in the given message descriptor. The latter can then be set to its appropriate field
4216 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_RC for the field's description.
4217 *
4218 * @param[in,out] msgDesc The message descriptor.
4219 * @param[in] modelId The GED model by which to interpret.
4220 * @param[in] messageType The data port render cache message type.
4221 *
4222 * @return GED_RETURN_VALUE indicating success or encoding error.
4223 */
4224 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_RC(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4225 messageType);
4226
4227 /*!
4228 * Get the value of the MessageTypeDP_CC field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4229 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
4230 * GED_PSEUDO_FIELD_MessageTypeDP_CC for the field's description.
4231 *
4232 * @param[in] msgDesc The message descriptor.
4233 * @param[in] modelId The GED model by which to interpret.
4234 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4235 * error which caused the failure.
4236 *
4237 * @return MessageTypeDP_CC's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4238 */
4239 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_CC(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4240 result);
4241
4242 /*!
4243 * Set the value of the MessageTypeDP_CC field in the given message descriptor. The latter can then be set to its appropriate field
4244 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_CC for the field's description.
4245 *
4246 * @param[in,out] msgDesc The message descriptor.
4247 * @param[in] modelId The GED model by which to interpret.
4248 * @param[in] messageType The data port constant cache message type.
4249 *
4250 * @return GED_RETURN_VALUE indicating success or encoding error.
4251 */
4252 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_CC(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4253 messageType);
4254
4255 /*!
4256 * Get the value of the MessageTypeDP_DC0 field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4257 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
4258 * GED_PSEUDO_FIELD_MessageTypeDP_DC0 for the field's description.
4259 *
4260 * @param[in] msgDesc The message descriptor.
4261 * @param[in] modelId The GED model by which to interpret.
4262 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4263 * error which caused the failure.
4264 *
4265 * @return MessageTypeDP_DC0's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4266 */
4267 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_DC0(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4268 result);
4269
4270 /*!
4271 * Set the value of the MessageTypeDP_DC0 field in the given message descriptor. The latter can then be set to its appropriate field
4272 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_DC0 for the field's description.
4273 *
4274 * @param[in,out] msgDesc The message descriptor.
4275 * @param[in] modelId The GED model by which to interpret.
4276 * @param[in] messageType The data port data cache 0 message type.
4277 *
4278 * @return GED_RETURN_VALUE indicating success or encoding error.
4279 */
4280 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_DC0(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4281 messageType);
4282
4283 /*!
4284 * Get the value of the TypedSurfaceSlotGroup field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4285 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetSlotGroupString. See @ref
4286 * GED_PSEUDO_FIELD_TypedSurfaceSlotGroup for the field's description.
4287 *
4288 * @param[in] msgDesc The message descriptor.
4289 * @param[in] modelId The GED model by which to interpret.
4290 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4291 * error which caused the failure.
4292 *
4293 * @return TypedSurfaceSlotGroup's enumeration if the field is valid, GED_SLOT_GROUP_INVALID otherwise.
4294 */
4295 extern GED_SLOT_GROUP GED_CALLCONV GED_GetTypedSurfaceSlotGroup(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4296 result);
4297
4298 /*!
4299 * Set the value of the TypedSurfaceSlotGroup field in the given message descriptor. The latter can then be set to its appropriate
4300 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_TypedSurfaceSlotGroup for the field's description.
4301 *
4302 * @param[in,out] msgDesc The message descriptor.
4303 * @param[in] modelId The GED model by which to interpret.
4304 * @param[in] slotGroup The typed surface slot group.
4305 *
4306 * @return GED_RETURN_VALUE indicating success or encoding error.
4307 */
4308 extern GED_RETURN_VALUE GED_CALLCONV GED_SetTypedSurfaceSlotGroup(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SLOT_GROUP
4309 slotGroup);
4310
4311 /*!
4312 * Get the value of the TypedAtomicSlotGroup field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4313 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetSlotGroupString. See @ref
4314 * GED_PSEUDO_FIELD_TypedAtomicSlotGroup for the field's description.
4315 *
4316 * @param[in] msgDesc The message descriptor.
4317 * @param[in] modelId The GED model by which to interpret.
4318 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4319 * error which caused the failure.
4320 *
4321 * @return TypedAtomicSlotGroup's enumeration if the field is valid, GED_SLOT_GROUP_INVALID otherwise.
4322 */
4323 extern GED_SLOT_GROUP GED_CALLCONV GED_GetTypedAtomicSlotGroup(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4324 result);
4325
4326 /*!
4327 * Set the value of the TypedAtomicSlotGroup field in the given message descriptor. The latter can then be set to its appropriate
4328 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_TypedAtomicSlotGroup for the field's description.
4329 *
4330 * @param[in,out] msgDesc The message descriptor.
4331 * @param[in] modelId The GED model by which to interpret.
4332 * @param[in] slotGroup The typed atomic slot group.
4333 *
4334 * @return GED_RETURN_VALUE indicating success or encoding error.
4335 */
4336 extern GED_RETURN_VALUE GED_CALLCONV GED_SetTypedAtomicSlotGroup(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SLOT_GROUP
4337 slotGroup);
4338
4339 /*!
4340 * Get the value of the UntypedSurfaceSIMDMode field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4341 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetSIMDModeString. See @ref
4342 * GED_PSEUDO_FIELD_UntypedSurfaceSIMDMode for the field's description.
4343 *
4344 * @param[in] msgDesc The message descriptor.
4345 * @param[in] modelId The GED model by which to interpret.
4346 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4347 * error which caused the failure.
4348 *
4349 * @return UntypedSurfaceSIMDMode's enumeration if the field is valid, GED_SIMDMODE_INVALID otherwise.
4350 */
4351 extern GED_SIMDMODE GED_CALLCONV GED_GetUntypedSurfaceSIMDMode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4352 result);
4353
4354 /*!
4355 * Set the value of the UntypedSurfaceSIMDMode field in the given message descriptor. The latter can then be set to its appropriate
4356 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_UntypedSurfaceSIMDMode for the field's description.
4357 *
4358 * @param[in,out] msgDesc The message descriptor.
4359 * @param[in] modelId The GED model by which to interpret.
4360 * @param[in] simdMode The untyped surface SIMD mode.
4361 *
4362 * @return GED_RETURN_VALUE indicating success or encoding error.
4363 */
4364 extern GED_RETURN_VALUE GED_CALLCONV GED_SetUntypedSurfaceSIMDMode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SIMDMODE
4365 simdMode);
4366
4367 /*!
4368 * Get the value of the UntypedAtomicSIMDMode field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4369 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetSIMDModeString. See @ref
4370 * GED_PSEUDO_FIELD_UntypedAtomicSIMDMode for the field's description.
4371 *
4372 * @param[in] msgDesc The message descriptor.
4373 * @param[in] modelId The GED model by which to interpret.
4374 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4375 * error which caused the failure.
4376 *
4377 * @return UntypedAtomicSIMDMode's enumeration if the field is valid, GED_SIMDMODE_INVALID otherwise.
4378 */
4379 extern GED_SIMDMODE GED_CALLCONV GED_GetUntypedAtomicSIMDMode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4380 result);
4381
4382 /*!
4383 * Set the value of the UntypedAtomicSIMDMode field in the given message descriptor. The latter can then be set to its appropriate
4384 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_UntypedAtomicSIMDMode for the field's description.
4385 *
4386 * @param[in,out] msgDesc The message descriptor.
4387 * @param[in] modelId The GED model by which to interpret.
4388 * @param[in] simdMode The untyped atomic SIMD mode.
4389 *
4390 * @return GED_RETURN_VALUE indicating success or encoding error.
4391 */
4392 extern GED_RETURN_VALUE GED_CALLCONV GED_SetUntypedAtomicSIMDMode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SIMDMODE
4393 simdMode);
4394
4395 /*!
4396 * Get the value of the InvalidateAfterRead field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
4397 * GED_PSEUDO_FIELD_InvalidateAfterRead for the field's description.
4398 *
4399 * @param[in] msgDesc The message descriptor.
4400 * @param[in] modelId The GED model by which to interpret.
4401 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4402 * error which caused the failure.
4403 *
4404 * @return The invalidate after read enable if the field is valid, the unchanged msgDesc value otherwise.
4405 */
4406 extern uint32_t GED_CALLCONV GED_GetInvalidateAfterRead(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4407
4408 /*!
4409 * Set the value of the InvalidateAfterRead field in the given message descriptor. The latter can then be set to its appropriate field
4410 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_InvalidateAfterRead for the field's description.
4411 *
4412 * @param[in,out] msgDesc The message descriptor.
4413 * @param[in] modelId The GED model by which to interpret.
4414 * @param[in] invalidateAfterReadEnable The invalidate after read enable.
4415 *
4416 * @return GED_RETURN_VALUE indicating success or encoding error.
4417 */
4418 extern GED_RETURN_VALUE GED_CALLCONV GED_SetInvalidateAfterRead(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t
4419 invalidateAfterReadEnable);
4420
4421 /*!
4422 * Get the value of the BlockSize field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
4423 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetBlockSizeString. See @ref
4424 * GED_PSEUDO_FIELD_BlockSize for the field's description.
4425 *
4426 * @param[in] msgDesc The message descriptor.
4427 * @param[in] modelId The GED model by which to interpret.
4428 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4429 * error which caused the failure.
4430 *
4431 * @return BlockSize's enumeration if the field is valid, GED_BLOCK_SIZE_INVALID otherwise.
4432 */
4433 extern GED_BLOCK_SIZE GED_CALLCONV GED_GetBlockSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4434
4435 /*!
4436 * Set the value of the BlockSize field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4437 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_BlockSize for the field's description.
4438 *
4439 * @param[in,out] msgDesc The message descriptor.
4440 * @param[in] modelId The GED model by which to interpret.
4441 * @param[in] blockSize The block size.
4442 *
4443 * @return GED_RETURN_VALUE indicating success or encoding error.
4444 */
4445 extern GED_RETURN_VALUE GED_CALLCONV GED_SetBlockSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_BLOCK_SIZE blockSize);
4446
4447 /*!
4448 * Get the value of the RedChannel field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
4449 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetChannelMaskString. See @ref
4450 * GED_PSEUDO_FIELD_RedChannel for the field's description.
4451 *
4452 * @param[in] msgDesc The message descriptor.
4453 * @param[in] modelId The GED model by which to interpret.
4454 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4455 * error which caused the failure.
4456 *
4457 * @return RedChannel's enumeration if the field is valid, GED_CHANNEL_MASK_INVALID otherwise.
4458 */
4459 extern GED_CHANNEL_MASK GED_CALLCONV GED_GetRedChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4460
4461 /*!
4462 * Set the value of the RedChannel field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4463 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_RedChannel for the field's description.
4464 *
4465 * @param[in,out] msgDesc The message descriptor.
4466 * @param[in] modelId The GED model by which to interpret.
4467 * @param[in] channel The red channel.
4468 *
4469 * @return GED_RETURN_VALUE indicating success or encoding error.
4470 */
4471 extern GED_RETURN_VALUE GED_CALLCONV GED_SetRedChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel);
4472
4473 /*!
4474 * Get the value of the GreenChannel field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4475 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetChannelMaskString. See @ref
4476 * GED_PSEUDO_FIELD_GreenChannel for the field's description.
4477 *
4478 * @param[in] msgDesc The message descriptor.
4479 * @param[in] modelId The GED model by which to interpret.
4480 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4481 * error which caused the failure.
4482 *
4483 * @return GreenChannel's enumeration if the field is valid, GED_CHANNEL_MASK_INVALID otherwise.
4484 */
4485 extern GED_CHANNEL_MASK GED_CALLCONV GED_GetGreenChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4486
4487 /*!
4488 * Set the value of the GreenChannel field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4489 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_GreenChannel for the field's description.
4490 *
4491 * @param[in,out] msgDesc The message descriptor.
4492 * @param[in] modelId The GED model by which to interpret.
4493 * @param[in] channel The green channel.
4494 *
4495 * @return GED_RETURN_VALUE indicating success or encoding error.
4496 */
4497 extern GED_RETURN_VALUE GED_CALLCONV GED_SetGreenChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel);
4498
4499 /*!
4500 * Get the value of the BlueChannel field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
4501 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetChannelMaskString. See @ref
4502 * GED_PSEUDO_FIELD_BlueChannel for the field's description.
4503 *
4504 * @param[in] msgDesc The message descriptor.
4505 * @param[in] modelId The GED model by which to interpret.
4506 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4507 * error which caused the failure.
4508 *
4509 * @return BlueChannel's enumeration if the field is valid, GED_CHANNEL_MASK_INVALID otherwise.
4510 */
4511 extern GED_CHANNEL_MASK GED_CALLCONV GED_GetBlueChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4512
4513 /*!
4514 * Set the value of the BlueChannel field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4515 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_BlueChannel for the field's description.
4516 *
4517 * @param[in,out] msgDesc The message descriptor.
4518 * @param[in] modelId The GED model by which to interpret.
4519 * @param[in] channel The blue channel.
4520 *
4521 * @return GED_RETURN_VALUE indicating success or encoding error.
4522 */
4523 extern GED_RETURN_VALUE GED_CALLCONV GED_SetBlueChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel);
4524
4525 /*!
4526 * Get the value of the AlphaChannel field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4527 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetChannelMaskString. See @ref
4528 * GED_PSEUDO_FIELD_AlphaChannel for the field's description.
4529 *
4530 * @param[in] msgDesc The message descriptor.
4531 * @param[in] modelId The GED model by which to interpret.
4532 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4533 * error which caused the failure.
4534 *
4535 * @return AlphaChannel's enumeration if the field is valid, GED_CHANNEL_MASK_INVALID otherwise.
4536 */
4537 extern GED_CHANNEL_MASK GED_CALLCONV GED_GetAlphaChannel(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4538
4539 /*!
4540 * Set the value of the AlphaChannel field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4541 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_AlphaChannel for the field's description.
4542 *
4543 * @param[in,out] msgDesc The message descriptor.
4544 * @param[in] modelId The GED model by which to interpret.
4545 * @param[in] channel The alpha channel.
4546 *
4547 * @return GED_RETURN_VALUE indicating success or encoding error.
4548 */
4549 extern GED_RETURN_VALUE GED_CALLCONV GED_SetAlphaChannel(uint32_t* msgDesc, const GED_MODEL modelId, const GED_CHANNEL_MASK channel);
4550
4551 /*!
4552 * Get the value of the ReturnDataControl field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4553 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetReturnDataControlString. See @ref
4554 * GED_PSEUDO_FIELD_ReturnDataControl for the field's description.
4555 *
4556 * @param[in] msgDesc The message descriptor.
4557 * @param[in] modelId The GED model by which to interpret.
4558 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4559 * error which caused the failure.
4560 *
4561 * @return ReturnDataControl's enumeration if the field is valid, GED_RETURN_DATA_CONTROL_INVALID otherwise.
4562 */
4563 extern GED_RETURN_DATA_CONTROL GED_CALLCONV GED_GetReturnDataControl(const uint32_t msgDesc, const GED_MODEL modelId,
4564 GED_RETURN_VALUE* result);
4565
4566 /*!
4567 * Set the value of the ReturnDataControl field in the given message descriptor. The latter can then be set to its appropriate field
4568 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_ReturnDataControl for the field's description.
4569 *
4570 * @param[in,out] msgDesc The message descriptor.
4571 * @param[in] modelId The GED model by which to interpret.
4572 * @param[in] returnDataControl The return data control.
4573 *
4574 * @return GED_RETURN_VALUE indicating success or encoding error.
4575 */
4576 extern GED_RETURN_VALUE GED_CALLCONV GED_SetReturnDataControl(uint32_t* msgDesc, const GED_MODEL modelId, const
4577 GED_RETURN_DATA_CONTROL returnDataControl);
4578
4579 /*!
4580 * Get the value of the AtomicOperationType field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4581 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetAtomicOperationTypeString. See @ref
4582 * GED_PSEUDO_FIELD_AtomicOperationType for the field's description.
4583 *
4584 * @param[in] msgDesc The message descriptor.
4585 * @param[in] modelId The GED model by which to interpret.
4586 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4587 * error which caused the failure.
4588 *
4589 * @return AtomicOperationType's enumeration if the field is valid, GED_ATOMIC_OPERATION_TYPE_INVALID otherwise.
4590 */
4591 extern GED_ATOMIC_OPERATION_TYPE GED_CALLCONV GED_GetAtomicOperationType(const uint32_t msgDesc, const GED_MODEL modelId,
4592 GED_RETURN_VALUE* result);
4593
4594 /*!
4595 * Set the value of the AtomicOperationType field in the given message descriptor. The latter can then be set to its appropriate field
4596 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_AtomicOperationType for the field's description.
4597 *
4598 * @param[in,out] msgDesc The message descriptor.
4599 * @param[in] modelId The GED model by which to interpret.
4600 * @param[in] operationType The atomic operation type.
4601 *
4602 * @return GED_RETURN_VALUE indicating success or encoding error.
4603 */
4604 extern GED_RETURN_VALUE GED_CALLCONV GED_SetAtomicOperationType(uint32_t* msgDesc, const GED_MODEL modelId, const
4605 GED_ATOMIC_OPERATION_TYPE operationType);
4606
4607 /*!
4608 * Get the value of the AtomicCounterOperationType field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4609 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetAtomicOperationTypeString.
4610 * See @ref GED_PSEUDO_FIELD_AtomicCounterOperationType for the field's description.
4611 *
4612 * @param[in] msgDesc The message descriptor.
4613 * @param[in] modelId The GED model by which to interpret.
4614 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4615 * error which caused the failure.
4616 *
4617 * @return AtomicCounterOperationType's enumeration if the field is valid, GED_ATOMIC_OPERATION_TYPE_INVALID otherwise.
4618 */
4619 extern GED_ATOMIC_OPERATION_TYPE GED_CALLCONV GED_GetAtomicCounterOperationType(const uint32_t msgDesc, const GED_MODEL modelId,
4620 GED_RETURN_VALUE* result);
4621
4622 /*!
4623 * Set the value of the AtomicCounterOperationType field in the given message descriptor. The latter can then be set to its
4624 * appropriate field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_AtomicCounterOperationType for the field's description.
4625 *
4626 * @param[in,out] msgDesc The message descriptor.
4627 * @param[in] modelId The GED model by which to interpret.
4628 * @param[in] operationType The atomic counter operation type.
4629 *
4630 * @return GED_RETURN_VALUE indicating success or encoding error.
4631 */
4632 extern GED_RETURN_VALUE GED_CALLCONV GED_SetAtomicCounterOperationType(uint32_t* msgDesc, const GED_MODEL modelId, const
4633 GED_ATOMIC_OPERATION_TYPE operationType);
4634
4635 /*!
4636 * Get the value of the SubFuncID field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
4637 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetSubFuncIDString. See @ref
4638 * GED_PSEUDO_FIELD_SubFuncID for the field's description.
4639 *
4640 * @param[in] msgDesc The message descriptor.
4641 * @param[in] modelId The GED model by which to interpret.
4642 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4643 * error which caused the failure.
4644 *
4645 * @return SubFuncID's enumeration if the field is valid, GED_SUB_FUNC_ID_INVALID otherwise.
4646 */
4647 extern GED_SUB_FUNC_ID GED_CALLCONV GED_GetSubFuncID(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4648
4649 /*!
4650 * Set the value of the SubFuncID field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4651 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_SubFuncID for the field's description.
4652 *
4653 * @param[in,out] msgDesc The message descriptor.
4654 * @param[in] modelId The GED model by which to interpret.
4655 * @param[in] subFuncID The sub function.
4656 *
4657 * @return GED_RETURN_VALUE indicating success or encoding error.
4658 */
4659 extern GED_RETURN_VALUE GED_CALLCONV GED_SetSubFuncID(uint32_t* msgDesc, const GED_MODEL modelId, const GED_SUB_FUNC_ID subFuncID);
4660
4661 /*!
4662 * Get the value of the BindingTableIndex field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
4663 * GED_PSEUDO_FIELD_BindingTableIndex for the field's description.
4664 *
4665 * @param[in] msgDesc The message descriptor.
4666 * @param[in] modelId The GED model by which to interpret.
4667 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4668 * error which caused the failure.
4669 *
4670 * @return The binding table index if the field is valid, the unchanged msgDesc value otherwise.
4671 */
4672 extern uint32_t GED_CALLCONV GED_GetBindingTableIndex(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4673
4674 /*!
4675 * Set the value of the BindingTableIndex field in the given message descriptor. The latter can then be set to its appropriate field
4676 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_BindingTableIndex for the field's description.
4677 *
4678 * @param[in,out] msgDesc The message descriptor.
4679 * @param[in] modelId The GED model by which to interpret.
4680 * @param[in] bti The binding table index.
4681 *
4682 * @return GED_RETURN_VALUE indicating success or encoding error.
4683 */
4684 extern GED_RETURN_VALUE GED_CALLCONV GED_SetBindingTableIndex(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t bti);
4685
4686 /*!
4687 * Get the value of the FuncControl field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
4688 * GED_PSEUDO_FIELD_FuncControl for the field's description.
4689 *
4690 * @param[in] msgDesc The message descriptor.
4691 * @param[in] modelId The GED model by which to interpret.
4692 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4693 * error which caused the failure.
4694 *
4695 * @return The function control if the field is valid, the unchanged msgDesc value otherwise.
4696 */
4697 extern uint32_t GED_CALLCONV GED_GetFuncControl(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4698
4699 /*!
4700 * Set the value of the FuncControl field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4701 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_FuncControl for the field's description.
4702 *
4703 * @param[in,out] msgDesc The message descriptor.
4704 * @param[in] modelId The GED model by which to interpret.
4705 * @param[in] fc The function control.
4706 *
4707 * @return GED_RETURN_VALUE indicating success or encoding error.
4708 */
4709 extern GED_RETURN_VALUE GED_CALLCONV GED_SetFuncControl(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t fc);
4710
4711 /*!
4712 * Get the value of the MessageTypeDP_DC1 field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4713 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
4714 * GED_PSEUDO_FIELD_MessageTypeDP_DC1 for the field's description.
4715 *
4716 * @param[in] msgDesc The message descriptor.
4717 * @param[in] modelId The GED model by which to interpret.
4718 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4719 * error which caused the failure.
4720 *
4721 * @return MessageTypeDP_DC1's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4722 */
4723 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_DC1(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4724 result);
4725
4726 /*!
4727 * Set the value of the MessageTypeDP_DC1 field in the given message descriptor. The latter can then be set to its appropriate field
4728 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_DC1 for the field's description.
4729 *
4730 * @param[in,out] msgDesc The message descriptor.
4731 * @param[in] modelId The GED model by which to interpret.
4732 * @param[in] messageType The data port data cache 1 message type.
4733 *
4734 * @return GED_RETURN_VALUE indicating success or encoding error.
4735 */
4736 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_DC1(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4737 messageType);
4738
4739 /*!
4740 * Get the value of the MessageTypeDP0Category field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
4741 * GED_PSEUDO_FIELD_MessageTypeDP0Category for the field's description.
4742 *
4743 * @param[in] msgDesc The message descriptor.
4744 * @param[in] modelId The GED model by which to interpret.
4745 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4746 * error which caused the failure.
4747 *
4748 * @return The category of the data cache data port 0 message if the field is valid, the unchanged msgDesc value otherwise.
4749 */
4750 extern uint32_t GED_CALLCONV GED_GetMessageTypeDP0Category(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4751
4752 /*!
4753 * Set the value of the MessageTypeDP0Category field in the given message descriptor. The latter can then be set to its appropriate
4754 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP0Category for the field's description.
4755 *
4756 * @param[in,out] msgDesc The message descriptor.
4757 * @param[in] modelId The GED model by which to interpret.
4758 * @param[in] category The category of the data cache data port 0 message.
4759 *
4760 * @return GED_RETURN_VALUE indicating success or encoding error.
4761 */
4762 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP0Category(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t
4763 category);
4764
4765 /*!
4766 * Get the value of the MessageTypeDP_DC0Legacy field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The
4767 * function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See
4768 * @ref GED_PSEUDO_FIELD_MessageTypeDP_DC0Legacy for the field's description.
4769 *
4770 * @param[in] msgDesc The message descriptor.
4771 * @param[in] modelId The GED model by which to interpret.
4772 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4773 * error which caused the failure.
4774 *
4775 * @return MessageTypeDP_DC0Legacy's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4776 */
4777 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_DC0Legacy(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4778 result);
4779
4780 /*!
4781 * Set the value of the MessageTypeDP_DC0Legacy field in the given message descriptor. The latter can then be set to its appropriate
4782 * field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_DC0Legacy for the field's description.
4783 *
4784 * @param[in,out] msgDesc The message descriptor.
4785 * @param[in] modelId The GED model by which to interpret.
4786 * @param[in] messageType The data port data cache 0 message type.
4787 *
4788 * @return GED_RETURN_VALUE indicating success or encoding error.
4789 */
4790 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_DC0Legacy(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4791 messageType);
4792
4793 /*!
4794 * Get the value of the MessageTypeDP_DC0ScratchBlock field from the given message descriptor (as obtained by @ref GED_GetMsgDesc).
4795 * The function returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See
4796 * @ref GED_PSEUDO_FIELD_MessageTypeDP_DC0ScratchBlock for the field's description.
4797 *
4798 * @param[in] msgDesc The message descriptor.
4799 * @param[in] modelId The GED model by which to interpret.
4800 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4801 * error which caused the failure.
4802 *
4803 * @return MessageTypeDP_DC0ScratchBlock's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4804 */
4805 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_DC0ScratchBlock(const uint32_t msgDesc, const GED_MODEL modelId,
4806 GED_RETURN_VALUE* result);
4807
4808 /*!
4809 * Set the value of the MessageTypeDP_DC0ScratchBlock field in the given message descriptor. The latter can then be set to its
4810 * appropriate field (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_DC0ScratchBlock for the field's description.
4811 *
4812 * @param[in,out] msgDesc The message descriptor.
4813 * @param[in] modelId The GED model by which to interpret.
4814 * @param[in] messageType The data port data cache 0 message type.
4815 *
4816 * @return GED_RETURN_VALUE indicating success or encoding error.
4817 */
4818 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_DC0ScratchBlock(uint32_t* msgDesc, const GED_MODEL modelId, const
4819 GED_MESSAGE_TYPE messageType);
4820
4821 /*!
4822 * Get the value of the MessageTypeDP_DC2 field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4823 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
4824 * GED_PSEUDO_FIELD_MessageTypeDP_DC2 for the field's description.
4825 *
4826 * @param[in] msgDesc The message descriptor.
4827 * @param[in] modelId The GED model by which to interpret.
4828 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4829 * error which caused the failure.
4830 *
4831 * @return MessageTypeDP_DC2's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4832 */
4833 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_DC2(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4834 result);
4835
4836 /*!
4837 * Set the value of the MessageTypeDP_DC2 field in the given message descriptor. The latter can then be set to its appropriate field
4838 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_DC2 for the field's description.
4839 *
4840 * @param[in,out] msgDesc The message descriptor.
4841 * @param[in] modelId The GED model by which to interpret.
4842 * @param[in] messageType The data port data cache 2 message type.
4843 *
4844 * @return GED_RETURN_VALUE indicating success or encoding error.
4845 */
4846 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_DC2(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4847 messageType);
4848
4849 /*!
4850 * Get the value of the MessageTypeDP_DCRO field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4851 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
4852 * GED_PSEUDO_FIELD_MessageTypeDP_DCRO for the field's description.
4853 *
4854 * @param[in] msgDesc The message descriptor.
4855 * @param[in] modelId The GED model by which to interpret.
4856 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4857 * error which caused the failure.
4858 *
4859 * @return MessageTypeDP_DCRO's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
4860 */
4861 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_DCRO(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
4862 result);
4863
4864 /*!
4865 * Set the value of the MessageTypeDP_DCRO field in the given message descriptor. The latter can then be set to its appropriate field
4866 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_DCRO for the field's description.
4867 *
4868 * @param[in,out] msgDesc The message descriptor.
4869 * @param[in] modelId The GED model by which to interpret.
4870 * @param[in] messageType The data port read only message type.
4871 *
4872 * @return GED_RETURN_VALUE indicating success or encoding error.
4873 */
4874 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_DCRO(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
4875 messageType);
4876
4877 /*!
4878 * Get the value of the ExMessageLength field from the given extended message descriptor (as obtained by @ref GED_GetExMsgDescImm).
4879 * See @ref GED_PSEUDO_FIELD_ExMessageLength for the field's description.
4880 *
4881 * @param[in] exMsgDesc The extended message descriptor.
4882 * @param[in] modelId The GED model by which to interpret.
4883 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4884 * error which caused the failure.
4885 *
4886 * @return The exmessage length if the field is valid, the unchanged exMsgDesc value otherwise.
4887 */
4888 extern uint32_t GED_CALLCONV GED_GetExMessageLength(const uint32_t exMsgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4889
4890 /*!
4891 * Set the value of the ExMessageLength field in the given extended message descriptor. The latter can then be set to its appropriate
4892 * field (@ref GED_SetExMsgDescImm). See @ref GED_PSEUDO_FIELD_ExMessageLength for the field's description.
4893 *
4894 * @param[in,out] exMsgDesc The extended message descriptor.
4895 * @param[in] modelId The GED model by which to interpret.
4896 * @param[in] length The exmessage length.
4897 *
4898 * @return GED_RETURN_VALUE indicating success or encoding error.
4899 */
4900 extern GED_RETURN_VALUE GED_CALLCONV GED_SetExMessageLength(uint32_t* exMsgDesc, const GED_MODEL modelId, const uint32_t length);
4901
4902 /*!
4903 * Get the value of the DPOpcode field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns an
4904 * enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpOpcodeString. See @ref
4905 * GED_PSEUDO_FIELD_DPOpcode for the field's description.
4906 *
4907 * @param[in] msgDesc The message descriptor.
4908 * @param[in] modelId The GED model by which to interpret.
4909 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4910 * error which caused the failure.
4911 *
4912 * @return DPOpcode's enumeration if the field is valid, GED_DP_OPCODE_INVALID otherwise.
4913 */
4914 extern GED_DP_OPCODE GED_CALLCONV GED_GetDPOpcode(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4915
4916 /*!
4917 * Set the value of the DPOpcode field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4918 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPOpcode for the field's description.
4919 *
4920 * @param[in,out] msgDesc The message descriptor.
4921 * @param[in] modelId The GED model by which to interpret.
4922 * @param[in] opcode The DP operation.
4923 *
4924 * @return GED_RETURN_VALUE indicating success or encoding error.
4925 */
4926 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPOpcode(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_OPCODE opcode);
4927
4928 /*!
4929 * Get the value of the DPAddrSurfaceType field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
4930 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpAddrSurfaceTypeString. See @ref
4931 * GED_PSEUDO_FIELD_DPAddrSurfaceType for the field's description.
4932 *
4933 * @param[in] msgDesc The message descriptor.
4934 * @param[in] modelId The GED model by which to interpret.
4935 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4936 * error which caused the failure.
4937 *
4938 * @return DPAddrSurfaceType's enumeration if the field is valid, GED_DP_ADDR_SURFACE_TYPE_INVALID otherwise.
4939 */
4940 extern GED_DP_ADDR_SURFACE_TYPE GED_CALLCONV GED_GetDPAddrSurfaceType(const uint32_t msgDesc, const GED_MODEL modelId,
4941 GED_RETURN_VALUE* result);
4942
4943 /*!
4944 * Set the value of the DPAddrSurfaceType field in the given message descriptor. The latter can then be set to its appropriate field
4945 * (@ref GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPAddrSurfaceType for the field's description.
4946 *
4947 * @param[in,out] msgDesc The message descriptor.
4948 * @param[in] modelId The GED model by which to interpret.
4949 * @param[in] AddrType The DP addr surface type.
4950 *
4951 * @return GED_RETURN_VALUE indicating success or encoding error.
4952 */
4953 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPAddrSurfaceType(uint32_t* msgDesc, const GED_MODEL modelId, const
4954 GED_DP_ADDR_SURFACE_TYPE AddrType);
4955
4956 /*!
4957 * Get the value of the DPVectSize field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
4958 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpVectSizeString. See @ref
4959 * GED_PSEUDO_FIELD_DPVectSize for the field's description.
4960 *
4961 * @param[in] msgDesc The message descriptor.
4962 * @param[in] modelId The GED model by which to interpret.
4963 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4964 * error which caused the failure.
4965 *
4966 * @return DPVectSize's enumeration if the field is valid, GED_DP_VECT_SIZE_INVALID otherwise.
4967 */
4968 extern GED_DP_VECT_SIZE GED_CALLCONV GED_GetDPVectSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4969
4970 /*!
4971 * Set the value of the DPVectSize field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4972 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPVectSize for the field's description.
4973 *
4974 * @param[in,out] msgDesc The message descriptor.
4975 * @param[in] modelId The GED model by which to interpret.
4976 * @param[in] VectSize The DP vector size.
4977 *
4978 * @return GED_RETURN_VALUE indicating success or encoding error.
4979 */
4980 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPVectSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_VECT_SIZE VectSize);
4981
4982 /*!
4983 * Get the value of the DPFlushType field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
4984 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpFlushTypeString. See @ref
4985 * GED_PSEUDO_FIELD_DPFlushType for the field's description.
4986 *
4987 * @param[in] msgDesc The message descriptor.
4988 * @param[in] modelId The GED model by which to interpret.
4989 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
4990 * error which caused the failure.
4991 *
4992 * @return DPFlushType's enumeration if the field is valid, GED_DP_FLUSH_TYPE_INVALID otherwise.
4993 */
4994 extern GED_DP_FLUSH_TYPE GED_CALLCONV GED_GetDPFlushType(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
4995
4996 /*!
4997 * Set the value of the DPFlushType field in the given message descriptor. The latter can then be set to its appropriate field (@ref
4998 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPFlushType for the field's description.
4999 *
5000 * @param[in,out] msgDesc The message descriptor.
5001 * @param[in] modelId The GED model by which to interpret.
5002 * @param[in] FlushType The DP flush type.
5003 *
5004 * @return GED_RETURN_VALUE indicating success or encoding error.
5005 */
5006 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPFlushType(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_FLUSH_TYPE
5007 FlushType);
5008
5009 /*!
5010 * Get the value of the DPTranspose field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
5011 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpTransposeString. See @ref
5012 * GED_PSEUDO_FIELD_DPTranspose for the field's description.
5013 *
5014 * @param[in] msgDesc The message descriptor.
5015 * @param[in] modelId The GED model by which to interpret.
5016 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5017 * error which caused the failure.
5018 *
5019 * @return DPTranspose's enumeration if the field is valid, GED_DP_TRANSPOSE_INVALID otherwise.
5020 */
5021 extern GED_DP_TRANSPOSE GED_CALLCONV GED_GetDPTranspose(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5022
5023 /*!
5024 * Set the value of the DPTranspose field in the given message descriptor. The latter can then be set to its appropriate field (@ref
5025 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPTranspose for the field's description.
5026 *
5027 * @param[in,out] msgDesc The message descriptor.
5028 * @param[in] modelId The GED model by which to interpret.
5029 * @param[in] Transpose The DP transpose.
5030 *
5031 * @return GED_RETURN_VALUE indicating success or encoding error.
5032 */
5033 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPTranspose(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_TRANSPOSE Transpose);
5034
5035 /*!
5036 * Get the value of the DPFlushRange field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). See @ref
5037 * GED_PSEUDO_FIELD_DPFlushRange for the field's description.
5038 *
5039 * @param[in] msgDesc The message descriptor.
5040 * @param[in] modelId The GED model by which to interpret.
5041 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5042 * error which caused the failure.
5043 *
5044 * @return The flush range if the field is valid, the unchanged msgDesc value otherwise.
5045 */
5046 extern uint32_t GED_CALLCONV GED_GetDPFlushRange(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5047
5048 /*!
5049 * Set the value of the DPFlushRange field in the given message descriptor. The latter can then be set to its appropriate field (@ref
5050 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPFlushRange for the field's description.
5051 *
5052 * @param[in,out] msgDesc The message descriptor.
5053 * @param[in] modelId The GED model by which to interpret.
5054 * @param[in] range The flush range.
5055 *
5056 * @return GED_RETURN_VALUE indicating success or encoding error.
5057 */
5058 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPFlushRange(uint32_t* msgDesc, const GED_MODEL modelId, const uint32_t range);
5059
5060 /*!
5061 * Get the value of the DPDataSize field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
5062 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpDataSizeString. See @ref
5063 * GED_PSEUDO_FIELD_DPDataSize for the field's description.
5064 *
5065 * @param[in] msgDesc The message descriptor.
5066 * @param[in] modelId The GED model by which to interpret.
5067 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5068 * error which caused the failure.
5069 *
5070 * @return DPDataSize's enumeration if the field is valid, GED_DP_DATA_SIZE_INVALID otherwise.
5071 */
5072 extern GED_DP_DATA_SIZE GED_CALLCONV GED_GetDPDataSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5073
5074 /*!
5075 * Set the value of the DPDataSize field in the given message descriptor. The latter can then be set to its appropriate field (@ref
5076 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPDataSize for the field's description.
5077 *
5078 * @param[in,out] msgDesc The message descriptor.
5079 * @param[in] modelId The GED model by which to interpret.
5080 * @param[in] DataSize The DP data size.
5081 *
5082 * @return GED_RETURN_VALUE indicating success or encoding error.
5083 */
5084 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPDataSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_DATA_SIZE DataSize);
5085
5086 /*!
5087 * Get the value of the DPFenceScope field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function
5088 * returns an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpFenceScopeString. See @ref
5089 * GED_PSEUDO_FIELD_DPFenceScope for the field's description.
5090 *
5091 * @param[in] msgDesc The message descriptor.
5092 * @param[in] modelId The GED model by which to interpret.
5093 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5094 * error which caused the failure.
5095 *
5096 * @return DPFenceScope's enumeration if the field is valid, GED_DP_FENCE_SCOPE_INVALID otherwise.
5097 */
5098 extern GED_DP_FENCE_SCOPE GED_CALLCONV GED_GetDPFenceScope(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5099
5100 /*!
5101 * Set the value of the DPFenceScope field in the given message descriptor. The latter can then be set to its appropriate field (@ref
5102 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPFenceScope for the field's description.
5103 *
5104 * @param[in,out] msgDesc The message descriptor.
5105 * @param[in] modelId The GED model by which to interpret.
5106 * @param[in] FenceScope The DP fence scope.
5107 *
5108 * @return GED_RETURN_VALUE indicating success or encoding error.
5109 */
5110 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPFenceScope(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_FENCE_SCOPE
5111 FenceScope);
5112
5113 /*!
5114 * Get the value of the DPAddrSize field from the given message descriptor (as obtained by @ref GED_GetMsgDesc). The function returns
5115 * an enumeration value. To obtain the enum entry's string representation, use @ref GED_GetDpAddrSizeString. See @ref
5116 * GED_PSEUDO_FIELD_DPAddrSize for the field's description.
5117 *
5118 * @param[in] msgDesc The message descriptor.
5119 * @param[in] modelId The GED model by which to interpret.
5120 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5121 * error which caused the failure.
5122 *
5123 * @return DPAddrSize's enumeration if the field is valid, GED_DP_ADDR_SIZE_INVALID otherwise.
5124 */
5125 extern GED_DP_ADDR_SIZE GED_CALLCONV GED_GetDPAddrSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5126
5127 /*!
5128 * Set the value of the DPAddrSize field in the given message descriptor. The latter can then be set to its appropriate field (@ref
5129 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_DPAddrSize for the field's description.
5130 *
5131 * @param[in,out] msgDesc The message descriptor.
5132 * @param[in] modelId The GED model by which to interpret.
5133 * @param[in] AddrSize The DP address size.
5134 *
5135 * @return GED_RETURN_VALUE indicating success or encoding error.
5136 */
5137 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPAddrSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DP_ADDR_SIZE AddrSize);
5138
5139 /*!
5140 * Get the value of the DPCacheStore field from the given (as obtained by @ref GED_GetMsgDesc). The function returns an enumeration
5141 * value. To obtain the enum entry's string representation, use @ref GED_GetDPCacheStoreString. See @ref GED_PSEUDO_FIELD_DPCacheStore
5142 * for the field's description.
5143 *
5144 * @param[in] msgDesc The .
5145 * @param[in] modelId The GED model by which to interpret.
5146 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5147 * error which caused the failure.
5148 *
5149 * @return DPCacheStore's enumeration if the field is valid, GED_DPCACHE_STORE_INVALID otherwise.
5150 */
5151 extern GED_DPCACHE_STORE GED_CALLCONV GED_GetDPCacheStore(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5152
5153 /*!
5154 * Set the value of the DPCacheStore field in the given . The latter can then be set to its appropriate field (@ref GED_SetMsgDesc).
5155 * See @ref GED_PSEUDO_FIELD_DPCacheStore for the field's description.
5156 *
5157 * @param[in,out] msgDesc The .
5158 * @param[in] modelId The GED model by which to interpret.
5159 * @param[in] CacheStore The .
5160 *
5161 * @return GED_RETURN_VALUE indicating success or encoding error.
5162 */
5163 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPCacheStore(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCACHE_STORE
5164 CacheStore);
5165
5166 /*!
5167 * Get the value of the DPCacheLoad field from the given (as obtained by @ref GED_GetMsgDesc). The function returns an enumeration
5168 * value. To obtain the enum entry's string representation, use @ref GED_GetDPCacheLoadString. See @ref GED_PSEUDO_FIELD_DPCacheLoad
5169 * for the field's description.
5170 *
5171 * @param[in] msgDesc The .
5172 * @param[in] modelId The GED model by which to interpret.
5173 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5174 * error which caused the failure.
5175 *
5176 * @return DPCacheLoad's enumeration if the field is valid, GED_DPCACHE_LOAD_INVALID otherwise.
5177 */
5178 extern GED_DPCACHE_LOAD GED_CALLCONV GED_GetDPCacheLoad(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5179
5180 /*!
5181 * Set the value of the DPCacheLoad field in the given . The latter can then be set to its appropriate field (@ref GED_SetMsgDesc).
5182 * See @ref GED_PSEUDO_FIELD_DPCacheLoad for the field's description.
5183 *
5184 * @param[in,out] msgDesc The .
5185 * @param[in] modelId The GED model by which to interpret.
5186 * @param[in] CacheLoad The .
5187 *
5188 * @return GED_RETURN_VALUE indicating success or encoding error.
5189 */
5190 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPCacheLoad(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCACHE_LOAD CacheLoad);
5191
5192 /*!
5193 * Get the value of the DPAddrRegSize field from the given (as obtained by @ref GED_GetMsgDesc). The function returns an enumeration
5194 * value. To obtain the enum entry's string representation, use @ref GED_GetDPAddrRegSizeString. See @ref
5195 * GED_PSEUDO_FIELD_DPAddrRegSize for the field's description.
5196 *
5197 * @param[in] msgDesc The .
5198 * @param[in] modelId The GED model by which to interpret.
5199 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5200 * error which caused the failure.
5201 *
5202 * @return DPAddrRegSize's enumeration if the field is valid, GED_DPADDR_REG_SIZE_INVALID otherwise.
5203 */
5204 extern GED_DPADDR_REG_SIZE GED_CALLCONV GED_GetDPAddrRegSize(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
5205 result);
5206
5207 /*!
5208 * Set the value of the DPAddrRegSize field in the given . The latter can then be set to its appropriate field (@ref GED_SetMsgDesc).
5209 * See @ref GED_PSEUDO_FIELD_DPAddrRegSize for the field's description.
5210 *
5211 * @param[in,out] msgDesc The .
5212 * @param[in] modelId The GED model by which to interpret.
5213 * @param[in] AddrRegSize The .
5214 *
5215 * @return GED_RETURN_VALUE indicating success or encoding error.
5216 */
5217 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPAddrRegSize(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPADDR_REG_SIZE
5218 AddrRegSize);
5219
5220 /*!
5221 * Get the value of the DPOneAddrReg field from the given (as obtained by @ref GED_GetMsgDesc). The function returns an enumeration
5222 * value. To obtain the enum entry's string representation, use @ref GED_GetDPOneAddrRegString. See @ref GED_PSEUDO_FIELD_DPOneAddrReg
5223 * for the field's description.
5224 *
5225 * @param[in] msgDesc The .
5226 * @param[in] modelId The GED model by which to interpret.
5227 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5228 * error which caused the failure.
5229 *
5230 * @return DPOneAddrReg's enumeration if the field is valid, GED_DPONE_ADDR_REG_INVALID otherwise.
5231 */
5232 extern GED_DPONE_ADDR_REG GED_CALLCONV GED_GetDPOneAddrReg(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5233
5234 /*!
5235 * Set the value of the DPOneAddrReg field in the given . The latter can then be set to its appropriate field (@ref GED_SetMsgDesc).
5236 * See @ref GED_PSEUDO_FIELD_DPOneAddrReg for the field's description.
5237 *
5238 * @param[in,out] msgDesc The .
5239 * @param[in] modelId The GED model by which to interpret.
5240 * @param[in] OneAddrReg The .
5241 *
5242 * @return GED_RETURN_VALUE indicating success or encoding error.
5243 */
5244 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPOneAddrReg(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPONE_ADDR_REG
5245 OneAddrReg);
5246
5247 /*!
5248 * Get the value of the DPCmask field from the given (as obtained by @ref GED_GetMsgDesc). The function returns an enumeration value.
5249 * To obtain the enum entry's string representation, use @ref GED_GetDPCmaskString. See @ref GED_PSEUDO_FIELD_DPCmask for the field's
5250 * description.
5251 *
5252 * @param[in] msgDesc The .
5253 * @param[in] modelId The GED model by which to interpret.
5254 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5255 * error which caused the failure.
5256 *
5257 * @return DPCmask's enumeration if the field is valid, GED_DPCMASK_INVALID otherwise.
5258 */
5259 extern GED_DPCMASK GED_CALLCONV GED_GetDPCmask(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5260
5261 /*!
5262 * Set the value of the DPCmask field in the given . The latter can then be set to its appropriate field (@ref GED_SetMsgDesc). See
5263 * @ref GED_PSEUDO_FIELD_DPCmask for the field's description.
5264 *
5265 * @param[in,out] msgDesc The .
5266 * @param[in] modelId The GED model by which to interpret.
5267 * @param[in] Cmask The .
5268 *
5269 * @return GED_RETURN_VALUE indicating success or encoding error.
5270 */
5271 extern GED_RETURN_VALUE GED_CALLCONV GED_SetDPCmask(uint32_t* msgDesc, const GED_MODEL modelId, const GED_DPCMASK Cmask);
5272
5273 /*!
5274 * Get the value of the MessageTypeDP_CONST field from the given (as obtained by @ref GED_GetMsgDesc). The function returns an
5275 * enumeration value. To obtain the enum entry's string representation, use @ref GED_GetMessageTypeString. See @ref
5276 * GED_PSEUDO_FIELD_MessageTypeDP_CONST for the field's description.
5277 *
5278 * @param[in] msgDesc The .
5279 * @param[in] modelId The GED model by which to interpret.
5280 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5281 * error which caused the failure.
5282 *
5283 * @return MessageTypeDP_CONST's enumeration if the field is valid, GED_MESSAGE_TYPE_INVALID otherwise.
5284 */
5285 extern GED_MESSAGE_TYPE GED_CALLCONV GED_GetMessageTypeDP_CONST(const uint32_t msgDesc, const GED_MODEL modelId, GED_RETURN_VALUE*
5286 result);
5287
5288 /*!
5289 * Set the value of the MessageTypeDP_CONST field in the given . The latter can then be set to its appropriate field (@ref
5290 * GED_SetMsgDesc). See @ref GED_PSEUDO_FIELD_MessageTypeDP_CONST for the field's description.
5291 *
5292 * @param[in,out] msgDesc The .
5293 * @param[in] modelId The GED model by which to interpret.
5294 * @param[in] messageType The .
5295 *
5296 * @return GED_RETURN_VALUE indicating success or encoding error.
5297 */
5298 extern GED_RETURN_VALUE GED_CALLCONV GED_SetMessageTypeDP_CONST(uint32_t* msgDesc, const GED_MODEL modelId, const GED_MESSAGE_TYPE
5299 messageType);
5300
5301 #if GED_EXPERIMENTAL
5302
5303 /*!
5304 * Set specific raw bits in native instruction, ignoring value restrictions and encoding masks
5305 *
5306 * @param[in] ins Pointer to the instruction object containing the field in question.
5307 * @param[in] low First bit of the area in the instruction asked to modify.
5308 * @param[in] high Last bit of the area in the instruction asked to modify.
5309 * @param[in] value The value to encode.
5310 *
5311 * @return GED_RETURN_VALUE indicating success or encoding error.
5312 *
5313 * @note Calling this function prevents the application of encoding masks when calling @ref GED_EncodeIns
5314 */
5315 extern GED_RETURN_VALUE GED_CALLCONV GED_SetRawBits(ged_ins_t* ins, uint8_t low, uint8_t high, const uint64_t value);
5316 #endif // GED_EXPERIMENTAL
5317
5318 /*!
5319 * Get the string representation for the given GED_ACCESS_MODE enumerator. The function returns a NULL pointer for
5320 * GED_ACCESS_MODE_INVALID.
5321 *
5322 * @param[in] AccessModeValue The given GED_ACCESS_MODE enumerator.
5323 *
5324 * @return The requested string.
5325 */
5326 extern const char* GED_CALLCONV GED_GetAccessModeString(GED_ACCESS_MODE AccessModeValue);
5327
5328 /*!
5329 * Get the string representation for the given GED_ACC_WR_CTRL enumerator. The function returns a NULL pointer for
5330 * GED_ACC_WR_CTRL_INVALID.
5331 *
5332 * @param[in] AccWrCtrlValue The given GED_ACC_WR_CTRL enumerator.
5333 *
5334 * @return The requested string.
5335 */
5336 extern const char* GED_CALLCONV GED_GetAccWrCtrlString(GED_ACC_WR_CTRL AccWrCtrlValue);
5337
5338 /*!
5339 * Get the string representation for the given GED_ADDR_MODE enumerator. The function returns a NULL pointer for
5340 * GED_ADDR_MODE_INVALID.
5341 *
5342 * @param[in] AddrModeValue The given GED_ADDR_MODE enumerator.
5343 *
5344 * @return The requested string.
5345 */
5346 extern const char* GED_CALLCONV GED_GetAddrModeString(GED_ADDR_MODE AddrModeValue);
5347
5348 /*!
5349 * Get the string representation for the given GED_ARCH_REG enumerator. The function returns a NULL pointer for GED_ARCH_REG_INVALID.
5350 *
5351 * @param[in] ArchRegValue The given GED_ARCH_REG enumerator.
5352 *
5353 * @return The requested string.
5354 */
5355 extern const char* GED_CALLCONV GED_GetArchRegString(GED_ARCH_REG ArchRegValue);
5356
5357 /*!
5358 * Get the string representation for the given GED_ATOMIC_OPERATION_TYPE enumerator. The function returns a NULL pointer for
5359 * GED_ATOMIC_OPERATION_TYPE_INVALID.
5360 *
5361 * @param[in] AtomicOperationTypeValue The given GED_ATOMIC_OPERATION_TYPE enumerator.
5362 *
5363 * @return The requested string.
5364 */
5365 extern const char* GED_CALLCONV GED_GetAtomicOperationTypeString(GED_ATOMIC_OPERATION_TYPE AtomicOperationTypeValue);
5366
5367 /*!
5368 * Get the string representation for the given GED_BLOCK_SIZE enumerator. The function returns a NULL pointer for
5369 * GED_BLOCK_SIZE_INVALID.
5370 *
5371 * @param[in] BlockSizeValue The given GED_BLOCK_SIZE enumerator.
5372 *
5373 * @return The requested string.
5374 */
5375 extern const char* GED_CALLCONV GED_GetBlockSizeString(GED_BLOCK_SIZE BlockSizeValue);
5376
5377 /*!
5378 * Get the string representation for the given GED_BRANCH_CTRL enumerator. The function returns a NULL pointer for
5379 * GED_BRANCH_CTRL_INVALID.
5380 *
5381 * @param[in] BranchCtrlValue The given GED_BRANCH_CTRL enumerator.
5382 *
5383 * @return The requested string.
5384 */
5385 extern const char* GED_CALLCONV GED_GetBranchCtrlString(GED_BRANCH_CTRL BranchCtrlValue);
5386
5387 /*!
5388 * Get the string representation for the given GED_CHANNEL_MASK enumerator. The function returns a NULL pointer for
5389 * GED_CHANNEL_MASK_INVALID.
5390 *
5391 * @param[in] ChannelMaskValue The given GED_CHANNEL_MASK enumerator.
5392 *
5393 * @return The requested string.
5394 */
5395 extern const char* GED_CALLCONV GED_GetChannelMaskString(GED_CHANNEL_MASK ChannelMaskValue);
5396
5397 /*!
5398 * Get the string representation for the given GED_CHANNEL_MODE enumerator. The function returns a NULL pointer for
5399 * GED_CHANNEL_MODE_INVALID.
5400 *
5401 * @param[in] ChannelModeValue The given GED_CHANNEL_MODE enumerator.
5402 *
5403 * @return The requested string.
5404 */
5405 extern const char* GED_CALLCONV GED_GetChannelModeString(GED_CHANNEL_MODE ChannelModeValue);
5406
5407 /*!
5408 * Get the string representation for the given GED_CHANNEL_OFFSET enumerator. The function returns a NULL pointer for
5409 * GED_CHANNEL_OFFSET_INVALID.
5410 *
5411 * @param[in] ChannelOffsetValue The given GED_CHANNEL_OFFSET enumerator.
5412 *
5413 * @return The requested string.
5414 */
5415 extern const char* GED_CALLCONV GED_GetChannelOffsetString(GED_CHANNEL_OFFSET ChannelOffsetValue);
5416
5417 /*!
5418 * Get the string representation for the given GED_COND_MODIFIER enumerator. The function returns a NULL pointer for
5419 * GED_COND_MODIFIER_INVALID.
5420 *
5421 * @param[in] CondModifierValue The given GED_COND_MODIFIER enumerator.
5422 *
5423 * @return The requested string.
5424 */
5425 extern const char* GED_CALLCONV GED_GetCondModifierString(GED_COND_MODIFIER CondModifierValue);
5426
5427 /*!
5428 * Get the string representation for the given GED_DATA_TYPE enumerator. The function returns a NULL pointer for
5429 * GED_DATA_TYPE_INVALID.
5430 *
5431 * @param[in] DataTypeValue The given GED_DATA_TYPE enumerator.
5432 *
5433 * @return The requested string.
5434 */
5435 extern const char* GED_CALLCONV GED_GetDataTypeString(GED_DATA_TYPE DataTypeValue);
5436
5437 /*!
5438 * Get the string representation for the given GED_DEBUG_CTRL enumerator. The function returns a NULL pointer for
5439 * GED_DEBUG_CTRL_INVALID.
5440 *
5441 * @param[in] DebugCtrlValue The given GED_DEBUG_CTRL enumerator.
5442 *
5443 * @return The requested string.
5444 */
5445 extern const char* GED_CALLCONV GED_GetDebugCtrlString(GED_DEBUG_CTRL DebugCtrlValue);
5446
5447 /*!
5448 * Get the string representation for the given GED_DEP_CTRL enumerator. The function returns a NULL pointer for GED_DEP_CTRL_INVALID.
5449 *
5450 * @param[in] DepCtrlValue The given GED_DEP_CTRL enumerator.
5451 *
5452 * @return The requested string.
5453 */
5454 extern const char* GED_CALLCONV GED_GetDepCtrlString(GED_DEP_CTRL DepCtrlValue);
5455
5456 /*!
5457 * Get the string representation for the given GED_DPADDR_REG_SIZE enumerator. The function returns a NULL pointer for
5458 * GED_DPADDR_REG_SIZE_INVALID.
5459 *
5460 * @param[in] DPAddrRegSizeValue The given GED_DPADDR_REG_SIZE enumerator.
5461 *
5462 * @return The requested string.
5463 */
5464 extern const char* GED_CALLCONV GED_GetDPAddrRegSizeString(GED_DPADDR_REG_SIZE DPAddrRegSizeValue);
5465
5466 /*!
5467 * Get the string representation for the given GED_DP_ADDR_SIZE enumerator. The function returns a NULL pointer for
5468 * GED_DP_ADDR_SIZE_INVALID.
5469 *
5470 * @param[in] DpAddrSizeValue The given GED_DP_ADDR_SIZE enumerator.
5471 *
5472 * @return The requested string.
5473 */
5474 extern const char* GED_CALLCONV GED_GetDpAddrSizeString(GED_DP_ADDR_SIZE DpAddrSizeValue);
5475
5476 /*!
5477 * Get the string representation for the given GED_DP_ADDR_SURFACE_TYPE enumerator. The function returns a NULL pointer for
5478 * GED_DP_ADDR_SURFACE_TYPE_INVALID.
5479 *
5480 * @param[in] DpAddrSurfaceTypeValue The given GED_DP_ADDR_SURFACE_TYPE enumerator.
5481 *
5482 * @return The requested string.
5483 */
5484 extern const char* GED_CALLCONV GED_GetDpAddrSurfaceTypeString(GED_DP_ADDR_SURFACE_TYPE DpAddrSurfaceTypeValue);
5485
5486 /*!
5487 * Get the string representation for the given GED_DPCACHE_LOAD enumerator. The function returns a NULL pointer for
5488 * GED_DPCACHE_LOAD_INVALID.
5489 *
5490 * @param[in] DPCacheLoadValue The given GED_DPCACHE_LOAD enumerator.
5491 *
5492 * @return The requested string.
5493 */
5494 extern const char* GED_CALLCONV GED_GetDPCacheLoadString(GED_DPCACHE_LOAD DPCacheLoadValue);
5495
5496 /*!
5497 * Get the string representation for the given GED_DPCACHE_STORE enumerator. The function returns a NULL pointer for
5498 * GED_DPCACHE_STORE_INVALID.
5499 *
5500 * @param[in] DPCacheStoreValue The given GED_DPCACHE_STORE enumerator.
5501 *
5502 * @return The requested string.
5503 */
5504 extern const char* GED_CALLCONV GED_GetDPCacheStoreString(GED_DPCACHE_STORE DPCacheStoreValue);
5505
5506 /*!
5507 * Get the string representation for the given GED_DPCMASK enumerator. The function returns a NULL pointer for GED_DPCMASK_INVALID.
5508 *
5509 * @param[in] DPCmaskValue The given GED_DPCMASK enumerator.
5510 *
5511 * @return The requested string.
5512 */
5513 extern const char* GED_CALLCONV GED_GetDPCmaskString(GED_DPCMASK DPCmaskValue);
5514
5515 /*!
5516 * Get the string representation for the given GED_DP_DATA_SIZE enumerator. The function returns a NULL pointer for
5517 * GED_DP_DATA_SIZE_INVALID.
5518 *
5519 * @param[in] DpDataSizeValue The given GED_DP_DATA_SIZE enumerator.
5520 *
5521 * @return The requested string.
5522 */
5523 extern const char* GED_CALLCONV GED_GetDpDataSizeString(GED_DP_DATA_SIZE DpDataSizeValue);
5524
5525 /*!
5526 * Get the string representation for the given GED_DP_FENCE_SCOPE enumerator. The function returns a NULL pointer for
5527 * GED_DP_FENCE_SCOPE_INVALID.
5528 *
5529 * @param[in] DpFenceScopeValue The given GED_DP_FENCE_SCOPE enumerator.
5530 *
5531 * @return The requested string.
5532 */
5533 extern const char* GED_CALLCONV GED_GetDpFenceScopeString(GED_DP_FENCE_SCOPE DpFenceScopeValue);
5534
5535 /*!
5536 * Get the string representation for the given GED_DP_FLUSH_TYPE enumerator. The function returns a NULL pointer for
5537 * GED_DP_FLUSH_TYPE_INVALID.
5538 *
5539 * @param[in] DpFlushTypeValue The given GED_DP_FLUSH_TYPE enumerator.
5540 *
5541 * @return The requested string.
5542 */
5543 extern const char* GED_CALLCONV GED_GetDpFlushTypeString(GED_DP_FLUSH_TYPE DpFlushTypeValue);
5544
5545 /*!
5546 * Get the string representation for the given GED_DPONE_ADDR_REG enumerator. The function returns a NULL pointer for
5547 * GED_DPONE_ADDR_REG_INVALID.
5548 *
5549 * @param[in] DPOneAddrRegValue The given GED_DPONE_ADDR_REG enumerator.
5550 *
5551 * @return The requested string.
5552 */
5553 extern const char* GED_CALLCONV GED_GetDPOneAddrRegString(GED_DPONE_ADDR_REG DPOneAddrRegValue);
5554
5555 /*!
5556 * Get the string representation for the given GED_DP_OPCODE enumerator. The function returns a NULL pointer for
5557 * GED_DP_OPCODE_INVALID.
5558 *
5559 * @param[in] DpOpcodeValue The given GED_DP_OPCODE enumerator.
5560 *
5561 * @return The requested string.
5562 */
5563 extern const char* GED_CALLCONV GED_GetDpOpcodeString(GED_DP_OPCODE DpOpcodeValue);
5564
5565 /*!
5566 * Get the string representation for the given GED_DP_TRANSPOSE enumerator. The function returns a NULL pointer for
5567 * GED_DP_TRANSPOSE_INVALID.
5568 *
5569 * @param[in] DpTransposeValue The given GED_DP_TRANSPOSE enumerator.
5570 *
5571 * @return The requested string.
5572 */
5573 extern const char* GED_CALLCONV GED_GetDpTransposeString(GED_DP_TRANSPOSE DpTransposeValue);
5574
5575 /*!
5576 * Get the string representation for the given GED_DP_VECT_SIZE enumerator. The function returns a NULL pointer for
5577 * GED_DP_VECT_SIZE_INVALID.
5578 *
5579 * @param[in] DpVectSizeValue The given GED_DP_VECT_SIZE enumerator.
5580 *
5581 * @return The requested string.
5582 */
5583 extern const char* GED_CALLCONV GED_GetDpVectSizeString(GED_DP_VECT_SIZE DpVectSizeValue);
5584
5585 /*!
5586 * Get the string representation for the given GED_DST_CHAN_EN enumerator. The function returns a NULL pointer for
5587 * GED_DST_CHAN_EN_INVALID.
5588 *
5589 * @param[in] DstChanEnValue The given GED_DST_CHAN_EN enumerator.
5590 *
5591 * @return The requested string.
5592 */
5593 extern const char* GED_CALLCONV GED_GetDstChanEnString(GED_DST_CHAN_EN DstChanEnValue);
5594
5595 /*!
5596 * Get the string representation for the given GED_EOT enumerator. The function returns a NULL pointer for GED_EOT_INVALID.
5597 *
5598 * @param[in] EOTValue The given GED_EOT enumerator.
5599 *
5600 * @return The requested string.
5601 */
5602 extern const char* GED_CALLCONV GED_GetEOTString(GED_EOT EOTValue);
5603
5604 /*!
5605 * Get the string representation for the given GED_EXEC_MASK_OFFSET_CTRL enumerator. The function returns a NULL pointer for
5606 * GED_EXEC_MASK_OFFSET_CTRL_INVALID.
5607 *
5608 * @param[in] ExecMaskOffsetCtrlValue The given GED_EXEC_MASK_OFFSET_CTRL enumerator.
5609 *
5610 * @return The requested string.
5611 */
5612 extern const char* GED_CALLCONV GED_GetExecMaskOffsetCtrlString(GED_EXEC_MASK_OFFSET_CTRL ExecMaskOffsetCtrlValue);
5613
5614 /*!
5615 * Get the string representation for the given GED_EXECUTION_DATA_TYPE enumerator. The function returns a NULL pointer for
5616 * GED_EXECUTION_DATA_TYPE_INVALID.
5617 *
5618 * @param[in] ExecutionDataTypeValue The given GED_EXECUTION_DATA_TYPE enumerator.
5619 *
5620 * @return The requested string.
5621 */
5622 extern const char* GED_CALLCONV GED_GetExecutionDataTypeString(GED_EXECUTION_DATA_TYPE ExecutionDataTypeValue);
5623
5624 /*!
5625 * Get the string representation for the given GED_FUSION_CTRL enumerator. The function returns a NULL pointer for
5626 * GED_FUSION_CTRL_INVALID.
5627 *
5628 * @param[in] FusionCtrlValue The given GED_FUSION_CTRL enumerator.
5629 *
5630 * @return The requested string.
5631 */
5632 extern const char* GED_CALLCONV GED_GetFusionCtrlString(GED_FUSION_CTRL FusionCtrlValue);
5633
5634 /*!
5635 * Get the string representation for the given GED_HEADER_PRESENT enumerator. The function returns a NULL pointer for
5636 * GED_HEADER_PRESENT_INVALID.
5637 *
5638 * @param[in] HeaderPresentValue The given GED_HEADER_PRESENT enumerator.
5639 *
5640 * @return The requested string.
5641 */
5642 extern const char* GED_CALLCONV GED_GetHeaderPresentString(GED_HEADER_PRESENT HeaderPresentValue);
5643
5644 /*!
5645 * Get the string representation for the given GED_MASK_CTRL enumerator. The function returns a NULL pointer for
5646 * GED_MASK_CTRL_INVALID.
5647 *
5648 * @param[in] MaskCtrlValue The given GED_MASK_CTRL enumerator.
5649 *
5650 * @return The requested string.
5651 */
5652 extern const char* GED_CALLCONV GED_GetMaskCtrlString(GED_MASK_CTRL MaskCtrlValue);
5653
5654 /*!
5655 * Get the string representation for the given GED_MATH_FC enumerator. The function returns a NULL pointer for GED_MATH_FC_INVALID.
5656 *
5657 * @param[in] MathFCValue The given GED_MATH_FC enumerator.
5658 *
5659 * @return The requested string.
5660 */
5661 extern const char* GED_CALLCONV GED_GetMathFCString(GED_MATH_FC MathFCValue);
5662
5663 /*!
5664 * Get the string representation for the given GED_MATH_MACRO_EXT enumerator. The function returns a NULL pointer for
5665 * GED_MATH_MACRO_EXT_INVALID.
5666 *
5667 * @param[in] MathMacroExtValue The given GED_MATH_MACRO_EXT enumerator.
5668 *
5669 * @return The requested string.
5670 */
5671 extern const char* GED_CALLCONV GED_GetMathMacroExtString(GED_MATH_MACRO_EXT MathMacroExtValue);
5672
5673 /*!
5674 * Get the string representation for the given GED_MESSAGE_TYPE enumerator. The function returns a NULL pointer for
5675 * GED_MESSAGE_TYPE_INVALID.
5676 *
5677 * @param[in] MessageTypeValue The given GED_MESSAGE_TYPE enumerator.
5678 *
5679 * @return The requested string.
5680 */
5681 extern const char* GED_CALLCONV GED_GetMessageTypeString(GED_MESSAGE_TYPE MessageTypeValue);
5682
5683 /*!
5684 * Get the string representation for the given GED_NO_SRC_DEP_SET enumerator. The function returns a NULL pointer for
5685 * GED_NO_SRC_DEP_SET_INVALID.
5686 *
5687 * @param[in] NoSrcDepSetValue The given GED_NO_SRC_DEP_SET enumerator.
5688 *
5689 * @return The requested string.
5690 */
5691 extern const char* GED_CALLCONV GED_GetNoSrcDepSetString(GED_NO_SRC_DEP_SET NoSrcDepSetValue);
5692
5693 /*!
5694 * Get the string representation for the given GED_OPCODE enumerator. The function returns a NULL pointer for GED_OPCODE_INVALID.
5695 *
5696 * @param[in] OpcodeValue The given GED_OPCODE enumerator.
5697 *
5698 * @return The requested string.
5699 */
5700 extern const char* GED_CALLCONV GED_GetOpcodeString(GED_OPCODE OpcodeValue);
5701
5702 /*!
5703 * Get the string representation for the given GED_PRECISION enumerator. The function returns a NULL pointer for
5704 * GED_PRECISION_INVALID.
5705 *
5706 * @param[in] PrecisionValue The given GED_PRECISION enumerator.
5707 *
5708 * @return The requested string.
5709 */
5710 extern const char* GED_CALLCONV GED_GetPrecisionString(GED_PRECISION PrecisionValue);
5711
5712 /*!
5713 * Get the string representation for the given GED_PRED_CTRL enumerator. The function returns a NULL pointer for
5714 * GED_PRED_CTRL_INVALID.
5715 *
5716 * @param[in] PredCtrlValue The given GED_PRED_CTRL enumerator.
5717 *
5718 * @return The requested string.
5719 */
5720 extern const char* GED_CALLCONV GED_GetPredCtrlString(GED_PRED_CTRL PredCtrlValue);
5721
5722 /*!
5723 * Get the string representation for the given GED_PRED_INV enumerator. The function returns a NULL pointer for GED_PRED_INV_INVALID.
5724 *
5725 * @param[in] PredInvValue The given GED_PRED_INV enumerator.
5726 *
5727 * @return The requested string.
5728 */
5729 extern const char* GED_CALLCONV GED_GetPredInvString(GED_PRED_INV PredInvValue);
5730
5731 /*!
5732 * Get the string representation for the given GED_REG_FILE enumerator. The function returns a NULL pointer for GED_REG_FILE_INVALID.
5733 *
5734 * @param[in] RegFileValue The given GED_REG_FILE enumerator.
5735 *
5736 * @return The requested string.
5737 */
5738 extern const char* GED_CALLCONV GED_GetRegFileString(GED_REG_FILE RegFileValue);
5739
5740 /*!
5741 * Get the string representation for the given GED_REP_CTRL enumerator. The function returns a NULL pointer for GED_REP_CTRL_INVALID.
5742 *
5743 * @param[in] RepCtrlValue The given GED_REP_CTRL enumerator.
5744 *
5745 * @return The requested string.
5746 */
5747 extern const char* GED_CALLCONV GED_GetRepCtrlString(GED_REP_CTRL RepCtrlValue);
5748
5749 /*!
5750 * Get the string representation for the given GED_RETURN_DATA_CONTROL enumerator. The function returns a NULL pointer for
5751 * GED_RETURN_DATA_CONTROL_INVALID.
5752 *
5753 * @param[in] ReturnDataControlValue The given GED_RETURN_DATA_CONTROL enumerator.
5754 *
5755 * @return The requested string.
5756 */
5757 extern const char* GED_CALLCONV GED_GetReturnDataControlString(GED_RETURN_DATA_CONTROL ReturnDataControlValue);
5758
5759 /*!
5760 * Get the string representation for the given GED_SATURATE enumerator. The function returns a NULL pointer for GED_SATURATE_INVALID.
5761 *
5762 * @param[in] SaturateValue The given GED_SATURATE enumerator.
5763 *
5764 * @return The requested string.
5765 */
5766 extern const char* GED_CALLCONV GED_GetSaturateString(GED_SATURATE SaturateValue);
5767
5768 /*!
5769 * Get the string representation for the given GED_SFID enumerator. The function returns a NULL pointer for GED_SFID_INVALID.
5770 *
5771 * @param[in] SFIDValue The given GED_SFID enumerator.
5772 *
5773 * @return The requested string.
5774 */
5775 extern const char* GED_CALLCONV GED_GetSFIDString(GED_SFID SFIDValue);
5776
5777 /*!
5778 * Get the string representation for the given GED_SIMDMODE enumerator. The function returns a NULL pointer for GED_SIMDMODE_INVALID.
5779 *
5780 * @param[in] SIMDModeValue The given GED_SIMDMODE enumerator.
5781 *
5782 * @return The requested string.
5783 */
5784 extern const char* GED_CALLCONV GED_GetSIMDModeString(GED_SIMDMODE SIMDModeValue);
5785
5786 /*!
5787 * Get the string representation for the given GED_SLOT_GROUP enumerator. The function returns a NULL pointer for
5788 * GED_SLOT_GROUP_INVALID.
5789 *
5790 * @param[in] SlotGroupValue The given GED_SLOT_GROUP enumerator.
5791 *
5792 * @return The requested string.
5793 */
5794 extern const char* GED_CALLCONV GED_GetSlotGroupString(GED_SLOT_GROUP SlotGroupValue);
5795
5796 /*!
5797 * Get the string representation for the given GED_SRC_MOD enumerator. The function returns a NULL pointer for GED_SRC_MOD_INVALID.
5798 *
5799 * @param[in] SrcModValue The given GED_SRC_MOD enumerator.
5800 *
5801 * @return The requested string.
5802 */
5803 extern const char* GED_CALLCONV GED_GetSrcModString(GED_SRC_MOD SrcModValue);
5804
5805 /*!
5806 * Get the string representation for the given GED_SUB_BYTE_PRECISION enumerator. The function returns a NULL pointer for
5807 * GED_SUB_BYTE_PRECISION_INVALID.
5808 *
5809 * @param[in] SubBytePrecisionValue The given GED_SUB_BYTE_PRECISION enumerator.
5810 *
5811 * @return The requested string.
5812 */
5813 extern const char* GED_CALLCONV GED_GetSubBytePrecisionString(GED_SUB_BYTE_PRECISION SubBytePrecisionValue);
5814
5815 /*!
5816 * Get the string representation for the given GED_SUB_FUNC_ID enumerator. The function returns a NULL pointer for
5817 * GED_SUB_FUNC_ID_INVALID.
5818 *
5819 * @param[in] SubFuncIDValue The given GED_SUB_FUNC_ID enumerator.
5820 *
5821 * @return The requested string.
5822 */
5823 extern const char* GED_CALLCONV GED_GetSubFuncIDString(GED_SUB_FUNC_ID SubFuncIDValue);
5824
5825 /*!
5826 * Get the string representation for the given GED_SWIZZLE enumerator. The function returns a NULL pointer for GED_SWIZZLE_INVALID.
5827 *
5828 * @param[in] SwizzleValue The given GED_SWIZZLE enumerator.
5829 *
5830 * @return The requested string.
5831 */
5832 extern const char* GED_CALLCONV GED_GetSwizzleString(GED_SWIZZLE SwizzleValue);
5833
5834 /*!
5835 * Get the string representation for the given GED_SYNC_FC enumerator. The function returns a NULL pointer for GED_SYNC_FC_INVALID.
5836 *
5837 * @param[in] SyncFCValue The given GED_SYNC_FC enumerator.
5838 *
5839 * @return The requested string.
5840 */
5841 extern const char* GED_CALLCONV GED_GetSyncFCString(GED_SYNC_FC SyncFCValue);
5842
5843 /*!
5844 * Get the string representation for the given GED_THREAD_CTRL enumerator. The function returns a NULL pointer for
5845 * GED_THREAD_CTRL_INVALID.
5846 *
5847 * @param[in] ThreadCtrlValue The given GED_THREAD_CTRL enumerator.
5848 *
5849 * @return The requested string.
5850 */
5851 extern const char* GED_CALLCONV GED_GetThreadCtrlString(GED_THREAD_CTRL ThreadCtrlValue);
5852
5853 /*!
5854 * Determine whether the given vertical stride represents Vx1 or VxH.
5855 *
5856 * @param[in] vertstride The vertical stride to check.
5857 *
5858 * @return TRUE if the given vertical stride represents Vx1 or VxH, FALSE otherwise.
5859 */
5860 GED_INLINE bool GED_CALLCONV GED_IsVx1VxH(uint32_t vertstride)
5861 {
5862 return (3 == vertstride);
5863 }
5864
5865 /*!
5866 * The operand width, based on its data type.
5867 *
5868 * @param[in] datatype The @ref GED_DATA_TYPE enumerator to interpret.
5869 * @param[in] modelId The GED model by which to interpret.
5870 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5871 * error which caused the failure.
5872 *
5873 * @return The requested value.
5874 */
5875 extern uint32_t GED_CALLCONV GED_GetOperandWidth(const GED_DATA_TYPE datatype, const GED_MODEL modelId, GED_RETURN_VALUE* result);
5876
5877 /*!
5878 * The numeric type in which to display an operand, based on its data type. Relevant only for immediate operands.
5879 *
5880 * @param[in] datatype The @ref GED_DATA_TYPE enumerator to interpret.
5881 * @param[in] modelId The GED model by which to interpret.
5882 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific
5883 * error which caused the failure.
5884 *
5885 * @return The requested value.
5886 */
5887 extern uint32_t GED_CALLCONV GED_GetOperandNumericType(const GED_DATA_TYPE datatype, const GED_MODEL modelId, GED_RETURN_VALUE*
5888 result);
5889
5890 /*!
5891 *
5892 * Nibble Control. This field is used in some instructions along with QtrCtrl. See the description of
5893 * ExecMaskOffsetCtrl.
5894 * NibCtrl is only used for SIMD4 instructions.
5895 *
5896 *
5897 * @param[in] execmaskoffsetctrl The @ref GED_EXEC_MASK_OFFSET_CTRL enumerator to interpret.
5898 * @param[in] modelId The GED model by which to interpret.
5899 * @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the
5900 * specific error which caused the failure.
5901 *
5902 * @return The requested value.
5903 */
5904 extern uint32_t GED_CALLCONV GED_GetNibCtrl(const GED_EXEC_MASK_OFFSET_CTRL execmaskoffsetctrl, const GED_MODEL modelId,
5905 GED_RETURN_VALUE* result);
5906
5907 #ifdef __cplusplus
5908 }// extern "C"
5909 #endif // __cplusplus
5910 #endif // GED_H