[Mlir-commits] [llvm] [mlir] [MLIR][NVVM] Add NVVMRequiresSM op trait (PR #126886)
Guray Ozen
llvmlistbot at llvm.org
Wed May 7 09:07:50 PDT 2025
================
@@ -2728,6 +2729,28 @@ def TestLinalgFillOp :
}];
}
+//===----------------------------------------------------------------------===//
+// Test NVVM RequiresSM trait.
+//===----------------------------------------------------------------------===//
+
+def TestNVVMRequiresSMOp : TEST_Op<"nvvm_requires_sm_80",
+ [NVVMRequiresSM<80>]> {
+ let arguments = (ins );
+ let assemblyFormat = "attr-dict";
+}
+
+def TestNVVMRequiresAtleastSMArchCondOp :
+ TEST_Op<"nvvm_requires_sm_atleast_90_aa", [NVVMRequiresSM<90, "true">]> {
----------------
grypp wrote:
Why do we create test ops instead of using existing NVVM ops? I might be missing something.
https://github.com/llvm/llvm-project/pull/126886
More information about the Mlir-commits
mailing list