Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCLomatic][NFC] Further refine DPCT file structure. #2472

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions clang/lib/DPCT/ASTTraversal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
#include "AnalysisInfo.h"
#include "RulesAsm/AsmMigration.h"
#include "RulesLang/BarrierFenceSpaceAnalyzer.h"
#include "CallExprRewriter.h"
#include "CallExprRewriterCommon.h"
#include "RuleInfra/CallExprRewriter.h"
#include "RuleInfra/CallExprRewriterCommon.h"
#include "RulesDNN/DNNAPIMigration.h"
#include "ExprAnalysis.h"
#include "RuleInfra/ExprAnalysis.h"
#include "RulesMathLib/FFTAPIMigration.h"
#include "CodePin/GenCodePinHeader.h"
#include "RulesLang/GroupFunctionAnalyzer.h"
#include "RulesSecurity/Homoglyph.h"
#include "RulesLangLib/LIBCUAPIMigration.h"
#include "MemberExprRewriter.h"
#include "RuleInfra/MemberExprRewriter.h"
#include "MigrationRuleManager.h"
#include "RulesSecurity/MisleadingBidirectional.h"
#include "RulesCCL/NCCLAPIMigration.h"
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/ASTTraversal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "Diagnostics/Diagnostics.h"
#include "RulesMathLib/FFTAPIMigration.h"
#include "RulesInclude/InclusionHeaders.h"
#include "MapNames.h"
#include "RuleInfra/MapNames.h"
#include "TextModification.h"
#include "Utility.h"

Expand Down
4 changes: 2 additions & 2 deletions clang/lib/DPCT/AnalysisInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "AnalysisInfo.h"
#include "Diagnostics/Diagnostics.h"
#include "ExprAnalysis.h"
#include "MapNames.h"
#include "RuleInfra/ExprAnalysis.h"
#include "RuleInfra/MapNames.h"
#include "Statics.h"
#include "TextModification.h"
#include "Utility.h"
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/DPCT/AnalysisInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define DPCT_ANALYSIS_INFO_H

#include "ErrorHandle/Error.h"
#include "ExprAnalysis.h"
#include "RuleInfra/ExprAnalysis.h"
#include "ExtReplacements.h"
#include "RulesInclude/InclusionHeaders.h"
#include "LibraryAPIMigration.h"
Expand All @@ -19,7 +19,7 @@
#include "Statics.h"
#include "TextModification.h"
#include "Utility.h"
#include "ValidateArguments.h"
#include "CommandOption/ValidateArguments.h"
#include <bitset>
#include <memory>
#include <optional>
Expand Down
22 changes: 11 additions & 11 deletions clang/lib/DPCT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ add_custom_target(gen_mapping_register
COMMAND "${CMAKE_COMMAND}"
-DTARGET="${API_MAPPING_REGISTER_FOLDER}APIMappingRegister.def"
-DSRC_DIRECTORY="${CMAKE_CURRENT_SOURCE_DIR}/../../examples/DPCT/"
-P ${CMAKE_CURRENT_SOURCE_DIR}/APIMapping/GenerateRegister.cmake
-P ${CMAKE_CURRENT_SOURCE_DIR}/QueryAPIMapping/GenerateRegister.cmake
DEPENDS ${SRC_FILES})
include_directories(
${API_MAPPING_REGISTER_FOLDER}
Expand Down Expand Up @@ -146,7 +146,7 @@ add_clang_library(DPCT
RulesLang/Math/RewriterCXXAPIRoutines.cpp
RulesLang/Math/RewriterOverload.cpp
RulesLang/RewriterSYCLcompat.cpp
CallExprRewriter.cpp
RuleInfra/CallExprRewriter.cpp
RulesLang/CallExprRewriterAtomic.cpp
RulesMathLib/CallExprRewriterCUFFT.cpp
RulesMathLib/CallExprRewriterCUBLAS.cpp
Expand Down Expand Up @@ -174,21 +174,21 @@ add_clang_library(DPCT
Diagnostics/Diagnostics.cpp
ErrorHandle/Error.cpp
Statics.cpp
ExprAnalysis.cpp
RuleInfra/ExprAnalysis.cpp
ExtReplacements.cpp
MapNames.cpp
RuleInfra/MapNames.cpp
FileGenerator/GenFiles.cpp
DPCT.cpp
DpctOptions.cpp
CommandOption/DpctOptions.cpp
TextModification.cpp
Utility.cpp
ValidateArguments.cpp
ExternalReplacement.cpp
CommandOption/ValidateArguments.cpp
IncMigration/ExternalReplacement.cpp
Windows/VcxprojParser.cpp
LibraryAPIMigration.cpp
MigrateScript/GenMakefile.cpp
RulesInclude/InclusionHeaders.cpp
IncrementalMigrationUtility.cpp
IncMigration/IncrementalMigrationUtility.cpp
UserDefinedRules/UserDefinedRules.cpp
UserDefinedRules/PatternRewriter.cpp
MigrateScript/MigrateBuildScript.cpp
Expand All @@ -201,18 +201,18 @@ add_clang_library(DPCT
RulesMathLib/FFTAPIMigration.cpp
RulesDNN/DNNAPIMigration.cpp
RulesCCL/NCCLAPIMigration.cpp
TypeLocRewriters.cpp
RuleInfra/TypeLocRewriters.cpp
Linux/AutoComplete.cpp
RulesAsm/AsmMigration.cpp
APIMapping/QueryAPIMapping.cpp
QueryAPIMapping/QueryAPIMapping.cpp
RulesAsm/Parser/AsmNodes.cpp
RulesAsm/Parser/AsmLexer.cpp
RulesAsm/Parser/AsmParser.cpp
RulesAsm/Parser/AsmIdentifierTable.cpp
RulesAsm/Parser/AsmTokenKinds.cpp
RulesLangLib/LIBCUAPIMigration.cpp
RulesLangLib/CUBAPIMigration.cpp
MemberExprRewriter.cpp
RuleInfra/MemberExprRewriter.cpp
MigrationRuleManager.cpp
MigrationAction.cpp
RulesLangLib/ThrustAPIMigration.cpp
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/CodePin/GenCodePinHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ASTTraversal.h"
#include "AnalysisInfo.h"
#include "Diagnostics/Diagnostics.h"
#include "MapNames.h"
#include "RuleInfra/MapNames.h"
#include "Statics.h"
#include "clang/AST/Expr.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "ValidateArguments.h"
#include "CommandOption/ValidateArguments.h"
#include "ErrorHandle/Error.h"
#include "Statics.h"
#include "Utility.h"
Expand Down
14 changes: 7 additions & 7 deletions clang/lib/DPCT/DPCT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
//===----------------------------------------------------------------------===//

#include "clang/DPCT/DPCT.h"
#include "APIMapping/QueryAPIMapping.h"
#include "QueryAPIMapping/QueryAPIMapping.h"
#include "ASTTraversal.h"
#include "AnalysisInfo.h"
#include "Linux/AutoComplete.h"
#include "CallExprRewriter.h"
#include "RuleInfra/CallExprRewriter.h"
#include "Config.h"
#include "ErrorHandle/CrashRecovery.h"
#include "ErrorHandle/Error.h"
#include "ExternalReplacement.h"
#include "IncMigration/ExternalReplacement.h"
#include "FileGenerator/GenHelperFunction.h"
#include "MigrateScript/GenMakefile.h"
#include "IncrementalMigrationUtility.h"
#include "MemberExprRewriter.h"
#include "IncMigration/IncrementalMigrationUtility.h"
#include "RuleInfra/MemberExprRewriter.h"
#include "MigrateScript/MigrateCmakeScript.h"
#include "MigrateScript/MigratePythonBuildScript.h"
#include "MigrationAction.h"
Expand All @@ -28,9 +28,9 @@
#include "UserDefinedRules/UserDefinedRules.h"
#include "FileGenerator/GenFiles.h"
#include "Statics.h"
#include "TypeLocRewriters.h"
#include "RuleInfra/TypeLocRewriters.h"
#include "Utility.h"
#include "ValidateArguments.h"
#include "CommandOption/ValidateArguments.h"
#include "Windows/VcxprojParser.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/FileGenerator/GenFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "AnalysisInfo.h"
#include "ErrorHandle/CrashRecovery.h"
#include "Diagnostics/Diagnostics.h"
#include "ExternalReplacement.h"
#include "IncMigration/ExternalReplacement.h"
#include "MigrateScript/GenMakefile.h"
#include "UserDefinedRules/PatternRewriter.h"
#include "Statics.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "llvm/Support/Path.h"

#include "ExternalReplacement.h"
#include "IncrementalMigrationUtility.h"
#include "IncMigration/IncrementalMigrationUtility.h"
#include "clang/Tooling/Core/Diagnostic.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/ReplacementsYaml.h"
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/LibraryAPIMigration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "LibraryAPIMigration.h"
#include "AnalysisInfo.h"
#include "Diagnostics/Diagnostics.h"
#include "MapNames.h"
#include "RuleInfra/MapNames.h"
#include "Utility.h"

#include "clang/AST/Attr.h"
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/DPCT/LibraryAPIMigration.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef DPCT_LIBRARY_API_MIGRATION_H
#define DPCT_LIBRARY_API_MIGRATION_H

#include "ExprAnalysis.h"
#include "MapNames.h"
#include "RuleInfra/ExprAnalysis.h"
#include "RuleInfra/MapNames.h"

#include "clang/AST/Attr.h"
#include "clang/AST/Decl.h"
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/MigrateScript/GenMakefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "Diagnostics/Diagnostics.h"
#include "FileGenerator/GenFiles.h"
#include "Utility.h"
#include "ValidateArguments.h"
#include "CommandOption/ValidateArguments.h"

#include "ToolChains/Cuda.h"
#include "clang/Driver/Driver.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "CallExprRewriter.h"
#include "CallExprRewriterCommon.h"
#include "RuleInfra/CallExprRewriter.h"
#include "RuleInfra/CallExprRewriterCommon.h"
#include <memory>

namespace clang {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include "ASTTraversal.h"
#include "AnalysisInfo.h"
#include "RulesMathLib/BLASAPIMigration.h"
#include "CallExprRewriter.h"
#include "RuleInfra/CallExprRewriter.h"
#include "Config.h"
#include "ExprAnalysis.h"
#include "MapNames.h"
#include "RuleInfra/ExprAnalysis.h"
#include "RuleInfra/MapNames.h"
#include "Utility.h"
#include "ToolChains/Cuda.h"
#include "clang/AST/Attr.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
//
//===----------------------------------------------------------------------===//

#include "ExprAnalysis.h"
#include "RuleInfra/ExprAnalysis.h"

#include "ASTTraversal.h"
#include "AnalysisInfo.h"
#include "RulesLangLib/CUBAPIMigration.h"
#include "CallExprRewriter.h"
#include "RuleInfra/CallExprRewriter.h"
#include "Config.h"
#include "RulesDNN/DNNAPIMigration.h"
#include "MemberExprRewriter.h"
#include "TypeLocRewriters.h"
#include "RuleInfra/MemberExprRewriter.h"
#include "RuleInfra/TypeLocRewriters.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprConcepts.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "MapNames.h"
#include "RuleInfra/MapNames.h"
#include "ASTTraversal.h"
#include "CallExprRewriter.h"
#include "RuleInfra/CallExprRewriter.h"
#include "RulesDNN/DNNAPIMigration.h"
#include "FileGenerator/GenFiles.h"
#include <map>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "UserDefinedRules/UserDefinedRules.h"
#include "Utility.h"
#include "ValidateArguments.h"
#include "CommandOption/ValidateArguments.h"
#include <map>
#include <set>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "MemberExprRewriter.h"
#include "RuleInfra/MemberExprRewriter.h"
#include "AnalysisInfo.h"
#include "MapNames.h"
#include "RuleInfra/MapNames.h"

namespace clang {
namespace dpct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef DPCT_MEMBEREXPR_H
#define DPCT_MEMBEREXPR_H

#include "CallExprRewriter.h"
#include "RuleInfra/CallExprRewriter.h"

namespace clang {
namespace dpct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "TypeLocRewriters.h"
#include "RuleInfra/TypeLocRewriters.h"
#include "UserDefinedRules/UserDefinedRules.h"
#include "clang/AST/TypeLoc.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "CallExprRewriter.h"
#include "RuleInfra/CallExprRewriter.h"
#include <memory>

namespace clang {
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/RulesAsm/AsmMigration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "RulesAsm/Parser/AsmTokenKinds.h"
#include "ErrorHandle/CrashRecovery.h"
#include "Diagnostics/Diagnostics.h"
#include "MapNames.h"
#include "RuleInfra/MapNames.h"
#include "TextModification.h"
#include "Utility.h"
#include "clang/AST/Expr.h"
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/DPCT/RulesCCL/CallExprRewriterNccl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "CallExprRewriter.h"
#include "CallExprRewriterCommon.h"
#include "RuleInfra/CallExprRewriter.h"
#include "RuleInfra/CallExprRewriterCommon.h"

namespace clang {
namespace dpct {
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/RulesCCL/NCCLAPIMigration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "NCCLAPIMigration.h"

#include "ASTTraversal.h"
#include "ExprAnalysis.h"
#include "RuleInfra/ExprAnalysis.h"
#include "MigrationRuleManager.h"

using namespace clang::dpct;
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/DPCT/RulesDNN/CallExprRewriterCUDNN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "CallExprRewriter.h"
#include "CallExprRewriterCommon.h"
#include "RuleInfra/CallExprRewriter.h"
#include "RuleInfra/CallExprRewriterCommon.h"

namespace clang {
namespace dpct {
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/DPCT/RulesDNN/DNNAPIMigration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "AnalysisInfo.h"
#include "Diagnostics/Diagnostics.h"
#include "Statics.h"
#include "MapNames.h"
#include "RuleInfra/MapNames.h"
#include "clang/AST/Expr.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Preprocessor.h"
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/DPCT/RulesLang/CallExprRewriterAtomic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "CallExprRewriter.h"
#include "CallExprRewriterCommon.h"
#include "RuleInfra/CallExprRewriter.h"
#include "RuleInfra/CallExprRewriterCommon.h"

namespace clang {
namespace dpct {
Expand Down
Loading
Loading