Ga1axy0 opened a new pull request, #19915:
URL: https://github.com/apache/tvm/pull/19915
RISC-V target tags use the LLVM codegen backend, so their target kind should
remain "llvm". However, the target metadata should still identify the target
as a RISC-V CPU rather than an ARM CPU.
Previously, the RISC-V tag helper used the ARM CPU keys and device metadata,
so Target("riscv/...") expanded with keys ["arm_cpu", "cpu"] and device
"arm_cpu".
```python
{"kind": "llvm", "keys": ["arm_cpu", "cpu"], "device": "arm_cpu"}
```
This is misleading for code that inspects target keys or device metadata to
distinguish CPU families.
This change updates the RISC-V tag helper to use keys ["riscv_cpu", "cpu"]
and device "riscv_cpu", while keeping kind="llvm". It also adds the SpacemiT
K3 RISC-V target tag.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]