-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[TF-935] Replaces '-Xllvm -run-jvp-generation' by '-enable-experiment… #27861
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,6 +231,10 @@ static void addCommonFrontendArgs(const ToolChain &TC, const OutputInfo &OI, | |
options::OPT_enable_experimental_dependencies); | ||
inputArgs.AddLastArg(arguments, | ||
options::OPT_experimental_dependency_include_intrafile); | ||
// SWIFT_ENABLE_TENSORFLOW | ||
inputArgs.AddLastArg( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ooo, is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indeed it is missing and it seems to be necessary but since the option is not used anywhere in the code yet (#27446). Honestly, I am not sure what the consequences are of not doing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Me neither 😮
dan-zheng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
arguments, options::OPT_enable_experimental_forward_mode_differentiation); | ||
// SWIFT_ENABLE_TENSORFLOW END | ||
inputArgs.AddLastArg(arguments, | ||
options::OPT_enable_experimental_quasiquotes); | ||
inputArgs.AddLastArg(arguments, options::OPT_package_description_version); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -358,6 +358,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args, | |
if (Args.hasArg(OPT_experimental_dependency_include_intrafile)) | ||
Opts.ExperimentalDependenciesIncludeIntrafileOnes = true; | ||
|
||
// TODO: Ignore if enable-experimental-differentiable-programming is false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I've seen in the code {{-enable-experimental-differentiable-programming}} has been added as frontend option but is not really taken into account to enable/disable AutoDiff capabilities. As soon as the opt is taken into account, we can update this to disable {{EnableExperimentalForwardModeDifferentation}} accordingly. |
||
Opts.EnableExperimentalForwardModeDifferentiation |= | ||
Args.hasArg(OPT_enable_experimental_forward_mode_differentiation); | ||
if (Args.hasArg(OPT_enable_experimental_quasiquotes)) | ||
Opts.EnableExperimentalQuasiquotes = true; | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.