Skip to content

Conversation

@schwarzschild-radius
Copy link
Contributor

This commit removes constexpr qualifier from getNVVMCtaGroupKind function as llvm_unreachable cannot be used in a constexpr context. The build failures came up during post-merge CI

This commit removes constexpr qualifier from getNVVMCtaGroupKind function as llvm_unreachable cannot be used in a constexpr context. The build failures came up during post-merge CI
@llvmbot
Copy link
Member

llvmbot commented Nov 18, 2025

@llvm/pr-subscribers-mlir-llvm

@llvm/pr-subscribers-mlir

Author: Pradeep Kumar (schwarzschild-radius)

Changes

This commit removes constexpr qualifier from getNVVMCtaGroupKind function as llvm_unreachable cannot be used in a constexpr context. The build failures came up during post-merge CI


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

1 Files Affected:

  • (modified) mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp (+1-1)
diff --git a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
index 369305b40c689..0e620737109b8 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
@@ -62,7 +62,7 @@ static bool isPtrInSharedCTASpace(mlir::Value ptr) {
 }
 
 // Helper method to convert CtaGroupKind in NVVM Dialect to CtaGroupKind in LLVM
-static constexpr llvm::nvvm::CTAGroupKind
+static llvm::nvvm::CTAGroupKind
 getNVVMCtaGroupKind(NVVM::CTAGroupKind ctaGroup) {
   switch (ctaGroup) {
   case NVVM::CTAGroupKind::CTA_1:
@github-actions
Copy link

🐧 Linux x64 Test Results

  • 7096 tests passed
  • 594 tests skipped
@joker-eph
Copy link
Collaborator

Sorry: I didn't see this PR before or I would have merged it instead of reverting!

The build failures came up during post-merge CI

When you encounter a build failure, either you can merge directly without review to unbreak the bot, or if you feel the fix needs to be reviewed we should revert the original PR in the meantime to unbreak the bots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants