Skip to content

Conversation

@rscottmanley
Copy link
Contributor

Add the cl::values to the pass options so an assert is not reached when trying to generate a reproducer e.g. "unknown data value for option"

@llvmbot
Copy link
Member

llvmbot commented Nov 18, 2025

@llvm/pr-subscribers-mlir-openacc

@llvm/pr-subscribers-mlir

Author: Scott Manley (rscottmanley)

Changes

Add the cl::values to the pass options so an assert is not reached when trying to generate a reproducer e.g. "unknown data value for option"


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

1 Files Affected:

  • (modified) mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td (+10-1)
diff --git a/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td b/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td index 970d9304d8289..0b11f144f9014 100644 --- a/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td +++ b/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.td @@ -97,7 +97,16 @@ def ACCImplicitRoutine : Pass<"acc-implicit-routine", "mlir::ModuleOp"> { "mlir::acc::DeviceType::None", "Target device type for implicit routine generation. " "Ensures that `acc routine` device_type clauses are " - "properly considered not just default clauses."> + "properly considered not just default clauses.", + [{::llvm::cl::values( + clEnumValN(mlir::acc::DeviceType::None, "none", "none"), + clEnumValN(mlir::acc::DeviceType::Star, "*", "*"), + clEnumValN(mlir::acc::DeviceType::Default, "default", "default"), + clEnumValN(mlir::acc::DeviceType::Host, "host", "host"), + clEnumValN(mlir::acc::DeviceType::Multicore, "multicore", "multicore"), + clEnumValN(mlir::acc::DeviceType::Nvidia, "nvidia", "nvidia"), + clEnumValN(mlir::acc::DeviceType::Radeon, "radeon", "radeon")) + }]> ]; } 
Copy link
Contributor

@razvanlupusoru razvanlupusoru left a comment

Choose a reason for hiding this comment

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

Thank you!

@github-actions
Copy link

🐧 Linux x64 Test Results

  • 7083 tests passed
  • 594 tests skipped
Add the cl::values to the pass options so an assert is not reached when trying to generate a reproducer e.g. "unknown data value for option"
@rscottmanley rscottmanley force-pushed the rscottmanley/implicit-routine-cl-values branch from da5dab8 to bb90520 Compare November 18, 2025 19:46
@rscottmanley rscottmanley merged commit 9a15556 into llvm:main Nov 19, 2025
8 of 9 checks passed
aadeshps-mcw pushed a commit to aadeshps-mcw/llvm-project that referenced this pull request Nov 26, 2025
Add the cl::values to the pass options so an assert is not reached when trying to generate a reproducer e.g. "unknown data value for option"
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Nov 26, 2025
Add the cl::values to the pass options so an assert is not reached when trying to generate a reproducer e.g. "unknown data value for option"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment