aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-05-29 22:47:23 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-05-29 22:47:23 -0700
commit614c108c60ef2ea51d0e5d4db871a5d954f4ecda (patch)
treed8d65d244ab1c7481ae61f8be5a3e9199f4bf32a /tools
parentcfcccc95343088d7d73e0d7be1da5d4c5de57e49 (diff)
PNaCl: Add ExpandSmallArguments pass to widen parameters to 32 bits
This widens i1, i8 and i16 function arguments and return types. Factor out RecreateFunction() helper function from existing PNaCl passes since this is a reoccurring code fragment. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3342 TEST=*.ll tests + PNaCl toolchain trybots + GCC torture tests + LLVM test suite Review URL: https://codereview.chromium.org/15971007
Diffstat (limited to 'tools')
-rw-r--r--tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index e44cfe06f4..bec40a97d9 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -604,6 +604,7 @@ int main(int argc, char **argv) {
initializeExpandConstantExprPass(Registry);
initializeExpandCtorsPass(Registry);
initializeExpandGetElementPtrPass(Registry);
+ initializeExpandSmallArgumentsPass(Registry);
initializeExpandTlsPass(Registry);
initializeExpandTlsConstantExprPass(Registry);
initializeExpandVarArgsPass(Registry);