[llvm] r335705 - AMDHSA/NFC: Address missed review feedback from
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 26 21:56:00 PDT 2018
Author: kzhuravl
Date: Tue Jun 26 21:56:00 2018
New Revision: 335705
URL: http://llvm.org/viewvc/llvm-project?rev=335705&view=rev
Log:
AMDHSA/NFC: Address missed review feedback from
https://reviews.llvm.org/D47566
Change wording from "Must be backwards compatible" to
"Must match hardware definition" for enums that are
defined by hardware.
Modified:
llvm/trunk/include/llvm/Support/AMDHSAKernelDescriptor.h
Modified: llvm/trunk/include/llvm/Support/AMDHSAKernelDescriptor.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/AMDHSAKernelDescriptor.h?rev=335705&r1=335704&r2=335705&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/AMDHSAKernelDescriptor.h (original)
+++ llvm/trunk/include/llvm/Support/AMDHSAKernelDescriptor.h Tue Jun 26 21:56:00 2018
@@ -48,7 +48,7 @@
namespace llvm {
namespace amdhsa {
-// Floating point rounding modes. Must be kept backwards compatible.
+// Floating point rounding modes. Must match hardware definition.
enum : uint8_t {
FLOAT_ROUND_MODE_NEAR_EVEN = 0,
FLOAT_ROUND_MODE_PLUS_INFINITY = 1,
@@ -56,7 +56,7 @@ enum : uint8_t {
FLOAT_ROUND_MODE_ZERO = 3,
};
-// Floating point denorm modes. Must be kept backwards compatible.
+// Floating point denorm modes. Must match hardware definition.
enum : uint8_t {
FLOAT_DENORM_MODE_FLUSH_SRC_DST = 0,
FLOAT_DENORM_MODE_FLUSH_DST = 1,
@@ -64,7 +64,7 @@ enum : uint8_t {
FLOAT_DENORM_MODE_FLUSH_NONE = 3,
};
-// System VGPR workitem IDs. Must be kept backwards compatible.
+// System VGPR workitem IDs. Must match hardware definition.
enum : uint8_t {
SYSTEM_VGPR_WORKITEM_ID_X = 0,
SYSTEM_VGPR_WORKITEM_ID_X_Y = 1,
@@ -72,7 +72,7 @@ enum : uint8_t {
SYSTEM_VGPR_WORKITEM_ID_UNDEFINED = 3,
};
-// Compute program resource register 1. Must be kept backwards compatible.
+// Compute program resource register 1. Must match hardware definition.
#define COMPUTE_PGM_RSRC1(NAME, SHIFT, WIDTH) \
AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_ ## NAME, SHIFT, WIDTH)
enum : int32_t {
@@ -94,7 +94,7 @@ enum : int32_t {
};
#undef COMPUTE_PGM_RSRC1
-// Compute program resource register 2. Must be kept backwards compatible.
+// Compute program resource register 2. Must match hardware definition.
#define COMPUTE_PGM_RSRC2(NAME, SHIFT, WIDTH) \
AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_ ## NAME, SHIFT, WIDTH)
enum : int32_t {
More information about the llvm-commits
mailing list