Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
This seems in line with what's done for the other archs, so overall seems fine.
llvm/lib/Support/Host.cpp | ||
---|---|---|
383–401 | It seems a bit silly to allocate memory for all the line references if we are only going to care about one of them. Do you expect we'll need some of the other lines as well in the future? |
llvm/lib/Support/Host.cpp | ||
---|---|---|
383–401 | Yes, I think we will have more and more RISC-V development boards in the future. |
llvm/lib/Support/Host.cpp | ||
---|---|---|
383–401 | And those other boards can't be recognized from the uarch line? |
llvm/lib/Support/Host.cpp | ||
---|---|---|
383–401 | I think they can. But I don't have those boards currently. |
llvm/lib/Support/Host.cpp | ||
---|---|---|
383–401 | I've confirmed with my colleague, sifive,u74-mc is right, and he suggest we should recognize sifive,bullet0[1] too, because that what upstream linux use, and sifive,u74-mc are used in SiFive's OpenEmbedded release[2]. [1] https://github.com/torvalds/linux/blob/master/arch/riscv/boot/dts/sifive/fu740-c000.dtsi#L42 |
llvm/lib/Support/Host.cpp | ||
---|---|---|
385 | It's unnecessary to optimize for avoiding the memory allocation. |
llvm/unittests/Support/Host.cpp | ||
---|---|---|
378 | StringLiteral |
It's unnecessary to optimize for avoiding the memory allocation.