@@ -25,13 +25,13 @@ namespace NVVM {
2525struct 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