Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Support/Host.cpp | ||
---|---|---|
222 ↗ | (On Diff #126044) | Can you initialize Exynos to some value here? |
233–234 ↗ | (On Diff #126044) | How about if (I.consume_front("CPU part")) I.ltrim("\t :").getAsInteger(16, Part); As an example of why I prefer consume_front, it fixes what appears to be above in the preceding if statement (about CPU variant), where you've hardcoded 8 but actually meant 11. |
236 ↗ | (On Diff #126044) | Can you move the declaration of Exynos down here and just say: unsigned Exynos = (Variant << 12) + Part; That also simultaneously addresses my previous comment about initialization. |
llvm/lib/Support/Host.cpp | ||
---|---|---|
233–234 ↗ | (On Diff #126044) | Makes sense. |
Comment Actions
LGTM modulo the one nitpick for which I'm not sure if it is needed.
llvm/lib/Support/Host.cpp | ||
---|---|---|
237–241 ↗ | (On Diff #126053) | I guess you may need to use LLVM_FALLTHROUGH here to silence a warning with some compilers? |