1 //===- ConvertOpenACCToSCF.h - OpenACC conversion pass entrypoint ---------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #ifndef MLIR_CONVERSION_OPENACCTOSCF_CONVERTOPENACCTOSCF_H 9 #define MLIR_CONVERSION_OPENACCTOSCF_CONVERTOPENACCTOSCF_H 10 11 #include <memory> 12 13 namespace mlir { 14 class ModuleOp; 15 template <typename T> 16 class OperationPass; 17 class RewritePatternSet; 18 19 #define GEN_PASS_DECL_CONVERTOPENACCTOSCF 20 #include "mlir/Conversion/Passes.h.inc" 21 22 /// Collect the patterns to convert from the OpenACC dialect to OpenACC with 23 /// SCF dialect. 24 void populateOpenACCToSCFConversionPatterns(RewritePatternSet &patterns); 25 26 /// Create a pass to convert the OpenACC dialect into the LLVMIR dialect. 27 std::unique_ptr<OperationPass<ModuleOp>> createConvertOpenACCToSCFPass(); 28 29 } // namespace mlir 30 31 #endif // MLIR_CONVERSION_OPENACCTOSCF_CONVERTOPENACCTOSCF_H 32