[PATCH] D93485: [openacc] Rename generated file from ACC.cpp.inc to ACC.inc to match D92955
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 12:38:07 PST 2020
clementval created this revision.
clementval added reviewers: jdoerfert, sameeranjoshi, kiranchandramohan, kiranktp.
Herald added a subscriber: mgorny.
clementval requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch rename the tablegen generated file ACC.cpp.inc to ACC.inc in order
to match what was done in D92955 <https://reviews.llvm.org/D92955>. This file is included in header file as well as .cpp
file so it make more sense.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93485
Files:
flang/include/flang/Parser/dump-parse-tree.h
flang/include/flang/Parser/parse-tree.h
flang/lib/Parser/unparse.cpp
flang/lib/Semantics/check-acc-structure.h
llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt
llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
Index: llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
+++ llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
@@ -9,7 +9,7 @@
tablegen("ACCcpp") {
visibility = [ ":acc_gen" ]
args = [ "-gen-directive-gen" ]
- output_name = "ACC.cpp.inc"
+ output_name = "ACC.inc"
td_file = "ACC.td"
}
Index: llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt
===================================================================
--- llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt
+++ llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt
@@ -1,4 +1,4 @@
set(LLVM_TARGET_DEFINITIONS ACC.td)
tablegen(LLVM ACC.h.inc --gen-directive-decl)
-tablegen(LLVM ACC.cpp.inc --gen-directive-gen)
+tablegen(LLVM ACC.inc --gen-directive-gen)
add_public_tablegen_target(acc_gen)
Index: flang/lib/Semantics/check-acc-structure.h
===================================================================
--- flang/lib/Semantics/check-acc-structure.h
+++ flang/lib/Semantics/check-acc-structure.h
@@ -27,7 +27,7 @@
Fortran::common::EnumSet<llvm::acc::Clause, llvm::acc::Clause_enumSize>;
#define GEN_FLANG_DIRECTIVE_CLAUSE_SETS
-#include "llvm/Frontend/OpenACC/ACC.cpp.inc"
+#include "llvm/Frontend/OpenACC/ACC.inc"
namespace Fortran::semantics {
@@ -38,7 +38,7 @@
AccStructureChecker(SemanticsContext &context)
: DirectiveStructureChecker(context,
#define GEN_FLANG_DIRECTIVE_CLAUSE_MAP
-#include "llvm/Frontend/OpenACC/ACC.cpp.inc"
+#include "llvm/Frontend/OpenACC/ACC.inc"
) {
}
Index: flang/lib/Parser/unparse.cpp
===================================================================
--- flang/lib/Parser/unparse.cpp
+++ flang/lib/Parser/unparse.cpp
@@ -1831,7 +1831,7 @@
Word(llvm::acc::getOpenACCDirectiveName(x).str());
}
#define GEN_FLANG_CLAUSE_UNPARSE
-#include "llvm/Frontend/OpenACC/ACC.cpp.inc"
+#include "llvm/Frontend/OpenACC/ACC.inc"
void Unparse(const AccObjectListWithModifier &x) {
Walk(std::get<std::optional<AccDataModifier>>(x.t), ":");
Walk(std::get<AccObjectList>(x.t));
Index: flang/include/flang/Parser/parse-tree.h
===================================================================
--- flang/include/flang/Parser/parse-tree.h
+++ flang/include/flang/Parser/parse-tree.h
@@ -3928,13 +3928,13 @@
UNION_CLASS_BOILERPLATE(AccClause);
#define GEN_FLANG_CLAUSE_PARSER_CLASSES
-#include "llvm/Frontend/OpenACC/ACC.cpp.inc"
+#include "llvm/Frontend/OpenACC/ACC.inc"
CharBlock source;
std::variant<
#define GEN_FLANG_CLAUSE_PARSER_CLASSES_LIST
-#include "llvm/Frontend/OpenACC/ACC.cpp.inc"
+#include "llvm/Frontend/OpenACC/ACC.inc"
>
u;
};
Index: flang/include/flang/Parser/dump-parse-tree.h
===================================================================
--- flang/include/flang/Parser/dump-parse-tree.h
+++ flang/include/flang/Parser/dump-parse-tree.h
@@ -65,7 +65,7 @@
NODE(parser, AccBlockDirective)
NODE(parser, AccClause)
#define GEN_FLANG_DUMP_PARSE_TREE_CLAUSES
-#include "llvm/Frontend/OpenACC/ACC.cpp.inc"
+#include "llvm/Frontend/OpenACC/ACC.inc"
NODE(parser, AccBindClause)
NODE(parser, AccDefaultClause)
NODE_ENUM(parser::AccDefaultClause, Arg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93485.312586.patch
Type: text/x-patch
Size: 3337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201217/ba2f4bb2/attachment.bin>
More information about the llvm-commits
mailing list