Skip to content

[Swift Rebranch] Cherry-picking swift changes from next branch #38326

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

Merged
merged 11 commits into from
Jul 12, 2021

Conversation

etcwilde
Copy link
Member

@etcwilde etcwilde commented Jul 9, 2021

This is a mega-merge of the necessary commits from the swift-next branch that were required to get things building.
These changes were merged into the next branch in the following PRs:

This is getting me pretty close to having things building locally. I'm seeing the build failure associated with swiftlang/llvm-project#3060, and still seeing the crashes that were associated with swiftlang/llvm-project#3074 so I think we need to go poke that repo to get much further. I am seeing some additional crashes in the coroutine splitting that 3074 doesn't fix, so we may need additional fixes for that.

etcwilde added 9 commits July 8, 2021 16:42
OptTable::PrintName was renamed 'printName' in commit f1e2d58.
Clang updated the naming in commit
aef5d8f in order to be more consistent
with c++11 category naming.
Same issue as with TBDGen. Clang doesn't hold onto the Datalayout object
anymore, but instead keeps the description string that is constructed on
the fly. This patch updates IRGen to behave the same way.
This patch fixes the call to get the datalayout from the clang module.
Clang no longer holds onto the DataLayout object, so we have to do that
if we want to keep it around. Rather than instanciating it early, we can
just hold onto the string description, which clang does keep around, and
only construct the actual DataLayout once we need it.
We only see this failure in one file, so I've added a static
implementation there. Should take care of that issue.
Something happened so that's not being transitively included. Adding it
in explicitly.
LLVM commit 3adb89b updated the API of
this function to take a reference to a `SmallVectorImpl` instead of a
set to ensure that it behaves deterministically.
…x-sil-writing

[Swift Next] Fix SIL writing
…', 'ewilde/rebranch/datalayout', 'ewilde/rebranch/withNullAsEmpty', 'ewilde/rebranch/format', 'ewilde/rebranch/collectUsedGlobals' and 'ewilde/rebranch/SILSerialization' into ewilde/swift-rebranch
@etcwilde etcwilde requested a review from edymtt July 9, 2021 01:25
@etcwilde
Copy link
Member Author

etcwilde commented Jul 9, 2021

@swift-ci please smoke test

@edymtt
Copy link
Contributor

edymtt commented Jul 9, 2021

@swift-ci please smoke test

@edymtt
Copy link
Contributor

edymtt commented Jul 9, 2021

Retesting after merging swiftlang/llvm-project#3080

@etcwilde
Copy link
Member Author

etcwilde commented Jul 9, 2021

It looks like the auto merger is blocked. Investigating now.

etcwilde added 2 commits July 9, 2021 13:19
Adjust now takes the diagnostic engine and the language options.
Actually pass those in now too.
@etcwilde
Copy link
Member Author

etcwilde commented Jul 9, 2021

I'm missing the fixes for the TargetInfo::adjust API change. Update coming soon after I verify that I have everything locally.

@etcwilde
Copy link
Member Author

@swift-ci please smoke test

@etcwilde
Copy link
Member Author

I'm going to go ahead and merge this so that we can break the dependency cycle with the rebranch auto merger. Once it runs cleanly, we should start seeing failures from the compiler rather than build failures.

@etcwilde etcwilde merged commit c75d198 into swiftlang:rebranch Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants