SG2042 Thead LLVM documentation
This document is about the installation and use thead llvm in SG2042.
1. Current status
Thead vendor extensions are extensions which are not standardized by RISC-V International, and are instead defined by a thead hardware. Check spec Here
Instructions are prefixed with th. as described in the specification. There are 13 vendor extensions in spec, but llvm supports 11 vendor extensions,they are:
- XTHeadBa, address-generation.
- XTHeadBb, basic bit-manipulation.
- XTHeadBs, single-bit operations
- XTHeadCondMov, conditional move
- XTHeadCmo, cache management operations
- XTHeadFMemIdx, indexed memory operations for floating point
- XTheadMac, multiply-accumulate instructions
- XTHeadMemIdx, indexed memory operations
- XTHeadMemPair,two-GPR memory operations
- XTHeadSync,multi-core synchronization instructions
- XTHeadVdot, version 1.0.0 of the THeadV-family custom instructions