[PATCH] D13977: [X86] Add elfiamcu triple support, and a workaround for PR3997

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 09:52:25 PDT 2015


rnk added a subscriber: rnk.
rnk added a comment.

It'd be nice if we come come up with a more general solution to PR3997. If we had a way to send arbitrary module-wide flags through to the backend like TargetTuple, then we'd go ahead and put mregparm=3 there. Obviously we don't, and we've been trying to move towards per-function attributes. So, we could conceivably slap an attribute like "libcall-regparms"=N on every function, and then, during markInRegArguments, look at that after checking the triple.

What do you guys think?


http://reviews.llvm.org/D13977





More information about the llvm-commits mailing list