Skip to content

Commit 04545b1

Browse files
Wolfram70grypp
andauthored
Apply suggestions from code review
Co-authored-by: Guray Ozen <[email protected]>
1 parent ef6abe5 commit 04545b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mlir/include/mlir/Dialect/LLVMIR/NVVMRequiresSMTraits.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def RequiresSMInterface: OpInterface<"RequiresSMInterface"> {
2727
];
2828
}
2929

30+
// OP requires a specified minimum SM value or higher;
31+
// it is not architecture-specific.
32+
"OP requires an exact SM match along with architecture acceleration."
3033
class NVVMRequiresSM<int minVersion> :
3134
ParamNativeOpTrait<"NVVMRequiresSM", !cast<string>(minVersion)>;
3235

@@ -35,6 +38,8 @@ class StrJoin<string sep, list<string> str_list> {
3538
!if(!eq(a, ""), b, !if(!eq(b, ""), a, !strconcat(a, sep, b))));
3639
}
3740

41+
// OP requires an exact SM match along with
42+
// architecture acceleration.
3843
class NVVMRequiresSMa<list<int> smVersions> :
3944
ParamNativeOpTrait<"NVVMRequiresSMa",
4045
StrJoin<",", !foreach(vers, smVersions,

0 commit comments

Comments
 (0)