-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OpenACC][NFC] Implement basic OpenACC Sema infrastructure (#81874)
This patch is split off from #81659, and contains just the Sema infrastructure that we can later use to implement semantic analysis of OpenACC constructs.
- Loading branch information
1 parent
f872706
commit 24144d7
Showing
5 changed files
with
142 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
//===--- SemaOpenACC.cpp - Semantic Analysis for OpenACC constructs -------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
/// \file | ||
/// This file implements semantic analysis for OpenACC constructs and | ||
/// clauses. | ||
/// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "clang/Basic/OpenACCKinds.h" | ||
#include "clang/Sema/Sema.h" | ||
|
||
using namespace clang; | ||
bool Sema::ActOnOpenACCClause(OpenACCClauseKind ClauseKind, | ||
SourceLocation StartLoc) { | ||
return true; | ||
} | ||
void Sema::ActOnOpenACCConstruct(OpenACCDirectiveKind K, | ||
SourceLocation StartLoc) {} | ||
|
||
bool Sema::ActOnStartOpenACCStmtDirective(OpenACCDirectiveKind K, | ||
SourceLocation StartLoc) { | ||
return true; | ||
} | ||
|
||
StmtResult Sema::ActOnEndOpenACCStmtDirective(OpenACCDirectiveKind K, | ||
SourceLocation StartLoc, | ||
SourceLocation EndLoc, | ||
StmtResult AssocStmt) { | ||
return StmtEmpty(); | ||
} | ||
|
||
StmtResult Sema::ActOnOpenACCAssociatedStmt(OpenACCDirectiveKind K, | ||
StmtResult AssocStmt) { | ||
return AssocStmt; | ||
} | ||
|
||
bool Sema::ActOnStartOpenACCDeclDirective(OpenACCDirectiveKind K, | ||
SourceLocation StartLoc) { | ||
return true; | ||
} | ||
|
||
DeclGroupRef Sema::ActOnEndOpenACCDeclDirective() { return DeclGroupRef{}; } |