@@ -1588,44 +1588,6 @@ typedef enum amd_comgr_action_kind_s {
1588
1588
* if isa name or language is not set in @p info.
1589
1589
*/
1590
1590
AMD_COMGR_ACTION_COMPILE_SOURCE_TO_BC = 0x2 ,
1591
- /**
1592
- * Copy all existing data objects in @p input to @p output, then add the
1593
- * device-specific and language-specific bitcode libraries required for
1594
- * compilation.
1595
- *
1596
- * Currently the only supported languages are @p AMD_COMGR_LANGUAGE_OPENCL_1_2,
1597
- * @p AMD_COMGR_LANGUAGE_OPENCL_2_0, and @p AMD_COMGR_LANGUAGE_HIP.
1598
- *
1599
- * The options in @p info should be set to a set of language-specific flags.
1600
- * For OpenCL and HIP these include:
1601
- *
1602
- * correctly_rounded_sqrt
1603
- * finite_only
1604
- * unsafe_math
1605
- * wavefrontsize64
1606
- *
1607
- * For example, to enable finite_only unsafe_math, the options should be set
1608
- * as:
1609
- *
1610
- * const char *options[] = {"finite_only", "unsafe_math"};
1611
- * size_t optionsCount = sizeof(options) / sizeof(options[0]);
1612
- * amd_comgr_action_info_set_option_list(info, options, optionsCount);
1613
- *
1614
- * Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT if isa name or language
1615
- * is not set in @p info, the language is not supported, an unknown
1616
- * language-specific flag is supplied, or a language-specific flag is
1617
- * repeated.
1618
- *
1619
- * @deprecated since 1.7
1620
- * @warning This action, followed by @c AMD_COMGR_ACTION_LINK_BC_TO_BC, may
1621
- * result in subtle bugs due to incorrect linking of the device libraries.
1622
- * The @c AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC action can
1623
- * be used as a workaround which ensures the link occurs correctly.
1624
- */
1625
- AMD_COMGR_ACTION_ADD_DEVICE_LIBRARIES
1626
- AMD_COMGR_DEPRECATED ("Will be removed in Comgr v3.0 (Rocm v6.0). Use "
1627
- "AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC "
1628
- "instead" ) = 0x3 ,
1629
1591
/**
1630
1592
* Link a collection of bitcodes, bundled bitcodes, and bundled bitcode
1631
1593
* archives in @p into a single composite (unbundled) bitcode @p.
@@ -1639,7 +1601,7 @@ typedef enum amd_comgr_action_kind_s {
1639
1601
* of all bc data objects in @p input, or if the Name field is not set for
1640
1602
* any DataObject in the input set.
1641
1603
*/
1642
- AMD_COMGR_ACTION_LINK_BC_TO_BC = 0x4 ,
1604
+ AMD_COMGR_ACTION_LINK_BC_TO_BC = 0x3 ,
1643
1605
/**
1644
1606
* Perform code generation for each bc data object in @p input in
1645
1607
* order. For each successful code generation add a relocatable data
@@ -1652,7 +1614,7 @@ typedef enum amd_comgr_action_kind_s {
1652
1614
* if isa name is not set in @p info and does not match the isa name
1653
1615
* of all bc data objects in @p input.
1654
1616
*/
1655
- AMD_COMGR_ACTION_CODEGEN_BC_TO_RELOCATABLE = 0x5 ,
1617
+ AMD_COMGR_ACTION_CODEGEN_BC_TO_RELOCATABLE = 0x4 ,
1656
1618
/**
1657
1619
* Perform code generation for each bc data object in @p input in
1658
1620
* order. For each successful code generation add an assembly source data
@@ -1665,7 +1627,7 @@ typedef enum amd_comgr_action_kind_s {
1665
1627
* if isa name is not set in @p info and does not match the isa name
1666
1628
* of all bc data objects in @p input.
1667
1629
*/
1668
- AMD_COMGR_ACTION_CODEGEN_BC_TO_ASSEMBLY = 0x6 ,
1630
+ AMD_COMGR_ACTION_CODEGEN_BC_TO_ASSEMBLY = 0x5 ,
1669
1631
/**
1670
1632
* Link each relocatable data object in @p input together and add
1671
1633
* the linked relocatable data object to @p result. Any device
@@ -1678,7 +1640,7 @@ typedef enum amd_comgr_action_kind_s {
1678
1640
* if isa name is not set in @p info and does not match the isa name
1679
1641
* of all relocatable data objects in @p input.
1680
1642
*/
1681
- AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_RELOCATABLE = 0x7 ,
1643
+ AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_RELOCATABLE = 0x6 ,
1682
1644
/**
1683
1645
* Link each relocatable data object in @p input together and add
1684
1646
* the linked executable data object to @p result. Any device
@@ -1691,7 +1653,7 @@ typedef enum amd_comgr_action_kind_s {
1691
1653
* if isa name is not set in @p info and does not match the isa name
1692
1654
* of all relocatable data objects in @p input.
1693
1655
*/
1694
- AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_EXECUTABLE = 0x8 ,
1656
+ AMD_COMGR_ACTION_LINK_RELOCATABLE_TO_EXECUTABLE = 0x7 ,
1695
1657
/**
1696
1658
* Assemble each source data object in @p input in order into machine code.
1697
1659
* For each successful assembly add a relocatable data object to @p result.
@@ -1704,7 +1666,7 @@ typedef enum amd_comgr_action_kind_s {
1704
1666
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT if isa name is not set in
1705
1667
* @p info.
1706
1668
*/
1707
- AMD_COMGR_ACTION_ASSEMBLE_SOURCE_TO_RELOCATABLE = 0x9 ,
1669
+ AMD_COMGR_ACTION_ASSEMBLE_SOURCE_TO_RELOCATABLE = 0x8 ,
1708
1670
/**
1709
1671
* Disassemble each relocatable data object in @p input in
1710
1672
* order. For each successful disassembly add a source data object to
@@ -1717,7 +1679,7 @@ typedef enum amd_comgr_action_kind_s {
1717
1679
* if isa name is not set in @p info and does not match the isa name
1718
1680
* of all relocatable data objects in @p input.
1719
1681
*/
1720
- AMD_COMGR_ACTION_DISASSEMBLE_RELOCATABLE_TO_SOURCE = 0xA ,
1682
+ AMD_COMGR_ACTION_DISASSEMBLE_RELOCATABLE_TO_SOURCE = 0x9 ,
1721
1683
/**
1722
1684
* Disassemble each executable data object in @p input in order. For
1723
1685
* each successful disassembly add a source data object to @p result.
@@ -1729,7 +1691,7 @@ typedef enum amd_comgr_action_kind_s {
1729
1691
* if isa name is not set in @p info and does not match the isa name
1730
1692
* of all relocatable data objects in @p input.
1731
1693
*/
1732
- AMD_COMGR_ACTION_DISASSEMBLE_EXECUTABLE_TO_SOURCE = 0xB ,
1694
+ AMD_COMGR_ACTION_DISASSEMBLE_EXECUTABLE_TO_SOURCE = 0xA ,
1733
1695
/**
1734
1696
* Disassemble each bytes data object in @p input in order. For each
1735
1697
* successful disassembly add a source data object to @p
@@ -1744,7 +1706,7 @@ typedef enum amd_comgr_action_kind_s {
1744
1706
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1745
1707
* if isa name is not set in @p info
1746
1708
*/
1747
- AMD_COMGR_ACTION_DISASSEMBLE_BYTES_TO_SOURCE = 0xC ,
1709
+ AMD_COMGR_ACTION_DISASSEMBLE_BYTES_TO_SOURCE = 0xB ,
1748
1710
/**
1749
1711
* Compile each source data object in @p input in order. For each
1750
1712
* successful compilation add a bc data object to @p result. Resolve
@@ -1761,7 +1723,7 @@ typedef enum amd_comgr_action_kind_s {
1761
1723
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1762
1724
* if isa name or language is not set in @p info.
1763
1725
*/
1764
- AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC = 0xD ,
1726
+ AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC = 0xC ,
1765
1727
/**
1766
1728
* Compile a single source data object in @p input in order. For each
1767
1729
* successful compilation add a relocatable data object to @p result.
@@ -1778,7 +1740,7 @@ typedef enum amd_comgr_action_kind_s {
1778
1740
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1779
1741
* if isa name or language is not set in @p info.
1780
1742
*/
1781
- AMD_COMGR_ACTION_COMPILE_SOURCE_TO_RELOCATABLE = 0xE ,
1743
+ AMD_COMGR_ACTION_COMPILE_SOURCE_TO_RELOCATABLE = 0xD ,
1782
1744
/**
1783
1745
* Compile each source data object in @p input and create a single executabele
1784
1746
* in @p result. Resolve any include source names using the names of include
@@ -1794,7 +1756,7 @@ typedef enum amd_comgr_action_kind_s {
1794
1756
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1795
1757
* if isa name or language is not set in @p info.
1796
1758
*/
1797
- AMD_COMGR_ACTION_COMPILE_SOURCE_TO_EXECUTABLE = 0xF ,
1759
+ AMD_COMGR_ACTION_COMPILE_SOURCE_TO_EXECUTABLE = 0xE ,
1798
1760
1799
1761
/**
1800
1762
* Unbundle each source data object in @p input. These objects can be
@@ -1808,7 +1770,7 @@ typedef enum amd_comgr_action_kind_s {
1808
1770
* Return @p AMD_COMGR_STATUS_ERROR_INVALID_ARGUMENT
1809
1771
* if isa name or language is not set in @p info.
1810
1772
*/
1811
- AMD_COMGR_ACTION_UNBUNDLE = 0x10 ,
1773
+ AMD_COMGR_ACTION_UNBUNDLE = 0xF ,
1812
1774
1813
1775
/**
1814
1776
* Marker for last valid action kind.
0 commit comments