[PATCH] D54143: [WIP, RISCV] Generate address sequences suitable for mcmodel=medium
James Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 05:56:47 PST 2018
jrtc27 added a comment.
A couple of other points:
1. We should be defaulting to the small code model to match GCC (which defaults to `medlow`)
2. Other backends only support a subset of the code models; we should only allow small and medium, anything else is an error (look at other backends for how they do it).
3. The `switch` on the code model is identical across all three functions and so can be de-duplicated.
Repository:
rL LLVM
https://reviews.llvm.org/D54143
More information about the llvm-commits
mailing list