[llvm-dev] byval vs. explicitly coded copy

Rodney M. Bates via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 3 14:57:01 PDT 2017


Is there any disadvantage to inserting explicit llvm code in a prolog to copy a
parameter, rather than putting the 'byval' attribute on the formal or indirect call?

I have an IR that, without some significant work, does not make enough information
available at an indirect call site to know whether a copy is needed.  (The original
source language knows, it just gets lost at an indirect call.)


-- 
Rodney Bates
rodney.m.bates at acm.org


More information about the llvm-dev mailing list