[clang] [llvm] [RISCV] Add Spacemit X100 processor definition (PR #173988)
Luke Lau via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 08:41:36 PST 2026
lukel97 wrote:
> I'm not sure how TuneDLenFactor2 is used by llvm, but it sounds like X100 is VLEN=256 and four issue DLEN=128. While the SiFive cores that currently define TuneDLenFactor2 are single issue DLEN=VLEN/2.
TuneDLenFactor2 means that DLEN = VLEN / 2, which causes instructions at LMUL N to be costed as if they were LMUL * 2. So e.g. <vscale x 2 x i64> is LMUL 1 for zvl256b. But with `-mtune=spacemit-x100` this would be costed as if it were LMUL 2, which roughly models one uop for each DLEN.
https://github.com/llvm/llvm-project/pull/173988
More information about the cfe-commits
mailing list