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

support inline asm #1045

Closed
dvc94ch opened this issue Nov 8, 2019 · 4 comments
Closed

support inline asm #1045

dvc94ch opened this issue Nov 8, 2019 · 4 comments
Labels
A-shims Area: This affects the external function shims C-project Category: a larger project is being tracked here, usually with checkmarks for individual steps

Comments

@dvc94ch
Copy link

dvc94ch commented Nov 8, 2019

Useful to run tests for unsafe code with miri

@dvc94ch
Copy link
Author

dvc94ch commented Nov 8, 2019

Wouldn't telling llvm to jit the inline asm somehow work? That shouldn't require the inline asm to be stabilized or reimplementing it in cranelift.

Alternatively a way to use an external assembler and jitting a binary blob would also work for me.

@bjorn3
Copy link
Member

bjorn3 commented Nov 8, 2019

Wouldn't telling llvm to jit the inline asm somehow work? That shouldn't require the inline asm to be stabilized or reimplementing it in cranelift.

For miri: that would require FFI support in miri.

For cg_clif (my cranelift based codegen backend): cg_clif doesnt have any dependency on LLVM, which I want to keep that way.

@dvc94ch
Copy link
Author

dvc94ch commented Nov 8, 2019

I see, so it's a duplicate of #11. Thanks.

@dvc94ch dvc94ch closed this as completed Nov 8, 2019
@RalfJung RalfJung added A-shims Area: This affects the external function shims C-project Category: a larger project is being tracked here, usually with checkmarks for individual steps labels Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-shims Area: This affects the external function shims C-project Category: a larger project is being tracked here, usually with checkmarks for individual steps
Projects
None yet
Development

No branches or pull requests

3 participants