|
| 1 | +//===----------------------------------------------------------------------===// |
| 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 | +// |
| 9 | +// Emit OpenACC Stmt nodes as CIR code. |
| 10 | +// |
| 11 | +//===----------------------------------------------------------------------===// |
| 12 | + |
| 13 | +#include "CIRGenBuilder.h" |
| 14 | +#include "CIRGenFunction.h" |
| 15 | +#include "clang/AST/StmtOpenACC.h" |
| 16 | + |
| 17 | +using namespace clang; |
| 18 | +using namespace clang::CIRGen; |
| 19 | +using namespace cir; |
| 20 | + |
| 21 | +mlir::LogicalResult |
| 22 | +CIRGenFunction::emitOpenACCComputeConstruct(const OpenACCComputeConstruct &s) { |
| 23 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Compute Construct"); |
| 24 | + return mlir::failure(); |
| 25 | +} |
| 26 | + |
| 27 | +mlir::LogicalResult |
| 28 | +CIRGenFunction::emitOpenACCLoopConstruct(const OpenACCLoopConstruct &s) { |
| 29 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Loop Construct"); |
| 30 | + return mlir::failure(); |
| 31 | +} |
| 32 | +mlir::LogicalResult CIRGenFunction::emitOpenACCCombinedConstruct( |
| 33 | + const OpenACCCombinedConstruct &s) { |
| 34 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Combined Construct"); |
| 35 | + return mlir::failure(); |
| 36 | +} |
| 37 | +mlir::LogicalResult |
| 38 | +CIRGenFunction::emitOpenACCDataConstruct(const OpenACCDataConstruct &s) { |
| 39 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Data Construct"); |
| 40 | + return mlir::failure(); |
| 41 | +} |
| 42 | +mlir::LogicalResult CIRGenFunction::emitOpenACCEnterDataConstruct( |
| 43 | + const OpenACCEnterDataConstruct &s) { |
| 44 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC EnterData Construct"); |
| 45 | + return mlir::failure(); |
| 46 | +} |
| 47 | +mlir::LogicalResult CIRGenFunction::emitOpenACCExitDataConstruct( |
| 48 | + const OpenACCExitDataConstruct &s) { |
| 49 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC ExitData Construct"); |
| 50 | + return mlir::failure(); |
| 51 | +} |
| 52 | +mlir::LogicalResult CIRGenFunction::emitOpenACCHostDataConstruct( |
| 53 | + const OpenACCHostDataConstruct &s) { |
| 54 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC HostData Construct"); |
| 55 | + return mlir::failure(); |
| 56 | +} |
| 57 | +mlir::LogicalResult |
| 58 | +CIRGenFunction::emitOpenACCWaitConstruct(const OpenACCWaitConstruct &s) { |
| 59 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Wait Construct"); |
| 60 | + return mlir::failure(); |
| 61 | +} |
| 62 | +mlir::LogicalResult |
| 63 | +CIRGenFunction::emitOpenACCInitConstruct(const OpenACCInitConstruct &s) { |
| 64 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Init Construct"); |
| 65 | + return mlir::failure(); |
| 66 | +} |
| 67 | +mlir::LogicalResult CIRGenFunction::emitOpenACCShutdownConstruct( |
| 68 | + const OpenACCShutdownConstruct &s) { |
| 69 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Shutdown Construct"); |
| 70 | + return mlir::failure(); |
| 71 | +} |
| 72 | +mlir::LogicalResult |
| 73 | +CIRGenFunction::emitOpenACCSetConstruct(const OpenACCSetConstruct &s) { |
| 74 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Set Construct"); |
| 75 | + return mlir::failure(); |
| 76 | +} |
| 77 | +mlir::LogicalResult |
| 78 | +CIRGenFunction::emitOpenACCUpdateConstruct(const OpenACCUpdateConstruct &s) { |
| 79 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Update Construct"); |
| 80 | + return mlir::failure(); |
| 81 | +} |
| 82 | +mlir::LogicalResult |
| 83 | +CIRGenFunction::emitOpenACCAtomicConstruct(const OpenACCAtomicConstruct &s) { |
| 84 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Atomic Construct"); |
| 85 | + return mlir::failure(); |
| 86 | +} |
| 87 | +mlir::LogicalResult |
| 88 | +CIRGenFunction::emitOpenACCCacheConstruct(const OpenACCCacheConstruct &s) { |
| 89 | + getCIRGenModule().errorNYI(s.getSourceRange(), "OpenACC Cache Construct"); |
| 90 | + return mlir::failure(); |
| 91 | +} |
0 commit comments