diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-04-23 17:02:57 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-04-23 17:02:57 -0700 |
commit | ac21bcb80d063892e3e0536eb72b1b34610e74a0 (patch) | |
tree | 67a4928180fa315598fee49b3320840537ec3e1a /tools/opt | |
parent | e0e366e55459a2b934253ac1ada762bdade64571 (diff) |
PNaCl: Add ExpandByVal pass for expanding out by-value struct args and results
This pass expands out the "byval" and "sret" argument attributes.
This will affect the calling conventions for PPAPI under PNaCl (for
passing PP_Var etc. by value), so the PNaCl PPAPI shims will need to
be updated in order to enable this pass by default.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3400
TEST=PNaCl toolchain trybots + GCC torture tests + LLVM test suite + Spec2k
Review URL: https://codereview.chromium.org/13973018
Diffstat (limited to 'tools/opt')
-rw-r--r-- | tools/opt/opt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index ff6e5effeb..26a5e4a3c1 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -577,6 +577,7 @@ int main(int argc, char **argv) { initializeInstrumentation(Registry); initializeTarget(Registry); // @LOCALMOD-BEGIN + initializeExpandByValPass(Registry); initializeExpandConstantExprPass(Registry); initializeExpandCtorsPass(Registry); initializeExpandGetElementPtrPass(Registry); |