Skip to content
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

Feat llvm aarch64 relocs #2599

Merged
merged 26 commits into from
Oct 19, 2021
Merged

Feat llvm aarch64 relocs #2599

merged 26 commits into from
Oct 19, 2021

Conversation

ptitSeb
Copy link
Contributor

@ptitSeb ptitSeb commented Oct 8, 2021

Description

Improved Aarch64 support with LLVM by adding some missing relocations.

Linux/Aarch64 works fine with that, including with Universal engine.
macOS/Aarch64 still have issues with Universal engine.

@ptitSeb ptitSeb requested a review from syrusakbary as a code owner October 8, 2021 12:38
@ptitSeb
Copy link
Contributor Author

ptitSeb commented Oct 11, 2021

bors try

bors bot added a commit that referenced this pull request Oct 11, 2021
@bors
Copy link
Contributor

bors bot commented Oct 11, 2021

try

Build failed:

@ptitSeb
Copy link
Contributor Author

ptitSeb commented Oct 12, 2021

bors try

bors bot added a commit that referenced this pull request Oct 12, 2021
@bors
Copy link
Contributor

bors bot commented Oct 12, 2021

@ptitSeb
Copy link
Contributor Author

ptitSeb commented Oct 12, 2021

bors try

bors bot added a commit that referenced this pull request Oct 12, 2021
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

The PR looks good to me. Waiting on feedback from @Amanieu to approve or request further changes

lib/compiler-llvm/src/config.rs Show resolved Hide resolved
lib/compiler-llvm/src/translator/intrinsics.rs Outdated Show resolved Hide resolved
lib/compiler/src/function.rs Outdated Show resolved Hide resolved
lib/wasi-experimental-io-devices/Cargo.toml Outdated Show resolved Hide resolved
lib/engine-universal/src/link.rs Outdated Show resolved Hide resolved
lib/engine-universal/src/link.rs Outdated Show resolved Hide resolved
@ptitSeb
Copy link
Contributor Author

ptitSeb commented Oct 12, 2021

bors try

@bors
Copy link
Contributor

bors bot commented Oct 12, 2021

try

Already running a review

@bors
Copy link
Contributor

bors bot commented Oct 12, 2021

@@ -303,6 +304,37 @@ impl Compiler for LLVMCompiler {
})
.collect::<PrimaryMap<LocalFunctionIndex, _>>();

let trampolines = match target.triple().architecture {
Architecture::Aarch64(_) => {
let nj = 16;
Copy link
Contributor

Choose a reason for hiding this comment

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

Use onejump.len() instead of hard-coding.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the number of slots hard-coded to 16?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I need to hardcode some value. Cant resize the section later.

lib/compiler-llvm/src/compiler.rs Outdated Show resolved Hide resolved
lib/compiler-llvm/src/compiler.rs Outdated Show resolved Hide resolved
lib/compiler-llvm/src/config.rs Outdated Show resolved Hide resolved
@ptitSeb ptitSeb requested a review from Amanieu October 18, 2021 09:56
@syrusakbary
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 19, 2021

@bors bors bot merged commit 6ec1571 into master Oct 19, 2021
@bors bors bot deleted the feat_llvm_aarch64_relocs branch October 19, 2021 17:06
@syrusakbary syrusakbary added this to the v2.1 milestone Nov 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