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 /include/llvm/Transforms | |
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 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/NaCl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/NaCl.h b/include/llvm/Transforms/NaCl.h index 650779c058..ba765c1c21 100644 --- a/include/llvm/Transforms/NaCl.h +++ b/include/llvm/Transforms/NaCl.h @@ -19,6 +19,7 @@ class ModulePass; class Use; class Value; +ModulePass *createExpandByValPass(); FunctionPass *createExpandConstantExprPass(); ModulePass *createExpandCtorsPass(); BasicBlockPass *createExpandGetElementPtrPass(); |