- 22 Jan, 2016 4 commits
-
-
Reed Kotler authored
i.e.make -f Makefile.standalone check-lit CHECK_LIT_TESTS=tests_lit/llvm2ice_tests/arith.lll The default will be for the directory to be in subzero but it's also possible to create an absolute pathname. Extended this to work with cross tests. Added some primitive help for the makefile. make -f Makefile.standalone help make -f Makefile.standalone help-check-lit make -f makefile.standalone help-check-xtest BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1582243005 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
Reed Kotler authored
BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1571883002 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
Reed Kotler authored
BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1590403005 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
Reed Kotler authored
BUG= none R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1604063002 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
- 21 Jan, 2016 4 commits
-
-
Karl Schimpf authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1604043005 .
-
Karl Schimpf authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1603893003 .
-
Karl Schimpf authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1601103010 .
-
David Sehr authored
BUG= R=jpp@chromium.org Review URL: https://codereview.chromium.org/1616483003 .
-
- 20 Jan, 2016 5 commits
-
-
Jim Stichnoth authored
With the --force option, the behavior of its default setting is dangerous. Specifically, it doesn't retranslate by default when you change the szbuild command-line arguments. This leads to debugging frustration. Therefore, we change the default setting to be "dumb" and always retranslate. For bisection debugging, the user will quickly realize that they want to add "--force=0". BUG= none R=jpp@chromium.org Review URL: https://codereview.chromium.org/1608323002 .
-
John Porto authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4077 R=sehr@chromium.org Review URL: https://codereview.chromium.org/1614453002 .
-
John Porto authored
BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1606383002 .
-
John Porto authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4076 R=kschimpf@google.com, sehr@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1609753002 .
-
David Sehr authored
BUG= R=jpp@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1592033002 .
-
- 19 Jan, 2016 3 commits
-
-
Jim Stichnoth authored
These static members of the various TargetLowering classes are no longer used anywhere and can therefore be removed. BUG= none R=jpp@chromium.org Review URL: https://codereview.chromium.org/1599803002 .
-
Jim Stichnoth authored
Provides a variant of the UnimplementedError macro specifically for use in incomplete target instruction lowering. When --skip-unimplemented is specified, the UnimplementedLoweringError macro adds FakeUse and FakeDef instructions in order to maintain consistency in liveness analysis. BUG= none R=kschimpf@google.com Review URL: https://codereview.chromium.org/1591893002 .
-
John Porto authored
if vpush/vpop needs to emit multiple instructions (because of non-consecutive registers), then the emitted sequence should be: vpush list1 vpush list2 ... vpop list2 vpop list1 Subzero was emiting vpop in the wrong order: vpop list1 vpop list2 These multiple lists push/pop arise because of the way fp32 and fp64 registers are declared (s0 -> s31, d31 -> d0). This CL modifies fp64 registers so they are declared in ascending order (d0 -> d31), which fixes subzero temporarily. The appropriate fix is to change vpop to be emitted in the right order. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4076 R=sehr@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1592663004 .
-
- 15 Jan, 2016 5 commits
-
-
John Porto authored
This CL introduces the TargetLowering::AutoBundle type, which allows RAII-style bundle emission. As part of the CL, all of the uses of TargetLowering::_bundle_lock(), and TargetLowering::_bundle_unlock(), were replaced with uses of the newly introduced type. BUG= R=sehr@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1585843007 .
-
Karl Schimpf authored
This allows better debugging of register encodings into instructions, in the integrated assembler. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1571433004 .
-
Jim Stichnoth authored
A good trick for implementing lowering for a new target is, for not-yet-implemented instructions, to insert a FakeUse of each instruction variable followed by a FakeDef of the dest variable. Otherwise one risks running afoul of liveness analysis integrity checks. However, if all the high-level instructions in a basic block lack variables (e.g. unconditional branches, or void calls with only constant arguments), the resulting block may be completely empty. In O2 mode, this triggers a couple of assertions/errors that wouldn't normally occur: 1. CfgNode::contractIfEmpty() finds a block with a single out-edge that does *not* end with an unconditional branch. 2. CfgNode::livenessAddIntervals() tries to add a bogus liveness interval to a variable because the empty block contains no actual instruction numbers to form a valid interval from. This adds some fixes/workarounds for those problems. Another workaround for the empty basic block problem may be to just to add a FakeUse of the stack pointer when lowering an unconditional branch, which combined with the trick above, should prevent empty blocks. However, these fixes seem reasonable apart from that. BUG= none R=sehr@chromium.org Review URL: https://codereview.chromium.org/1590303002 .
-
Karl Schimpf authored
Cleans up code by removing unnecessary class. BUG=None R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1581803009 .
-
Karl Schimpf authored
Before, type signatures of functions were only checked when called. This CL fixes this by checking all function signatures. BUG=None R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1579203002 .
-
- 14 Jan, 2016 1 commit
-
-
John Porto authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4077 R=sehr@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1559243002 .
-
- 13 Jan, 2016 3 commits
-
-
David Sehr authored
Also turn it on for presubmit testing. BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1531623007 .
-
Jim Stichnoth authored
If the default --target option is not actually included in the Subzero build (via llvm/Config/SZTargets.def), then "pnacl-sz --build-atts" will fail. This is because the attribute printing is done after the GlobalContext is created, which does some amount of Target initialization. The fix is to move the attribute printing to a point after the flags are parsed and the output streams are created, but before the GlobalContext is created. This basically disables --build-atts in the browser build, but that should be OK. BUG= none R=kschimpf@google.com Review URL: https://codereview.chromium.org/1584923002 .
-
Jim Stichnoth authored
This tries to use the same -W options that the buildbots use, to reduce the amount of warning spam in the logs. BUG= none R=jpp@chromium.org Review URL: https://codereview.chromium.org/1575873006 .
-
- 11 Jan, 2016 5 commits
-
-
Sean Klein authored
TEST=Run szbuild.py in a directory which does not include "native_client" as a subdirectory. BUG=None R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1565963002 .
-
Karl Schimpf authored
Also fixes bug in emitVFPddd. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1564393002 .
-
Karl Schimpf authored
Refactors methods emit() and emitIAS() of InstARM32Push and InstARM32Pop to separate out the selection of assembler instructions from instruction emission, using template methods. Template method assemble() provides a single implementation for emit() and emitIAS(). This method calls template functions in the assembler to generate textual and binary forms of the instruction. BUG= None R=jpp@chromium.org, stichnot@chromium.org Review URL: https://codereview.chromium.org/1535233002 .
-
John Porto authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4076 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1572303002 .
-
Jim Stichnoth authored
The linking errors are the following. Somehow the clang build succeeds. .../IceInstARM32.o:IceInstARM32.cpp:(.text$_ZNK3Ice5ARM3220InstARM32ThreeAddrFPILNS0_9InstARM3213InstKindARM32E74EE4dumpEPKNS_3CfgE[__ZNK3Ice5ARM3220InstARM32ThreeAddrFPILNS0_9InstARM3213InstKindARM32E74EE4dumpEPKNS_3CfgE]+0x38): undefined reference to `Ice::ARM32::InstARM32ThreeAddrFP<(Ice::ARM32::InstARM32::InstKindARM32)74>::Opcode' .../IceInstARM32.o:IceInstARM32.cpp:(.text$_ZNK3Ice5ARM3220InstARM32ThreeAddrFPILNS0_9InstARM3213InstKindARM32E75EE4dumpEPKNS_3CfgE[__ZNK3Ice5ARM3220InstARM32ThreeAddrFPILNS0_9InstARM3213InstKindARM32E75EE4dumpEPKNS_3CfgE]+0x38): undefined reference to `Ice::ARM32::InstARM32ThreeAddrFP<(Ice::ARM32::InstARM32::InstKindARM32)75>::Opcode' collect2.exe: error: ld returned 1 exit status BUG= none TBR=jpp Review URL: https://codereview.chromium.org/1576823002 .
-
- 10 Jan, 2016 2 commits
-
-
Jim Stichnoth authored
It turns out that the g++ test build, initiated by "make presubmit", was actually using clang++ for the build. This fixes the makefile, plus the code that actually produces errors under the g++ build. BUG= none TBR=jpp Review URL: https://codereview.chromium.org/1572863003 .
-
Reed Kotler authored
BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1572143002 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
- 08 Jan, 2016 2 commits
-
-
Karl Schimpf authored
Adds vcvt<c>.f32.f64 and vcvt<c>.f64.32 to the ARM integrated assembler. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1567623008 .
-
Reed Kotler authored
currently if you do a make clean-all or have never done a code build, there will be no build directory and doxygen is going to want to create and put files into build/docs/html BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1567313002 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
- 07 Jan, 2016 6 commits
-
-
Karl Schimpf authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1570543002 .
-
Karl Schimpf authored
Also fixes some badly named locals for VSUBS and VSUBD. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1568933002 .
-
Karl Schimpf authored
Also adds missing test case for the VADDD instruction. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1568623003 .
-
Reed Kotler authored
Move Doxyfile files to docs and associated makefile. This is a prelude to allowing a docs directory for all the RST files as well as expanding the makefile to build the docs for those too, not just the doxygen output. The doxygen html has been moved to build/docs/html so it's not in a source directory. Gitignore has been fixed to allow files in docs now without complaining. BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1562703002 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-
Karl Schimpf authored
BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4334 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1540653003 .
-
Reed Kotler authored
BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1562543002 . Patch from Reed Kotler <rkotlerimgtec@gmail.com>.
-