Adds support for compiling Swift targeting the RISCV ABI
Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
First of all, thanks for the contribution.
I've not looked at all into the Swift calling convention requirements, but at a minimum this patch is going to need test coverage. I also think RV32 should be handled somehow - either by adding equivalent support, or at least erroring if that's not possible.
Comment Actions
Great, thanks. Is it really the case that shouldPassIndirectlyForSwift has the same result regardless of native word size?
Comment Actions
Yes, if you check other implementations like Arm and AArch64, the implementation is the same.
Where is a good place to start for the unit test development for this ABI?
SwiftABIInfo doesn't inherit from ABIInfo and hasn't since August last year. D130394