-
Notifications
You must be signed in to change notification settings - Fork 770
[SYCL][Driver] Update fsycl-dump-device-code option name. #18605
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
base: sycl
Are you sure you want to change the base?
Conversation
How about changing "device" to "offload"? Final name: |
Can we also drop "dump" from the naming and use "save" instead? |
@@ -7297,7 +7297,7 @@ defm sycl_allow_device_image_dependencies: BoolOptionWithoutMarshalling<"f", "sy | |||
PosFlag<SetTrue, [], [ClangOption], "Allow dependencies between device code images">, | |||
NegFlag<SetFalse, [], [ClangOption], "Do not allow dependencies between device code images (default)">>; | |||
|
|||
def fsycl_dump_device_code_EQ : Joined<["-"], "fsycl-dump-device-code=">, | |||
def fdump_device_code_EQ : Joined<["-"], "fdump-device-code=">, |
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.
To reduce the impact to users that are already using -fsycl-dump-device-code
we should first deprecate this option and add -fdump-device-code
. -fsycl-dump-device-code
would then be an alias. This deprecation should also emit a diagnostic on what the preferred option name to use is. Usage would be something like what -fsycl-use-bitcode
does.
We have other 'offload' type options ( |
I prefer |
Update
-fsycl-dump-device-code
option name to a more generic name like-fdump-device-code
, so it can be used to save device code IR files for all offloading models, not just SYCL.