[Mlir-commits] [mlir] ab8a4ce - [MLIR] NFC : Move OpenMP dialect include to translation

Kiran Chandramohan llvmlistbot at llvm.org
Tue Nov 3 14:14:27 PST 2020


Author: Kiran Chandramohan
Date: 2020-11-03T22:12:10Z
New Revision: ab8a4cec558562e75e67b133b9316f865c426273

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

LOG: [MLIR] NFC : Move OpenMP dialect include to translation

The OpenMP dialect include is only needed for translation
and is not required in LLVM dialect.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D90510

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
    mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h b/mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
index 5c16f33e9fc0..f321659b8d87 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
+++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h
@@ -15,7 +15,6 @@
 #define MLIR_DIALECT_LLVMIR_LLVMDIALECT_H_
 
 #include "mlir/Dialect/LLVMIR/LLVMTypes.h"
-#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
 #include "mlir/IR/Dialect.h"
 #include "mlir/IR/Function.h"
 #include "mlir/IR/OpDefinition.h"

diff  --git a/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp b/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
index cadd172ace89..8f22b734538e 100644
--- a/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
+++ b/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
@@ -12,6 +12,7 @@
 
 #include "mlir/Target/LLVMIR.h"
 
+#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
 #include "mlir/Target/LLVMIR/ModuleTranslation.h"
 #include "mlir/Translation.h"
 


        


More information about the Mlir-commits mailing list