This change adds support for baremetal riscv32 configuration.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM. I think some duplicates can be removed but it already being done in https://reviews.llvm.org/D148797.
libc/config/baremetal/riscv32/entrypoints.txt | ||
---|---|---|
86 | Why not include fenv.h entrypoints? |
I'm not familiar enough with LLVM's libc to have a strong opinion here, but my suspicion is that a single riscv/ directory (with ifdefs in files as needed) is going to be a better solution than having directories for both riscv32 and riscv64. But if the plan is to leave refactoring this to D148797, that seems fine to me.
I agree with Alex, we can leave https://reviews.llvm.org/D148797 as a refactor patch for later.
One of the open queries for D148797 was on buildbot support - is that a blocker for baremetal targets too?
That's a good question :) - the answer is "no" because in general it is very hard to manage bare metal boards on a CI platform. That said, we do want build only bots. We have not blocked the arm32 bare metal config that way, so I think we should not block riscv32 also. But, I plan to set up cross-builders for baremetal configs soon. Once we have examples, we will start blocking bare metal configs also on build-only bots.
Go ahead and submit this. I think D148797 will take time. It has been delayed for a few reasons and I am also guilty of the delay. Since the bar for baremetal configs at this time is "if it builds, it is good", you can land it and we will refactor later to eliminate duplicates between rv32 and rv64.
Why not include fenv.h entrypoints?