Skip to content

Conversation

@grypp
Copy link
Member

@grypp grypp commented Nov 19, 2025

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Nov 19, 2025

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-mlir-llvm

Author: Guray Ozen (grypp)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/168716.diff

2 Files Affected:

  • (modified) mlir/docs/Dialects/NVVMDialect.md (+1-6)
  • (modified) mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt (+1-1)
diff --git a/mlir/docs/Dialects/NVVMDialect.md b/mlir/docs/Dialects/NVVMDialect.md
index b50980258593d..12ec2b3fd989e 100644
--- a/mlir/docs/Dialects/NVVMDialect.md
+++ b/mlir/docs/Dialects/NVVMDialect.md
@@ -1,4 +1,4 @@
-# NVVM Dialect
+# 'nvvm' Dialect
 
 The NVVM dialect is MLIR's LLVM-IR-based, NVIDIA-specific backend dialect. It
 models NVVM intrinsics and public ISA functionality and introduces NVIDIA
@@ -93,8 +93,3 @@ of an operation is that used in LLVM IR prefixed with "`nvvm.`".
 
 [include "Dialects/NVVMOps.md"]
 
-
-## Op Interfaces
-
-[include "Dialects/NVVMRequiresSMTraits.md"]
-
diff --git a/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt b/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
index c301e0b40e8fe..25b56cc9e5594 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
@@ -63,7 +63,7 @@ mlir_tablegen(NVVMRequiresSMTraits.cpp.inc -gen-op-interface-defs)
 add_mlir_dialect_tablegen_target(MLIRNVVMRequiresSMTraitsIncGen)
 
 add_mlir_dialect(NVVMOps nvvm)
-add_mlir_doc(NVVMOps NVVMDialect Dialects/ -gen-dialect-doc -dialect=nvvm)
+add_mlir_doc(NVVMOps NVVMOps Dialects/ -gen-op-doc)
 set(LLVM_TARGET_DEFINITIONS NVVMOps.td)
 mlir_tablegen(NVVMConversions.inc -gen-llvmir-conversions)
 mlir_tablegen(NVVMFromLLVMIRConversions.inc -gen-intr-from-llvmir-conversions)


add_mlir_dialect(NVVMOps nvvm)
add_mlir_doc(NVVMOps NVVMDialect Dialects/ -gen-dialect-doc -dialect=nvvm)
add_mlir_doc(NVVMOps NVVMOps Dialects/ -gen-op-doc)
Copy link
Contributor

@durga4github durga4github Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, this gen-op-doc is a new way of configuring? (instead of what we had earlier)

I looked into the public Docs page, and it seems we cannot get to the actual docs of the Ops.
I believe this PR will address it..?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way should generate doc for only ops. Previously doc was generated for the dialect, now we write the dialect manually, but we still need auto-generated docs for the OPs.

@github-actions
Copy link

🐧 Linux x64 Test Results

  • 7099 tests passed
  • 594 tests skipped


## Op Interfaces

[include "Dialects/NVVMRequiresSMTraits.md"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grypp Why did we remove the SMTraits doc file? Should it be included somewhere else?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we generate any doc for that interface. We have ptx builder interface. I can put new PR and generate doc for them

Copy link
Contributor

@schwarzschild-radius schwarzschild-radius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than a clarification on the SMTraits file, the change looks good to me. Thanks!

@grypp grypp merged commit 98b1708 into llvm:main Nov 19, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants