[Mlir-commits] [mlir] bbc0e63 - [MLIR] Remove unneeded LLVMDialect.h include in ControlFlowToSCF.cpp (#113560)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 25 07:41:42 PDT 2024


Author: Thomas Preud'homme
Date: 2024-10-25T15:41:39+01:00
New Revision: bbc0e631d2d3facd5952aeafc7400761813acc3a

URL: https://github.com/llvm/llvm-project/commit/bbc0e631d2d3facd5952aeafc7400761813acc3a
DIFF: https://github.com/llvm/llvm-project/commit/bbc0e631d2d3facd5952aeafc7400761813acc3a.diff

LOG: [MLIR] Remove unneeded LLVMDialect.h include in ControlFlowToSCF.cpp (#113560)

This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRControlFlowToSCF.a only:
```
In file included from llvm/include/llvm/IR/Module.h:22,
                 from mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:37,
                 from mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp:19
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```

Added: 
    

Modified: 
    mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp b/mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp
index d3ee89743da9db..1c592d665f3e4c 100644
--- a/mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp
+++ b/mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp
@@ -16,7 +16,6 @@
 #include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
 #include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
 #include "mlir/Dialect/Func/IR/FuncOps.h"
-#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
 #include "mlir/Dialect/SCF/IR/SCF.h"
 #include "mlir/Dialect/UB/IR/UBOps.h"
 #include "mlir/Pass/Pass.h"


        


More information about the Mlir-commits mailing list