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

Issue 582113003: Lift register and condition code enums out into their own file. (Closed)

Created:
6 years, 3 months ago by jvoung (off chromium)
Modified:
6 years, 3 months ago
Reviewers:
Jim Stichnoth
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Lift register and condition code enums out into their own file. Lift the enums out of IceInstX8632.h and IceTargetLoweringX8632.h. This will later allow the assembler to share the enum values and use them as encodings where appropriate. E.g., to avoid having a separate enum in: https://codereview.chromium.org/476323004/diff/680001/src/assembler_constants_ia32.h The "all registers" enum is retained, but separate GPRRegister and XmmRegister enums are created with tags "Encoded_Reg_foo" to represent the encoded value of register "foo". Functions are added to convert from the "all registers" namespace to the encoded ones. Re-order the BrCond so that they match the encoding according to the "Instruction Subcode" in B.1 of the Intel Manuals. BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=bd385e4628d0b23ab54de230ca34bc30a3bb0db7

Patch Set 1 #

Patch Set 2 : typo #

Patch Set 3 : typo2 #

Patch Set 4 : add rest of codes #

Total comments: 4

Patch Set 5 : add first and last #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -212 lines) Patch
A src/IceConditionCodesX8632.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
M src/IceInstX8632.h View 9 chunks +16 lines, -26 lines 0 comments Download
M src/IceInstX8632.cpp View 22 chunks +32 lines, -32 lines 0 comments Download
M src/IceInstX8632.def View 1 2 3 4 4 chunks +57 lines, -20 lines 0 comments Download
A src/IceRegistersX8632.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 6 chunks +7 lines, -16 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 53 chunks +117 lines, -118 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
jvoung (off chromium)
6 years, 3 months ago (2014-09-18 19:00:15 UTC) #2
jvoung (off chromium)
Ah darn... I think I need to fill out the Condition Code table so that ...
6 years, 3 months ago (2014-09-18 19:01:27 UTC) #3
jvoung (off chromium)
On 2014/09/18 19:01:27, jvoung wrote: > Ah darn... I think I need to fill out ...
6 years, 3 months ago (2014-09-18 19:05:47 UTC) #4
Jim Stichnoth
LGTM. https://codereview.chromium.org/582113003/diff/60001/src/IceRegistersX8632.h File src/IceRegistersX8632.h (right): https://codereview.chromium.org/582113003/diff/60001/src/IceRegistersX8632.h#newcode29 src/IceRegistersX8632.h:29: val, Just so I understand this correctly, the ...
6 years, 3 months ago (2014-09-18 21:16:36 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/582113003/diff/60001/src/IceRegistersX8632.h File src/IceRegistersX8632.h (right): https://codereview.chromium.org/582113003/diff/60001/src/IceRegistersX8632.h#newcode29 src/IceRegistersX8632.h:29: val, On 2014/09/18 21:16:35, stichnot wrote: > Just so ...
6 years, 3 months ago (2014-09-19 00:52:47 UTC) #6
jvoung (off chromium)
6 years, 3 months ago (2014-09-19 01:18:15 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as bd385e4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698