Skip to content

[MLIR] Remove unnecessary include from MathToEmitC.h to fix build issue #125466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

recursion-man
Copy link
Contributor

This removes the unnecessary inclusion of mlir/Dialect/EmitC/IR/EmitC.h from MathToEmitC.h, which caused a build failure due to a missing EmitCEnums.h.inc. The include was not needed, and removing it resolves the issue without requiring additional dependencies.

@llvmbot
Copy link
Member

llvmbot commented Feb 3, 2025

@llvm/pr-subscribers-mlir-emitc

@llvm/pr-subscribers-mlir

Author: Tomer Solomon (recursion-man)

Changes

This removes the unnecessary inclusion of mlir/Dialect/EmitC/IR/EmitC.h from MathToEmitC.h, which caused a build failure due to a missing EmitCEnums.h.inc. The include was not needed, and removing it resolves the issue without requiring additional dependencies.


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

1 Files Affected:

  • (modified) mlir/include/mlir/Conversion/MathToEmitC/MathToEmitC.h (-1)
diff --git a/mlir/include/mlir/Conversion/MathToEmitC/MathToEmitC.h b/mlir/include/mlir/Conversion/MathToEmitC/MathToEmitC.h
index 0fc33bf790be4e..c61773026ca53d 100644
--- a/mlir/include/mlir/Conversion/MathToEmitC/MathToEmitC.h
+++ b/mlir/include/mlir/Conversion/MathToEmitC/MathToEmitC.h
@@ -8,7 +8,6 @@
 
 #ifndef MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
 #define MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
-#include "mlir/Dialect/EmitC/IR/EmitC.h"
 namespace mlir {
 class RewritePatternSet;
 namespace emitc {

@MacDue MacDue merged commit 3ab1880 into llvm:main Feb 3, 2025
11 checks passed
Copy link
Contributor

@RoboTux RoboTux left a comment

Choose a reason for hiding this comment

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

LGTM

Icohedron pushed a commit to Icohedron/llvm-project that referenced this pull request Feb 11, 2025
…ue (llvm#125466)

This removes the unnecessary inclusion of mlir/Dialect/EmitC/IR/EmitC.h
from MathToEmitC.h, which caused a build failure due to a missing
EmitCEnums.h.inc. The include was not needed, and removing it resolves
the issue without requiring additional dependencies.
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.

5 participants