Skip to content

Commit bc1984d

Browse files
committed
Doc: Add the LoongArch stabilized target features
1 parent acd6794 commit bc1984d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/attributes/codegen.md

+21
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,27 @@ Feature | Implicitly Enables | Feature Name
230230
`tme` | | FEAT_TME --- Transactional Memory Extension
231231
`vh` | | FEAT_VHE --- Virtualization Host Extensions
232232

233+
#### `loongarch`
234+
235+
r[attributes.codegen.target_feature.loongarch]
236+
237+
This platform requires that `#[target_feature]` is only applied to [`unsafe`
238+
functions][unsafe function].
239+
240+
Further documentation on these features can be found in the [LoongArch Reference
241+
Manual], or elsewhere on [www.loongson.cn].
242+
243+
[LoongArch Reference Manual]: https://github.com/loongson/LoongArch-Documentation
244+
[LoongArch GitHub Account]: https://github.com/loongson
245+
246+
Feature | Implicitly Enables | Description
247+
------------|---------------------|-------------------
248+
`frecipe` | | FRECIPE --- Reciprocal approximation instrutions
249+
`lasx` | `lsx` | LASX --- 256-bit vector instructions
250+
`lbt` | | LBT --- Binary translation instructions
251+
`lsx` | `d` | LSX --- 128-bit vector instructions
252+
`lvz` | | LVZ --- Virtualization instructions
253+
233254
#### `riscv32` or `riscv64`
234255

235256
r[attributes.codegen.target_feature.riscv]

0 commit comments

Comments
 (0)