@@ -277,18 +277,14 @@ typedef enum amd_comgr_language_s {
277
277
* OpenCL 2.0.
278
278
*/
279
279
AMD_COMGR_LANGUAGE_OPENCL_2_0 = 0x2 ,
280
- /**
281
- * AMD Hetrogeneous C++ (HC).
282
- */
283
- AMD_COMGR_LANGUAGE_HC = 0x3 ,
284
280
/**
285
281
* HIP.
286
282
*/
287
- AMD_COMGR_LANGUAGE_HIP = 0x4 ,
283
+ AMD_COMGR_LANGUAGE_HIP = 0x3 ,
288
284
/**
289
285
* LLVM IR, either textual (.ll) or bitcode (.bc) format.
290
286
*/
291
- AMD_COMGR_LANGUAGE_LLVM_IR = 0x5 ,
287
+ AMD_COMGR_LANGUAGE_LLVM_IR = 0x4 ,
292
288
/**
293
289
* Marker for last valid language.
294
290
*/
@@ -1644,17 +1640,6 @@ typedef enum amd_comgr_action_kind_s {
1644
1640
* any DataObject in the input set.
1645
1641
*/
1646
1642
AMD_COMGR_ACTION_LINK_BC_TO_BC = 0x4 ,
1647
- /**
1648
- * Optimize each bc data object in @p input and create an optimized bc data
1649
- * object to @p result.
1650
- *
1651
- * Return @p AMD_COMGR_STATUS_ERROR if the optimization fails.
1652
- *
1653
- * Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1654
- * if isa name is not set in @p info and does not match the isa name
1655
- * of all bc data objects in @p input.
1656
- */
1657
- AMD_COMGR_ACTION_OPTIMIZE_BC_TO_BC = 0x5 ,
1658
1643
/**
1659
1644
* Perform code generation for each bc data object in @p input in
1660
1645
* order. For each successful code generation add a relocatable data
@@ -1667,7 +1652,7 @@ typedef enum amd_comgr_action_kind_s {
1667
1652
* if isa name is not set in @p info and does not match the isa name
1668
1653
* of all bc data objects in @p input.
1669
1654
*/
1670
- AMD_COMGR_ACTION_CODEGEN_BC_TO_RELOCATABLE = 0x6 ,
1655
+ AMD_COMGR_ACTION_CODEGEN_BC_TO_RELOCATABLE = 0x5 ,
1671
1656
/**
1672
1657
* Perform code generation for each bc data object in @p input in
1673
1658
* order. For each successful code generation add an assembly source data
@@ -1680,7 +1665,7 @@ typedef enum amd_comgr_action_kind_s {
1680
1665
* if isa name is not set in @p info and does not match the isa name
1681
1666
* of all bc data objects in @p input.
1682
1667
*/
1683
- AMD_COMGR_ACTION_CODEGEN_BC_TO_ASSEMBLY = 0x7 ,
1668
+ AMD_COMGR_ACTION_CODEGEN_BC_TO_ASSEMBLY = 0x6 ,
1684
1669
/**
1685
1670
* Link each relocatable data object in @p input together and add
1686
1671
* the linked relocatable data object to @p result. Any device
@@ -1693,7 +1678,7 @@ typedef enum amd_comgr_action_kind_s {
1693
1678
* if isa name is not set in @p info and does not match the isa name
1694
1679
* of all relocatable data objects in @p input.
1695
1680
*/
1696
- AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_RELOCATABLE = 0x8 ,
1681
+ AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_RELOCATABLE = 0x7 ,
1697
1682
/**
1698
1683
* Link each relocatable data object in @p input together and add
1699
1684
* the linked executable data object to @p result. Any device
@@ -1706,7 +1691,7 @@ typedef enum amd_comgr_action_kind_s {
1706
1691
* if isa name is not set in @p info and does not match the isa name
1707
1692
* of all relocatable data objects in @p input.
1708
1693
*/
1709
- AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_EXECUTABLE = 0x9 ,
1694
+ AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_EXECUTABLE = 0x8 ,
1710
1695
/**
1711
1696
* Assemble each source data object in @p input in order into machine code.
1712
1697
* For each successful assembly add a relocatable data object to @p result.
@@ -1719,7 +1704,7 @@ typedef enum amd_comgr_action_kind_s {
1719
1704
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT if isa name is not set in
1720
1705
* @p info.
1721
1706
*/
1722
- AMD_COMGR_ACTION_ASSEMBLE_SOURCE_TO_RELOCATABLE = 0xA ,
1707
+ AMD_COMGR_ACTION_ASSEMBLE_SOURCE_TO_RELOCATABLE = 0x9 ,
1723
1708
/**
1724
1709
* Disassemble each relocatable data object in @p input in
1725
1710
* order. For each successful disassembly add a source data object to
@@ -1732,7 +1717,7 @@ typedef enum amd_comgr_action_kind_s {
1732
1717
* if isa name is not set in @p info and does not match the isa name
1733
1718
* of all relocatable data objects in @p input.
1734
1719
*/
1735
- AMD_COMGR_ACTION_DISASSEMBLE_RELOCATABLE_TO_SOURCE = 0xB ,
1720
+ AMD_COMGR_ACTION_DISASSEMBLE_RELOCATABLE_TO_SOURCE = 0xA ,
1736
1721
/**
1737
1722
* Disassemble each executable data object in @p input in order. For
1738
1723
* each successful disassembly add a source data object to @p result.
@@ -1744,7 +1729,7 @@ typedef enum amd_comgr_action_kind_s {
1744
1729
* if isa name is not set in @p info and does not match the isa name
1745
1730
* of all relocatable data objects in @p input.
1746
1731
*/
1747
- AMD_COMGR_ACTION_DISASSEMBLE_EXECUTABLE_TO_SOURCE = 0xC ,
1732
+ AMD_COMGR_ACTION_DISASSEMBLE_EXECUTABLE_TO_SOURCE = 0xB ,
1748
1733
/**
1749
1734
* Disassemble each bytes data object in @p input in order. For each
1750
1735
* successful disassembly add a source data object to @p
@@ -1759,7 +1744,7 @@ typedef enum amd_comgr_action_kind_s {
1759
1744
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1760
1745
* if isa name is not set in @p info
1761
1746
*/
1762
- AMD_COMGR_ACTION_DISASSEMBLE_BYTES_TO_SOURCE = 0xD ,
1747
+ AMD_COMGR_ACTION_DISASSEMBLE_BYTES_TO_SOURCE = 0xC ,
1763
1748
/**
1764
1749
* Compile each source data object in @p input in order. For each
1765
1750
* successful compilation add a bc data object to @p result. Resolve
@@ -1776,7 +1761,7 @@ typedef enum amd_comgr_action_kind_s {
1776
1761
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1777
1762
* if isa name or language is not set in @p info.
1778
1763
*/
1779
- AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC = 0xE ,
1764
+ AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC = 0xD ,
1780
1765
/**
1781
1766
* Compile a single source data object in @p input in order. For each
1782
1767
* successful compilation add a relocatable data object to @p result.
@@ -1793,7 +1778,7 @@ typedef enum amd_comgr_action_kind_s {
1793
1778
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1794
1779
* if isa name or language is not set in @p info.
1795
1780
*/
1796
- AMD_COMGR_ACTION_COMPILE_SOURCE_TO_RELOCATABLE = 0xF ,
1781
+ AMD_COMGR_ACTION_COMPILE_SOURCE_TO_RELOCATABLE = 0xE ,
1797
1782
/**
1798
1783
* Compile each source data object in @p input and create a single executabele
1799
1784
* in @p result. Resolve any include source names using the names of include
@@ -1809,7 +1794,7 @@ typedef enum amd_comgr_action_kind_s {
1809
1794
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1810
1795
* if isa name or language is not set in @p info.
1811
1796
*/
1812
- AMD_COMGR_ACTION_COMPILE_SOURCE_TO_EXECUTABLE = 0x10 ,
1797
+ AMD_COMGR_ACTION_COMPILE_SOURCE_TO_EXECUTABLE = 0xF ,
1813
1798
1814
1799
/**
1815
1800
* Unbundle each source data object in @p input. These objects can be
@@ -1823,7 +1808,7 @@ typedef enum amd_comgr_action_kind_s {
1823
1808
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1824
1809
* if isa name or language is not set in @p info.
1825
1810
*/
1826
- AMD_COMGR_ACTION_UNBUNDLE = 0x11 ,
1811
+ AMD_COMGR_ACTION_UNBUNDLE = 0x10 ,
1827
1812
1828
1813
/**
1829
1814
* Marker for last valid action kind.
0 commit comments