-
Notifications
You must be signed in to change notification settings - Fork 91
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][python_setup] Enabled Python build scripts migration #2171
[SYCLomatic][python_setup] Enabled Python build scripts migration #2171
Conversation
dc3bbe7
to
fbd8f17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang/lib/DPCT/MigratePythonSetupScript.cpp
clang/lib/DPCT/MigratePythonSetupScript.h
Has duplicate function's implementation with
clang/lib/DPCT/MigrateCmakeScript.cpp
clang/lib/DPCT/MigrateCmakeScript.h
So, I suggest that:
Create two more files, like:
clang/lib/DPCT/MigrateBuildScript.cpp
clang/lib/DPCT/MigrateBuildScript.cpp
And extract common implementation from MigratePythonSetupScript.cpp and MigrateCmakeScript.cpp to the two files above, so than the duplicate code could be reduced.
faeffd9
to
6fee9fa
Compare
25472c1
to
c74b205
Compare
clang/test/dpct/python_setup_migration/case_001/case_001_framework.cpp
Outdated
Show resolved
Hide resolved
988c66e
to
ccf302e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
clang/tools/dpct/DpctOptRules/python_setup_script_migration_rule.yaml
Outdated
Show resolved
Hide resolved
clang/tools/dpct/DpctOptRules/python_setup_script_migration_rule.yaml
Outdated
Show resolved
Hide resolved
clang/tools/dpct/DpctOptRules/python_setup_script_migration_rule.yaml
Outdated
Show resolved
Hide resolved
clang/tools/dpct/DpctOptRules/python_setup_script_migration_rule.yaml
Outdated
Show resolved
Hide resolved
clang/tools/dpct/DpctOptRules/python_setup_script_migration_rule.yaml
Outdated
Show resolved
Hide resolved
e47e4ce
to
e9a3354
Compare
ace0fa4
to
0ad9293
Compare
ca5583d
to
f4d9b19
Compare
cb5353d
to
b9eeb62
Compare
Initial PR for enabling setup.py migration framework