-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Fix the asmjs C ABI #31653
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
Fix the asmjs C ABI #31653
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The two URLs I pasted in the source code don't pass |
I think you should use relative paths into the repo and maybe put a link to the whole repo on a different line. |
c68a0b9
to
c55ecde
Compare
c55ecde
to
5b224ec
Compare
I'll be honest in that I have no idea what these files do, they're entirely black boxes to me, perhaps, though: r? @eddyb |
ArgType::indirect(ty, Some(Attribute::StructRet)) | ||
}, | ||
_ => { | ||
let attr = if ty == Type::i1(ccx) { Some(Attribute::ZExt) } else { None }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i8
and others don't get extended?
This is good progress IMO, @bors r+ |
📌 Commit 5b224ec has been approved by |
Needs a correct review because I'm not too confident with how this works. All tests related to the C ABI are now passing. References: - https://github.com/kripken/emscripten-fastcomp-clang/blob/dbe68fecd03d6f646bd075963c3cc0e7130e5767/lib/CodeGen/TargetInfo.cpp#L479-L489 - https://github.com/kripken/emscripten-fastcomp-clang/blob/dbe68fecd03d6f646bd075963c3cc0e7130e5767/lib/CodeGen/TargetInfo.cpp#L466-L477 The `classifyArgumentType` function has two different paths depending on `RAA == CGCXXABI::RAA_DirectInMemory`, but I don't really know what's the corresponding option in Rust. cc @brson @eddyb
Neat! |
Needs a correct review because I'm not too confident with how this works.
All tests related to the C ABI are now passing.
References:
The
classifyArgumentType
function has two different paths depending onRAA == CGCXXABI::RAA_DirectInMemory
, but I don't really know what's the corresponding option in Rust.cc @brson @eddyb