Skip to content

Native "llvm" modules don't work #907

@brson

Description

@brson

There is some support for modules of the form

native "llvm" mod llvm {
    fn sqrt(n: float) -> float = "sqrt.f64";
}

which are intended to generate calls to llvm intrinsics. In the one case we're actually using this (the above example from shootout-nbody) we are actually just generating a call to function sqrt which happens to be in the c standard library.

I've also added a failing test in run-pass/native-llvm.rs.

Personally I think we should drop this functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions