Skip to content

Commit

Permalink
IGA: GEDLibrary update for PTL encoding model
Browse files Browse the repository at this point in the history
Updated to GED0.118
Add GED_MODEL_XE3
  • Loading branch information
vsemenov368 authored and igcbot committed Jan 9, 2025
1 parent ef066c3 commit 0c267a0
Show file tree
Hide file tree
Showing 83 changed files with 19,746 additions and 12,684 deletions.
4 changes: 2 additions & 2 deletions visa/iga/GEDLibrary/GED_external/Source/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ set(GED_common_cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_encoding_masks.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_position_fragment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_restrictions.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_interpreter_types.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_int_utils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_interpreter_types.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_option_parser.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_string_utils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_types_internal.cpp
Expand All @@ -34,8 +34,8 @@ set(GED_common_h
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_encoding_masks.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_position_fragment.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_restrictions.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_interpreter_types.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_int_utils.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_interpreter_types.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_option_parser.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_string_utils.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_types_internal.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ set(GED_autogenia32_cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_compaction_tables.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_decoding_tables.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_encoding_masks_tables.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_enumerations.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_enum_interpreters.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_enum_tables.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_enumerations.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_fragments.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_field.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_mapping_fragments.cpp
Expand All @@ -30,6 +30,7 @@ set(GED_autogenia32_cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_none.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_tgl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe2.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe3.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe_hp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe_hpc.cpp
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe_hpc_a.cpp
Expand All @@ -46,10 +47,10 @@ set(GED_autogenia32_h
${CMAKE_CURRENT_SOURCE_DIR}/ged_compaction_tables.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_decoding_tables.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_encoding_masks_tables.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_enumerations.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_enumerations_internal.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_enum_interpreters.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_enum_tables.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_enumerations.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_enumerations_internal.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_fragments.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_field.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_ins_field_internal.h
Expand All @@ -65,6 +66,7 @@ set(GED_autogenia32_h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_none.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_tgl.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe2.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe3.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe_hp.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe_hpc.h
${CMAKE_CURRENT_SOURCE_DIR}/ged_model_xe_hpc_a.h
Expand Down
101 changes: 95 additions & 6 deletions visa/iga/GEDLibrary/GED_external/build/autogen-ia32/ged.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ typedef enum
* Supported CPUs: Xe2
*/
GED_MODEL_XE2,

/*!
* GED Model Version: xe3
* Supported CPUs: Xe3
*/
GED_MODEL_XE3,
GED_MODEL_INVALID
} GED_MODEL;

Expand Down Expand Up @@ -3451,6 +3457,80 @@ extern uint32_t GED_CALLCONV GED_GetSrc2IsImm(ged_ins_t* ins, GED_RETURN_VALUE*
*/
extern GED_RETURN_VALUE GED_CALLCONV GED_SetSrc2IsImm(ged_ins_t* ins, const uint32_t value);

/*!
* Get the value of the MetaRegFile field in the given instruction. The function returns an enumeration value. To obtain the enum
* entry's string representation, use @ref GED_GetRegFileString. See @ref GED_INS_FIELD_MetaRegFile for the field's description.
*
* @param[in] ins Pointer to the decoded instruction object.
* @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
* which caused the failure.
*
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
extern GED_REG_FILE GED_CALLCONV GED_GetMetaRegFile(ged_ins_t* ins, GED_RETURN_VALUE* result);

/*!
* Set the value of the MetaRegFile field in the given instruction. See @ref GED_INS_FIELD_MetaRegFile for the field's description.
*
* @param[in,out] ins Pointer to the instruction object for encoding.
* @param[in] value The value to encode.
*
* @return GED_RETURN_VALUE indicating success or encoding error.
*/
extern GED_RETURN_VALUE GED_CALLCONV GED_SetMetaRegFile(ged_ins_t* ins, const GED_REG_FILE value);

/*!
* Get the value of the MetaSubRegNum field in the given instruction. See @ref GED_INS_FIELD_MetaSubRegNum for the field's
* description.
*
* @param[in] ins Pointer to the decoded instruction object.
* @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
* which caused the failure.
*
* @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
* it is important to check the GED_RETURN_VALUE result.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
extern uint32_t GED_CALLCONV GED_GetMetaSubRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);

/*!
* Set the value of the MetaSubRegNum field in the given instruction. See @ref GED_INS_FIELD_MetaSubRegNum for the field's
* description.
*
* @param[in,out] ins Pointer to the instruction object for encoding.
* @param[in] value The value to encode.
*
* @return GED_RETURN_VALUE indicating success or encoding error.
*/
extern GED_RETURN_VALUE GED_CALLCONV GED_SetMetaSubRegNum(ged_ins_t* ins, const uint32_t value);

/*!
* Get the value of the MetaRegNum field in the given instruction. See @ref GED_INS_FIELD_MetaRegNum for the field's description.
*
* @param[in] ins Pointer to the decoded instruction object.
* @param[out] result If non-null, the function stores the @ref GED_RETURN_VALUE result indicating success or the specific error
* which caused the failure.
*
* @return The requested value if the field is valid, uint32_t equivalent of -1 otherwise. If -1 is a valid value for this field,
* it is important to check the GED_RETURN_VALUE result.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
extern uint32_t GED_CALLCONV GED_GetMetaRegNum(ged_ins_t* ins, GED_RETURN_VALUE* result);

/*!
* Set the value of the MetaRegNum field in the given instruction. See @ref GED_INS_FIELD_MetaRegNum for the field's description.
*
* @param[in,out] ins Pointer to the instruction object for encoding.
* @param[in] value The value to encode.
*
* @return GED_RETURN_VALUE indicating success or encoding error.
*/
extern GED_RETURN_VALUE GED_CALLCONV GED_SetMetaRegNum(ged_ins_t* ins, const uint32_t value);

/*!
* Get the value of the AddrImm field which corresponds to an indexed Src operand in the given instruction. See @ref
* GED_INS_FIELD_Src0AddrImm, @ref GED_INS_FIELD_Src1AddrImm for the fields' description.
Expand Down Expand Up @@ -3488,7 +3568,7 @@ extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcAddrImm(ged_ins_t* ins, co
* which caused the failure.
* @param[in] index The index (number) of the source operand.
*
* @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
Expand Down Expand Up @@ -3571,7 +3651,7 @@ extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcChanSel(ged_ins_t* ins, co
* which caused the failure.
* @param[in] index The index (number) of the source operand.
*
* @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
Expand Down Expand Up @@ -3685,7 +3765,7 @@ extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcIsImm(ged_ins_t* ins, cons
* which caused the failure.
* @param[in] index The index (number) of the source operand.
*
* @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
Expand Down Expand Up @@ -3714,7 +3794,7 @@ extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcMathMacroExt(ged_ins_t* in
* which caused the failure.
* @param[in] index The index (number) of the source operand.
*
* @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
Expand Down Expand Up @@ -3769,7 +3849,7 @@ extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcRegNum(ged_ins_t* ins, con
* which caused the failure.
* @param[in] index The index (number) of the source operand.
*
* @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
Expand All @@ -3796,7 +3876,7 @@ extern GED_RETURN_VALUE GED_CALLCONV GED_SetIndexedSrcRepCtrl(ged_ins_t* ins, co
* which caused the failure.
* @param[in] index The index (number) of the source operand.
*
* @return Src1SubBytePrecision's enumeration if the field is valid, GED_SUB_BYTE_PRECISION_INVALID otherwise.
* @return MetaRegFile's enumeration if the field is valid, GED_REG_FILE_INVALID otherwise.
*
* @note @ref GED_DecodeIns must be called with the given instruction before calling this function.
*/
Expand Down Expand Up @@ -5641,6 +5721,15 @@ extern const char* GED_CALLCONV GED_GetFusionCtrlString(GED_FUSION_CTRL FusionCt
*/
extern const char* GED_CALLCONV GED_GetHeaderPresentString(GED_HEADER_PRESENT HeaderPresentValue);

/*!
* Get the string representation for the given GED_IS_IMM enumerator. The function returns a NULL pointer for GED_IS_IMM_INVALID.
*
* @param[in] IsImmValue The given GED_IS_IMM enumerator.
*
* @return The requested string.
*/
extern const char* GED_CALLCONV GED_GetIsImmString(GED_IS_IMM IsImmValue);

/*!
* Get the string representation for the given GED_MASK_CTRL enumerator. The function returns a NULL pointer for
* GED_MASK_CTRL_INVALID.
Expand Down
Loading

0 comments on commit 0c267a0

Please sign in to comment.