[PATCH] D20709: Support ARM subtarget feature +long64

Renato Golin via cfe-commits cfe-commits at lists.llvm.org
Tue May 31 02:59:15 PDT 2016


rengolin added a comment.

In http://reviews.llvm.org/D20709#443950, @srhines wrote:

> Correct. This is only used by RenderScript, and unfortunately can't be done any differently. We had hoped to just predicate this with our own LangOpt (the patch that adds the RenderScript LangOpt is coming soon), but unfortunately, at the point where LangOpts are being parsed, the target machine already has the size and alignment of long specified (and it can't change).


Hi Stephen,

GCC uses -mabi=ilp32 or -mabi=lp64 for AArch64 to change the ABI, you could do the same on Renderscript.

If this is how Renderscript *always* operate, than having a "renderscript" ABI would make even more sense.

cheers,
--renato


http://reviews.llvm.org/D20709





More information about the cfe-commits mailing list