OSDN Git Service

Make py import not assume dir is "pnacl-subzero". Avoid autovect in crosstest.
authorJan Voung <jvoung@chromium.org>
Fri, 6 Jun 2014 15:47:54 +0000 (08:47 -0700)
committerJan Voung <jvoung@chromium.org>
Fri, 6 Jun 2014 15:47:54 +0000 (08:47 -0700)
commit1248a6d1b2040d1178137006f8494b44d128a3c5
treee41bb77c7bd89c2ddc271043fb2eb07892442afa
parentab8242ca447f71bf2a594d26b7b71763fe71df8e
Make py import not assume dir is "pnacl-subzero". Avoid autovect in crosstest.

Derek's CL to check out subzero calls the source directory
"subzero", and the file header comments call the directory
"subzero". Just make the python sys.path munging for
importing pydir more generic.

Also change crosstest to not run the raw LLVM "opt" with
optimizations (only use it for ABI stabilization passes).
Instead run pnacl-clang with -O2. Otherwise, newer NACL_SDK
versions include a newer LLVM "opt" binary which
autovectorizes and may generate vector IR that is not
handled by Subzero yet.

E.g.,
LLVM ERROR: Invalid PNaCl instruction:   %1 = insertelement <4 x i32> undef, i32 %0, i32 0
w/ pepper_canary to version 37, revision 274873

BUG=none
TEST=make -f Makefile.standalone check
R=stichnot@chromium.org, wala@chromium.org

Review URL: https://codereview.chromium.org/317963002
llvm2iceinsts.py
pydir/build-pnacl-ir.py