Skip to content

Does our LLVM need the fastcomp backend for emscripten? #36356

Closed
@alexcrichton

Description

@alexcrichton

In #36339 we're updating LLVM to include the fastcomp backend. Upon reflection, however, I'm not actually sure if we need it in our fork of LLVM? I'm led to believe that it's our (rustc's) job to emit LLVM bytecode which emcc then slurps up and generates JS with. I'm led to believe that emcc needs and runs the fastcomp backend, but we as the Rust compiler generating bytecode otherwise wouldn't use it at all. I do believe, however, that we would need at least the definition of the asmjs target to LLVM. That is, we'd need some minor patch so it understands what the "asmjs" target is.

cc @sunfish, @kripken, does this sound right? This would certainly reduce the maintenance burden on both sides! All we'd need to do is ensure that we're both working with equivalent versions of LLVM (which shouldn't be too hard)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions