Skip to content

Commit

Permalink
Doc: Add the LoongArch stabilized target features
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed Jan 3, 2025
1 parent acd6794 commit f07ba46
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/attributes/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,27 @@ Feature | Implicitly Enables | Feature Name
`tme` | | FEAT_TME --- Transactional Memory Extension
`vh` | | FEAT_VHE --- Virtualization Host Extensions

#### `loongarch`

r[attributes.codegen.target_feature.loongarch]

This platform requires that `#[target_feature]` is only applied to [`unsafe`
functions][unsafe function].

Further documentation on these features can be found in the [LoongArch Reference
Manual], or elsewhere on [LoongArch GitHub Account].

[LoongArch Reference Manual]: https://github.com/loongson/LoongArch-Documentation
[LoongArch GitHub Account]: https://github.com/loongson

Feature | Implicitly Enables | Description
------------|---------------------|-------------------
`frecipe` | | FRECIPE --- Reciprocal approximation instrutions
`lasx` | `lsx` | LASX --- 256-bit vector instructions
`lbt` | | LBT --- Binary translation instructions
`lsx` | `d` | LSX --- 128-bit vector instructions
`lvz` | | LVZ --- Virtualization instructions

#### `riscv32` or `riscv64`

r[attributes.codegen.target_feature.riscv]
Expand Down

0 comments on commit f07ba46

Please sign in to comment.