Skip to content

Sema: Use PointerEmbeddedInt instead of Fixnum #3009

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
Jun 15, 2016

Conversation

compnerd
Copy link
Member

What's in this pull request?

Resolved bug number: (SR-)


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

PointerEmbeddedInt is provided by stock LLVM and serves the same purpose. This
updates the coersion function to use that rather than the swift specific Fixnum.
Furthermore, this type has been removed in the future in favour of the
PointerEmbeddedInt type, which makes this change something which will be needed
when rebasing to a newer LLVM release.

PointerEmbeddedInt is provided by stock LLVM and serves the same purpose.  This
updates the coersion function to use that rather than the swift specific Fixnum.
Furthermore, this type has been removed in the future in favour of the
PointerEmbeddedInt type, which makes this change something which will be needed
when rebasing to a newer LLVM release.
@compnerd
Copy link
Member Author

This is primarily motivated by master-next, but should apply to master cleanly anyways. master-next does not yet contain @DougGregor's change 2b7d0f9 which introduced a new use of Fixnum which has been removed on master-next in favor of llvm::PointerEmbeddedInt.

CC @gottesmm

@jrose-apple
Copy link
Contributor

@swift-ci Please smoke test

@compnerd
Copy link
Member Author

ping?

@jrose-apple
Copy link
Contributor

Hey, it's WWDC week. :-)

@jrose-apple jrose-apple merged commit a592a78 into swiftlang:master Jun 15, 2016
@lattner
Copy link
Contributor

lattner commented Jun 21, 2016

Cool, thanks for fixing this @compnerd! Can Fixnum go away completely?

@compnerd
Copy link
Member Author

@lattner my pleasure :-). Yes; I just sent a PR to swift-llvm master to remove the Fixnum header to avoid accidental dependencies in the future. apple/swift-llvm#11

@lattner
Copy link
Contributor

lattner commented Jun 22, 2016

Cool, keep up the great work!

@compnerd compnerd deleted the fixnum branch July 3, 2016 17:14
kateinoigakukun added a commit to kateinoigakukun/swift that referenced this pull request Sep 5, 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.

3 participants