This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 177
WIP: [Swift+WASM] patches to support compiling Swift to WebAssembly #155
Draft
zhuowei
wants to merge
8
commits into
apple:stable
Choose a base branch
from
swiftwasm:stable-swiftwasm
base: stable
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Oct 22, 2019
-
WebAssembly: enable Swift calling convention in ISelLowering, ignore …
…hot/cold split directives
Configuration menu - View commit details
-
Copy full SHA for 3b0b6ef - Browse repository at this point
Copy the full SHA 3b0b6efView commit details -
write Clang precompiled headers to a custom section
This doesn't fix the alignment issue yet. See https://bugs.llvm.org/show_bug.cgi?id=35928 and https://reviews.llvm.org/D42233.
Configuration menu - View commit details
-
Copy full SHA for 662f79a - Browse repository at this point
Copy the full SHA 662f79aView commit details -
WebAssembly: pad __clangast section to 4 bytes
Like Patcheng's https://reviews.llvm.org/D42233 but for Custom Sections instead padding for the padding gods.
Configuration menu - View commit details
-
Copy full SHA for f4445ac - Browse repository at this point
Copy the full SHA f4445acView commit details -
WebAssembly: attempt to fix non-SymbolExpr relocations
Also try hard to extract a symbol from a MCExpr when writing relocations I doubt this is the right way, but hey it emits an object now
Configuration menu - View commit details
-
Copy full SHA for e5a7798 - Browse repository at this point
Copy the full SHA e5a7798View commit details -
WebAssembly: add logging when I get a BinaryExpr
I actually do need to know what's breaking.
Configuration menu - View commit details
-
Copy full SHA for 0c8f940 - Browse repository at this point
Copy the full SHA 0c8f940View commit details -
WebAssembly: properly handle MCBinaryExpr in aliased symbols
Swift uses aliased symbols to refer to offsets within metadata structures. eg ``` @"$s12SwiftPrivate28_stdlib_ShardedAtomicCounterVN" = alias %swift.type, bitcast (i32* getelementptr inbounds (<{ i8**, i32, <{ i32, i32, i32, i32, i32, i32, i32 }>*, i32, i32 }>, <{ i8**, i32, <{ i32, i32, i32, i32, i32, i32, i32 }>*, i32, i32 }>* @"$s12SwiftPrivate28_stdlib_ShardedAtomicCounterVMf", i32 0, i32 1) to %swift.type*) ``` My previous commit only got the alias to refer to the correct target symbol, but not at the right offset. This commit properly emits these symbols. With this change, print("hello world") works but print() with anything else is still broken.
Configuration menu - View commit details
-
Copy full SHA for d7a9e68 - Browse repository at this point
Copy the full SHA d7a9e68View commit details -
Revert "WebAssembly: add logging when I get a BinaryExpr"
Don't need the logging anymore This reverts commit 8b8f31f.
Configuration menu - View commit details
-
Copy full SHA for 0ed50bf - Browse repository at this point
Copy the full SHA 0ed50bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25e9748 - Browse repository at this point
Copy the full SHA 25e9748View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.