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

Issue 805943002: Remove TypeConverter and Module from minimal subzero build. (Closed)

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

Description

Remove TypeConverter and Module from minimal subzero build. Removes the need to model LLVM types from the minimal subzero build. It isn't removed from the nonminimal build because IceConverter still needs to be able to convert LLVM types to corresponding Ice types. Note that this CL reduces the size of Release+Min/llvm2ice (after strip) to about 638K bytes. BUG=None R=jvoung@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=4019f0843ff2efdde366402f692f0853a206bac8

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove unnecessary code. #

Total comments: 2

Patch Set 3 : Remove LLVMTypes from IceTypeConverter. #

Patch Set 4 : Add missing comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -79 lines) Patch
M Makefile.standalone View 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceConverter.cpp View 3 chunks +3 lines, -5 lines 0 comments Download
M src/IceTypeConverter.h View 1 2 3 2 chunks +1 line, -12 lines 0 comments Download
M src/IceTypeConverter.cpp View 1 2 2 chunks +19 lines, -16 lines 0 comments Download
M src/IceTypes.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 9 chunks +10 lines, -44 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Karl
6 years ago (2014-12-15 18:57:32 UTC) #2
jvoung (off chromium)
Cool! https://codereview.chromium.org/805943002/diff/1/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/805943002/diff/1/src/PNaClTranslator.cpp#newcode20 src/PNaClTranslator.cpp:20: #include "llvm/IR/LLVMContext.h" Can the LLVMContext header be removed ...
6 years ago (2014-12-15 19:40:41 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/805943002/diff/1/src/IceTypeConverter.h File src/IceTypeConverter.h (right): https://codereview.chromium.org/805943002/diff/1/src/IceTypeConverter.h#newcode40 src/IceTypeConverter.h:40: // Note: We use "at" here in case Ty ...
6 years ago (2014-12-15 19:47:02 UTC) #4
Jim Stichnoth
Awesome! With this patch, the only big LLVM symbols that stand out are llvm::cl, and ...
6 years ago (2014-12-15 20:17:08 UTC) #5
Karl
https://codereview.chromium.org/805943002/diff/1/src/IceTypeConverter.h File src/IceTypeConverter.h (right): https://codereview.chromium.org/805943002/diff/1/src/IceTypeConverter.h#newcode40 src/IceTypeConverter.h:40: // Note: We use "at" here in case Ty ...
6 years ago (2014-12-15 20:27:54 UTC) #6
jvoung (off chromium)
otherwise LGTM too https://codereview.chromium.org/805943002/diff/20001/src/IceTypeConverter.h File src/IceTypeConverter.h (left): https://codereview.chromium.org/805943002/diff/20001/src/IceTypeConverter.h#oldcode41 src/IceTypeConverter.h:41: return LLVMTypes.at(Ty); I think this means ...
6 years ago (2014-12-15 21:05:33 UTC) #7
Karl
Committed patchset #4 (id:60001) manually as 4019f0843ff2efdde366402f692f0853a206bac8 (presubmit successful).
6 years ago (2014-12-15 21:45:07 UTC) #8
Karl
6 years ago (2014-12-15 21:45:19 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/805943002/diff/20001/src/IceTypeConverter.h
File src/IceTypeConverter.h (left):

https://codereview.chromium.org/805943002/diff/20001/src/IceTypeConverter.h#o...
src/IceTypeConverter.h:41: return LLVMTypes.at(Ty);
On 2014/12/15 21:05:32, jvoung wrote:
> I think this means that LLVMTypes can also be removed, and the initialization
> code for it?

Done.

Powered by Google App Engine
This is Rietveld 408576698