Skip to content

Commit

Permalink
Move definition of patternBenefitAddSPIRVEnv (#1354)
Browse files Browse the repository at this point in the history
This is to avoid change to upstream files.
Solves issue #1273

Signed-off-by: Finlay Marno <[email protected]>
  • Loading branch information
FMarno authored Jun 15, 2024
1 parent e0c7c8c commit f9255b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ constexpr int patternBenefitDefault = 1;
constexpr int patternBenefitPrioritizeOverLLVMConversions = 10;
constexpr int patternBenefitClampOptimizedPattern = 20;
constexpr int patternBenefitConvertLayoutOptimizedPattern = 20;
constexpr int patternBenefitAddSPIRVEnv = 30;

void populateElementwiseOpToLLVMPatterns(
LLVMTypeConverter &typeConverter, RewritePatternSet &patterns,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

namespace mlir::triton::intel {

constexpr int patternBenefitAddSPIRVEnv = 30;

void populateTritonOpsToLLVMPatterns(
TritonIntelGPUToLLVMTypeConverter &typeConverter,
RewritePatternSet &patterns, PatternBenefit benefit);
Expand Down

0 comments on commit f9255b4

Please sign in to comment.