Skip to content

Simplify generate_intrinsics.py #575

Open
@bjorn3

Description

Currently it tries to fetch data from three sources:

The last two sources are because the last commit on llvm-project may have removed some intrinsics that stdarch uses. It should be possible to simplify this to just Intrinsics.td from llvm-project by picking the exact commit that the nightly version against which cg_gcc will build uses as LLVM version. If any intrinsics are removed there, stdarch has had to stop using them before, so the removal of the intrinsic wouldn't matter.

The manual parsing of llvm-tblgen output could also likely be replaced by usage of the --dump-json flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions