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

Issue 1171563002: Subzero: Emit ARM build-attributes in the file scope (as header). (Closed)

Created:
5 years, 6 months ago by jvoung (off chromium)
Modified:
5 years, 6 months ago
CC:
native-client-reviews_googlegroups.com, reed.kotler
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Emit ARM build-attributes in the file scope (as header). The ARM linker will check that .o files declare compatible build attributes (e.g., all claim hard-float calling convention, all claim VFP-vX ,etc.). Thus, in order to set up cross tests that link LLC generated code against and Subzero generated code, we need the build attributes to be compatible. Pick ARMv7, hard-float calling convention, and neon, etc. which we use for PNaCl LLVM. Will probably have to reorganize to keep in sync once the ELF writer also emits this. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4076 R=kschimpf@google.com, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=fb79284d5dd6ea823fa907f3b60015a3d557ce54

Patch Set 1 #

Total comments: 10

Patch Set 2 : format #

Total comments: 2

Patch Set 3 : unique_ptrs #

Patch Set 4 : report_fatal #

Total comments: 3

Patch Set 5 : use class final, fix for mips32 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -14 lines) Patch
M src/IceCompiler.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M src/IceGlobalContext.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M src/IceTargetLowering.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 4 1 chunk +15 lines, -3 lines 0 comments Download
M src/IceTargetLoweringARM32.h View 1 2 3 4 2 chunks +21 lines, -2 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 chunk +39 lines, -0 lines 0 comments Download
M src/IceTargetLoweringMIPS32.h View 1 2 3 4 3 chunks +24 lines, -2 lines 1 comment Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 3 4 2 chunks +19 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
jvoung (off chromium)
https://codereview.chromium.org/1171563002/diff/1/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/1171563002/diff/1/src/IceGlobalContext.cpp#newcode352 src/IceGlobalContext.cpp:352: TargetHeaderLowering::createLowering(this)->lower(); Or maybe the flag check and writeInitialELFHeader should ...
5 years, 6 months ago (2015-06-05 22:05:54 UTC) #2
John
https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h File src/IceTargetLoweringARM32.h (right): https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h#newcode327 src/IceTargetLoweringARM32.h:327: class TargetHeaderARM32 : public TargetHeaderLowering { Maybe the class ...
5 years, 6 months ago (2015-06-05 22:28:30 UTC) #3
Karl
lgtm
5 years, 6 months ago (2015-06-08 15:32:26 UTC) #4
Jim Stichnoth
otherwise lgtm https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h File src/IceTargetLoweringARM32.h (right): https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h#newcode334 src/IceTargetLoweringARM32.h:334: return new TargetHeaderARM32(Ctx); On 2015/06/05 22:28:29, John ...
5 years, 6 months ago (2015-06-08 20:23:43 UTC) #5
jvoung (off chromium)
Thanks! https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h File src/IceTargetLoweringARM32.h (right): https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h#newcode327 src/IceTargetLoweringARM32.h:327: class TargetHeaderARM32 : public TargetHeaderLowering { On 2015/06/05 ...
5 years, 6 months ago (2015-06-08 22:21:10 UTC) #6
John
https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h File src/IceTargetLoweringARM32.h (right): https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h#newcode327 src/IceTargetLoweringARM32.h:327: class TargetHeaderARM32 : public TargetHeaderLowering { On 2015/06/08 22:21:10, ...
5 years, 6 months ago (2015-06-08 23:22:27 UTC) #7
jvoung (off chromium)
Thanks updated to at compile with MIPS32 target too. https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h File src/IceTargetLoweringARM32.h (right): https://codereview.chromium.org/1171563002/diff/1/src/IceTargetLoweringARM32.h#newcode327 src/IceTargetLoweringARM32.h:327: ...
5 years, 6 months ago (2015-06-11 22:12:32 UTC) #8
jvoung (off chromium)
5 years, 6 months ago (2015-06-11 22:27:56 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
fb79284d5dd6ea823fa907f3b60015a3d557ce54 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698