diff --git a/flang/include/flang/Parser/dump-parse-tree.h b/flang/include/flang/Parser/dump-parse-tree.h --- a/flang/include/flang/Parser/dump-parse-tree.h +++ b/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) diff --git a/flang/include/flang/Parser/parse-tree.h b/flang/include/flang/Parser/parse-tree.h --- a/flang/include/flang/Parser/parse-tree.h +++ b/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; }; diff --git a/flang/lib/Parser/unparse.cpp b/flang/lib/Parser/unparse.cpp --- a/flang/lib/Parser/unparse.cpp +++ b/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>(x.t), ":"); Walk(std::get(x.t)); diff --git a/flang/lib/Semantics/check-acc-structure.h b/flang/lib/Semantics/check-acc-structure.h --- a/flang/lib/Semantics/check-acc-structure.h +++ b/flang/lib/Semantics/check-acc-structure.h @@ -27,7 +27,7 @@ Fortran::common::EnumSet; #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" ) { } diff --git a/llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt b/llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt --- a/llvm/include/llvm/Frontend/OpenACC/CMakeLists.txt +++ b/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) diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn --- a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn +++ b/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" }