Skip to content

Commit e9d94f9

Browse files
Wolfram70grypp
andcommitted
Update comments in NVVMTraits.h
Apply suggestions from code review Co-authored-by: Guray Ozen <[email protected]>
1 parent b67d2f4 commit e9d94f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mlir/include/mlir/Dialect/LLVMIR/NVVMTraits.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ namespace NVVM {
2525
struct NVVMCheckSMVersion {
2626
int archVersion;
2727

28-
// true if the SM version is accelerated (Ex. sm_90a vs sm_90)
28+
// Set to true if the SM version is accelerated (e.g., sm_90a).
2929
bool archAccelerated;
3030

31-
// true if the target SM version must exactly match this one
32-
// (both archVersion and archAccelerated)
33-
// Ex. sm_90a with exactMatch = false will also match with
34-
// sm_100a, sm_120a, etc...
31+
// Set to true if the target SM version must match exactly
32+
// (both archVersion and archAccelerated).
33+
// For example, sm_90a with exactMatch = false will also match
34+
// sm_100a, sm_120a, etc.
3535
bool exactMatch;
3636

3737
NVVMCheckSMVersion()
@@ -44,8 +44,8 @@ struct NVVMCheckSMVersion {
4444
: archVersion(archVersion), archAccelerated(archAccelerated),
4545
exactMatch(exactMatch) {}
4646

47-
// Parses the SM version string and sets the archVersion (integer) and
48-
// the archAccelerated flag.
47+
// Parses the SM version string and sets the archVersion (as an integer)
48+
// and the archAccelerated flag.
4949
void parse(StringRef smVersion) {
5050
archAccelerated = (smVersion.back() == 'a');
5151
smVersion.drop_front(3)

0 commit comments

Comments
 (0)