Skip to content

LoadableByAddress: Add better tuples support #14637

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 1 commit into from
Feb 19, 2018

Conversation

shajrawi
Copy link

rdar://problem/37533053

When working with tuples, if the tuple does not contain a large loadable type but does contain a function signature, we currently do nothing.

We should convert the function signature inside the tuple type instead.

@shajrawi
Copy link
Author

@swift-ci Please test and merge

auto *instToInsert = dyn_cast<UncheckedEnumDataInst>(userIns);
if (std::find(pass.uncheckedEnumDataInstsToMod.begin(),
pass.uncheckedEnumDataInstsToMod.end(),
instToInsert) == pass.uncheckedEnumDataInstsToMod.end()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hint for the future: llvm::is_contained

@shajrawi shajrawi force-pushed the tuples branch 2 times, most recently from fcea46a to 2dc5ce1 Compare February 15, 2018 09:50
@shajrawi
Copy link
Author

@swift-ci Please test and merge

@shajrawi shajrawi force-pushed the tuples branch 2 times, most recently from ca1dd61 to c7def78 Compare February 18, 2018 12:59
@shajrawi
Copy link
Author

@swift-ci Please test and merge

1 similar comment
@shajrawi
Copy link
Author

@swift-ci Please test and merge

@shajrawi
Copy link
Author

@swift-ci Please test linux

1 similar comment
@shajrawi
Copy link
Author

@swift-ci Please test linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - c7def78b4c97800d8af8a735e783ec58943d6be6

@shajrawi
Copy link
Author

@swift-ci Please test linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - c7def78b4c97800d8af8a735e783ec58943d6be6

When working with tuples, if the tuple does not contain a large loadable type but does contain a function signature, we currently do nothing.

We should convert the function signature inside the tuple type instead.
@shajrawi
Copy link
Author

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 0ca90b8 into swiftlang:master Feb 19, 2018
@shajrawi shajrawi deleted the tuples branch February 19, 2018 14:37
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.

3 participants