aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-06-29 17:56:31 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-06-29 17:56:31 -0700
commit7e6b35b1f14efaa250dfcf9d90aba90fda227ba4 (patch)
treeaa2ffebf7b6df616a312d1d847be27103b910338 /tools
parentf2518db25a8d0cacebb82d2f8872b00014a03bc8 (diff)
PNaCl ABI: Remove use of @llvm.memset.p0i8.i64 (64-bit intrinsic variant)
Convert calls to this intrinsic to use the 32-bit variant instead. Do the same for the memcpy and memmove intrinsics too. Change the PNaCl ABI verifier to check this argument. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3530 TEST=*.ll tests + PNaCl toolchain trybots Review URL: https://codereview.chromium.org/18226003
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 56ac3ec9a7..c5405de902 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -605,6 +605,7 @@ int main(int argc, char **argv) {
initializeTarget(Registry);
// @LOCALMOD-BEGIN
initializeAddPNaClExternalDeclsPass(Registry);
+ initializeCanonicalizeMemIntrinsicsPass(Registry);
initializeExpandArithWithOverflowPass(Registry);
initializeExpandByValPass(Registry);
initializeExpandConstantExprPass(Registry);