Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Issue 644143002: Generate a minimal llvm2ice. (Closed)

Created:
6 years, 2 months ago by Karl
Modified:
6 years, 2 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Generate a minimal llvm2ice. Generates minllvm2ice executable. Is same as llvm2ice, except that it is the minimal implementation for processing PNaCl bitcode files. Inclusion of code is dependent on compile flag BUILD_MIN_LLVM. This code only effects the make file. Later CLs will ifdef out code not to be included in minllvm2ice. BUG=None

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -4 lines) Patch
M Makefile.standalone View 3 chunks +24 lines, -3 lines 6 comments Download
M tests_lit/lit.cfg View 1 chunk +10 lines, -1 line 0 comments Download
M tests_lit/reader_tests/binops.ll View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Karl
6 years, 2 months ago (2014-10-10 21:49:47 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/644143002/diff/1/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/644143002/diff/1/Makefile.standalone#newcode108 Makefile.standalone:108: MIN_CXXFLAGS = -DBUILD_MIN_LLVM LLVM? Maybe something like SZ_MINIMAL? https://codereview.chromium.org/644143002/diff/1/Makefile.standalone#newcode113 ...
6 years, 2 months ago (2014-10-13 16:03:58 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/644143002/diff/1/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/644143002/diff/1/Makefile.standalone#newcode108 Makefile.standalone:108: MIN_CXXFLAGS = -DBUILD_MIN_LLVM On 2014/10/13 16:03:58, stichnot wrote: > ...
6 years, 2 months ago (2014-10-13 17:05:08 UTC) #4
Karl
6 years, 2 months ago (2014-10-14 22:54:12 UTC) #5
Note: This CL has been replaced with

https://codereview.chromium.org/659513005

https://codereview.chromium.org/644143002/diff/1/Makefile.standalone
File Makefile.standalone (right):

https://codereview.chromium.org/644143002/diff/1/Makefile.standalone#newcode108
Makefile.standalone:108: MIN_CXXFLAGS = -DBUILD_MIN_LLVM
On 2014/10/13 16:03:58, stichnot wrote:
> LLVM?
> 
> Maybe something like SZ_MINIMAL?

Done.

https://codereview.chromium.org/644143002/diff/1/Makefile.standalone#newcode113
Makefile.standalone:113: make_symlink: $(OBJDIR)/llvm2ice $(MINOBJDIR)/llvm2ice
On 2014/10/13 16:03:58, stichnot wrote:
> I'm not thrilled about the build time doubling.  What do you think about
> something like this?
> 
> - Set OBJDIR, OPTLEVEL, ASSERTIONS, etc. to something appropriate when MINIMAL
> is defined.
> 
> - Change run-llvm2ice.py to be able to run FileCheck as part of its execution.
> 
> - Change the lit RUN lines accordingly.
> 
> - In run-llvm2ice.py, probe the llvm2ice binary and if it is a minimal build
> that doesn't support requirements of the test (such as using IceConverter),
just
> return success without running llvm2ice+FileCheck.

Made code dependent of command-line flag: "MINIMAL=t".

Also modified so that we now generate llvm2ice.build_atts holding the
corresponding build flags used to build llvm2ice. Added two concepts:

1) The REQUIRES lines to assert that defines when the lit test should be run.
and
2) A conditional %ifX command prefix to only run commands if the corresponding
built attributes are defined. In this case, the lit file  should contain tests
for multiple builds that use the same input. Tests that don't meet the build
conditions quietly succeed by doing nothing.

Powered by Google App Engine
This is Rietveld 408576698