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

__builtin_riscv_pause not listed in document #81

Open
KaiYG opened this issue Jun 25, 2024 · 1 comment
Open

__builtin_riscv_pause not listed in document #81

KaiYG opened this issue Jun 25, 2024 · 1 comment

Comments

@KaiYG
Copy link

KaiYG commented Jun 25, 2024

I notice that __builtin_riscv_pause has been supported on GCC for a while but not listed in risc-c-api-doc.
Is it an official api and just not yet updated to the document?

@cmuellner
Copy link
Collaborator

The name __builtin_riscv_pause does not conform with the naming convention of RISC-V intrinsics (which need a prefix __riscv_).

In other words, there is no defined interoperable intrinsic function to emit a PAUSE instruction.

To introduce one, the following steps could be taken:

  • make a proposal for the intrinsic in a PR for this repo
  • create and publish patches for GCC and LLVM (if necessary) that reference the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants