[PATCH] D56305: [AArch64] Support reserving arbitrary general purpose registers
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 6 16:17:35 PST 2019
phosek added a comment.
In D56305#1363417 <https://reviews.llvm.org/D56305#1363417>, @carwil wrote:
> Hi, we're currently working on similar functionality for the ARM backend, so I got pointed to take a look at this patch.
> Looks good to me, I quite like the tablegen improvements, but agree with trong's comments.
> I assume you've omitted X19, as LLVM uses it as the base pointer?
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:318
+ if (Args.hasArg(options::OPT_ffixed_x0))
> What happens (should happen) if we reserve x0 and compile a function with a return value?
Clang throws `error: AArch64 doesn't support function calls if any of the argument registers is reserved.` as for any other argument register.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits