[Mlir-commits] [mlir] 3ec1f25 - [MLIR/OpenACC] Remove unneeded LLVMIR include (#84543)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Mar 10 06:09:42 PDT 2024
Author: Thomas Preud'homme
Date: 2024-03-10T13:09:38Z
New Revision: 3ec1f25f3cf9346590892397ec9ddd859397d363
URL: https://github.com/llvm/llvm-project/commit/3ec1f25f3cf9346590892397ec9ddd859397d363
DIFF: https://github.com/llvm/llvm-project/commit/3ec1f25f3cf9346590892397ec9ddd859397d363.diff
LOG: [MLIR/OpenACC] Remove unneeded LLVMIR include (#84543)
MLIROpenACCTransforms does not use the LLVMIR dialect yet includes
LLVMIR headers. This causes building MLIROpenACCTransforms only from a
clean build to fail with:
In file included from
mlir/lib/Dialect/OpenACC/Transforms/LegalizeData.cpp:9:
In file included from
mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h:12:
mlir/include/mlir/Dialect/LLVMIR/Transforms/AddComdats.h:21:10: fatal
error: 'mlir/Dialect/LLVMIR/Transforms/Passes.h.inc' file not found
This patch removes the problematic includes.
Added:
Modified:
mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h b/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h
index 5a11056cda6095..bb93c78bf6eadf 100644
--- a/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h
+++ b/mlir/include/mlir/Dialect/OpenACC/Transforms/Passes.h
@@ -9,11 +9,6 @@
#ifndef MLIR_DIALECT_OPENACC_TRANSFORMS_PASSES_H
#define MLIR_DIALECT_OPENACC_TRANSFORMS_PASSES_H
-#include "mlir/Dialect/LLVMIR/Transforms/AddComdats.h"
-#include "mlir/Dialect/LLVMIR/Transforms/LegalizeForExport.h"
-#include "mlir/Dialect/LLVMIR/Transforms/OptimizeForNVVM.h"
-#include "mlir/Dialect/LLVMIR/Transforms/RequestCWrappers.h"
-#include "mlir/Dialect/LLVMIR/Transforms/TypeConsistency.h"
#include "mlir/Pass/Pass.h"
#define GEN_PASS_DECL
More information about the Mlir-commits
mailing list