File tree Expand file tree Collapse file tree 5 files changed +21
-59
lines changed
include/mlir/Conversion/SYCLToLLVM Expand file tree Collapse file tree 5 files changed +21
-59
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ namespace mlir {
20
20
class ModuleOp ;
21
21
template <typename T> class OperationPass ;
22
22
23
+ #define GEN_PASS_DECL_CONVERTSYCLTOLLVM
24
+ #include " mlir/Conversion/SYCLPasses.h.inc"
25
+ #undef GEN_PASS_DECL_CONVERTSYCLTOLLVM
26
+
23
27
namespace sycl {
24
28
25
29
// / Creates a pass to convert SYCL operations to the LLVMIR dialect.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
// ===----------------------------------------------------------------------===//
12
12
13
13
#include " mlir/Conversion/SYCLToLLVM/SYCLToLLVMPass.h"
14
- # include " ../PassDetail.h "
14
+
15
15
#include " mlir/Conversion/FuncToLLVM/ConvertFuncToLLVM.h"
16
16
#include " mlir/Conversion/LLVMCommon/TypeConverter.h"
17
17
#include " mlir/Conversion/SYCLToLLVM/SYCLToLLVM.h"
20
20
21
21
using namespace mlir ;
22
22
23
+ namespace mlir {
24
+ #define GEN_PASS_DEF_CONVERTSYCLTOLLVM
25
+ #include " mlir/Conversion/SYCLPasses.h.inc"
26
+ #undef GEN_PASS_DEF_CONVERTSYCLTOLLVM
27
+ } // namespace mlir
28
+
23
29
namespace {
24
30
// / A pass converting MLIR SYCL operations into LLVM dialect.
25
31
class ConvertSYCLToLLVMPass
26
- : public ConvertSYCLToLLVMBase<ConvertSYCLToLLVMPass> {
32
+ : public impl:: ConvertSYCLToLLVMBase<ConvertSYCLToLLVMPass> {
27
33
void runOnOperation () override ;
28
34
};
29
35
} // namespace
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 19
19
#include " mlir/Dialect/SYCL/MethodUtils.h"
20
20
#include " mlir/Dialect/SYCL/Transforms/Passes.h"
21
21
22
- #include " PassDetail.h"
23
22
#include " mlir/Dialect/SYCL/IR/SYCLOps.h"
24
23
#include " mlir/IR/FunctionInterfaces.h"
25
24
#include " mlir/IR/PatternMatch.h"
26
25
#include " mlir/Rewrite/FrozenRewritePatternSet.h"
27
26
#include " mlir/Transforms/GreedyPatternRewriteDriver.h"
28
27
29
28
#include " polygeist/Ops.h"
29
+ #include " llvm/Support/Debug.h"
30
30
31
31
#define DEBUG_TYPE " sycl-method-to-sycl-call"
32
32
33
+ namespace mlir {
34
+ #define GEN_PASS_DEF_SYCLMETHODTOSYCLCALL
35
+ #include " mlir/Dialect/SYCL/Transforms/Passes.h.inc"
36
+ #undef GEN_PASS_DEF_SYCLMETHODTOSYCLCALL
37
+ } // namespace mlir
38
+
33
39
using namespace mlir ;
34
40
using namespace sycl ;
35
41
@@ -207,7 +213,8 @@ static void addSYCLMethodPatterns(RewritePatternSet &patterns) {
207
213
>(patterns);
208
214
}
209
215
210
- struct SYCLMethodToSYCLCall : SYCLMethodToSYCLCallBase<SYCLMethodToSYCLCall> {
216
+ struct SYCLMethodToSYCLCall
217
+ : impl::SYCLMethodToSYCLCallBase<SYCLMethodToSYCLCall> {
211
218
LogicalResult initialize (MLIRContext *context) final {
212
219
RewritePatternSet owningPatterns (context);
213
220
addSYCLMethodPatterns (owningPatterns);
You can’t perform that action at this time.
0 commit comments