Skip to content

Native "llvm" modules don't work #907

@brson

Description

@brson
Contributor

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.

Activity

brson

brson commented on Nov 14, 2011

@brson
ContributorAuthor

This ABI has been removed

added a commit that references this issue on Oct 26, 2020
added a commit that references this issue on Mar 7, 2023
added a commit that references this issue on Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @brson

        Issue actions

          Native "llvm" modules don't work · Issue #907 · rust-lang/rust