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

Issue 353553004: Add support for vector types and vector constants. (Closed)

Created:
6 years, 6 months ago by wala
Modified:
6 years, 5 months ago
CC:
native-client-reviews_googlegroups.com, JF
Base URL:
https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Add support for vector types. - Add vector types to the type table. - Add support for parsing vector types in llvm2ice. - Legalize undef vector values to zero. Test that undef vector values are lowered correctly. 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=928f129

Patch Set 1 #

Total comments: 12

Patch Set 2 : 1) Fix alignment in type table. 2) Add VECT128_BYTES constant. 3) add _movp() function. #

Total comments: 30

Patch Set 3 : Implement changes mentioned in comments. #

Total comments: 2

Patch Set 4 : 1) Remove StringList. 2) Assign redundant assign TODO to stichnot. 3) Fix RUN line. #

Total comments: 14

Patch Set 5 : Remove support for vector constants. #

Total comments: 2

Patch Set 6 : Add a TODO about return values of vector type. #

Total comments: 6

Patch Set 7 : Print out types in error messages. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -46 lines) Patch
M src/IceConverter.cpp View 1 2 3 4 2 chunks +39 lines, -0 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 6 2 chunks +26 lines, -0 lines 0 comments Download
M src/IceInstX8632.h View 1 2 3 4 4 chunks +23 lines, -0 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 4 6 chunks +44 lines, -0 lines 0 comments Download
M src/IceInstX8632.def View 1 chunk +17 lines, -10 lines 0 comments Download
M src/IceOperand.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 3 4 4 chunks +9 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 13 chunks +64 lines, -11 lines 2 comments Download
M src/IceTypes.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M src/IceTypes.cpp View 2 chunks +26 lines, -2 lines 0 comments Download
M src/IceTypes.def View 1 1 chunk +19 lines, -12 lines 0 comments Download
M tests_lit/llvm2ice_tests/undef.ll View 1 2 3 4 1 chunk +62 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
wala
6 years, 6 months ago (2014-06-25 21:14:20 UTC) #1
jvoung (off chromium)
+cc JF if you want to offer some thoughts too Otherwise, here's my initial pass. ...
6 years, 6 months ago (2014-06-26 00:45:41 UTC) #2
wala
https://codereview.chromium.org/353553004/diff/1/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/353553004/diff/1/src/IceDefs.h#newcode71 src/IceDefs.h:71: typedef llvm::SmallVector<bool, 16> BitVect; On 2014/06/26 00:45:40, jvoung wrote: ...
6 years, 6 months ago (2014-06-26 17:32:42 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/353553004/diff/1/src/IceTargetLoweringX8632.h File src/IceTargetLoweringX8632.h (right): https://codereview.chromium.org/353553004/diff/1/src/IceTargetLoweringX8632.h#newcode199 src/IceTargetLoweringX8632.h:199: Context.insert(InstX8632Movp::create(Func, Dest, Src0)); On 2014/06/26 17:32:42, wala wrote: > ...
6 years, 5 months ago (2014-06-26 23:33:47 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/353553004/diff/20001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/353553004/diff/20001/src/IceDefs.h#newcode69 src/IceDefs.h:69: // TODO(wala): Switch to std::array after C++11 Assign this ...
6 years, 5 months ago (2014-06-27 18:30:17 UTC) #5
wala
https://codereview.chromium.org/353553004/diff/20001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/353553004/diff/20001/src/IceDefs.h#newcode70 src/IceDefs.h:70: typedef llvm::SmallVector<char, 16> Vect128; On 2014/06/27 18:30:16, stichnot wrote: ...
6 years, 5 months ago (2014-06-27 21:09:19 UTC) #6
jvoung (off chromium)
LGTM wrt my comments https://codereview.chromium.org/353553004/diff/40001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/353553004/diff/40001/src/IceDefs.h#newcode68 src/IceDefs.h:68: typedef std::vector<IceString> StringList; I don't ...
6 years, 5 months ago (2014-06-27 22:33:24 UTC) #7
Jim Stichnoth
LGTM for my comments. Please don't push until JF get a look. https://codereview.chromium.org/353553004/diff/20001/src/IceOperand.h File src/IceOperand.h ...
6 years, 5 months ago (2014-06-27 23:11:05 UTC) #8
wala
I've implemented both your suggestions in the latest patch set. I also noticed a small ...
6 years, 5 months ago (2014-06-27 23:22:17 UTC) #9
JF
https://codereview.chromium.org/353553004/diff/100001/src/IceDefs.h File src/IceDefs.h (right): https://codereview.chromium.org/353553004/diff/100001/src/IceDefs.h#newcode71 src/IceDefs.h:71: typedef llvm::SmallVector<char, VECT128_BYTES> Vect128; You should use uint8_t here. ...
6 years, 5 months ago (2014-06-30 17:48:50 UTC) #10
wala
I've made some major changes to the patch (in particular, I've decided to remove support ...
6 years, 5 months ago (2014-06-30 22:13:25 UTC) #11
JF
https://codereview.chromium.org/353553004/diff/100001/tests_lit/llvm2ice_tests/vector-const.ll File tests_lit/llvm2ice_tests/vector-const.ll (right): https://codereview.chromium.org/353553004/diff/100001/tests_lit/llvm2ice_tests/vector-const.ll#newcode158 tests_lit/llvm2ice_tests/vector-const.ll:158: extremes: On 2014/06/30 22:13:24, wala wrote: > On 2014/06/30 ...
6 years, 5 months ago (2014-06-30 22:24:04 UTC) #12
wala
https://codereview.chromium.org/353553004/diff/100001/tests_lit/llvm2ice_tests/vector-const.ll File tests_lit/llvm2ice_tests/vector-const.ll (right): https://codereview.chromium.org/353553004/diff/100001/tests_lit/llvm2ice_tests/vector-const.ll#newcode158 tests_lit/llvm2ice_tests/vector-const.ll:158: extremes: On 2014/06/30 22:24:04, JF wrote: > On 2014/06/30 ...
6 years, 5 months ago (2014-06-30 22:47:40 UTC) #13
Karl
https://codereview.chromium.org/353553004/diff/20001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/353553004/diff/20001/src/IceTargetLoweringX8632.cpp#newcode91 src/IceTargetLoweringX8632.cpp:91: llvm::raw_string_ostream BaseOS(Result); On 2014/06/27 21:09:19, wala wrote: > On ...
6 years, 5 months ago (2014-07-01 20:31:55 UTC) #14
Jim Stichnoth
On 2014/07/01 20:31:55, Karl wrote: > https://codereview.chromium.org/353553004/diff/20001/src/IceTargetLoweringX8632.cpp > File src/IceTargetLoweringX8632.cpp (right): > > https://codereview.chromium.org/353553004/diff/20001/src/IceTargetLoweringX8632.cpp#newcode91 > ...
6 years, 5 months ago (2014-07-07 17:23:01 UTC) #15
Jim Stichnoth
Still LGTM. https://codereview.chromium.org/353553004/diff/140001/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/353553004/diff/140001/src/IceGlobalContext.cpp#newcode242 src/IceGlobalContext.cpp:242: llvm_unreachable("Unsupported type"); Add the type name to ...
6 years, 5 months ago (2014-07-07 17:47:23 UTC) #16
wala
https://codereview.chromium.org/353553004/diff/140001/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/353553004/diff/140001/src/IceGlobalContext.cpp#newcode242 src/IceGlobalContext.cpp:242: llvm_unreachable("Unsupported type"); On 2014/07/07 17:47:23, stichnot wrote: > Add ...
6 years, 5 months ago (2014-07-07 21:33:41 UTC) #17
jvoung (off chromium)
one note -- otherwise LGTM https://codereview.chromium.org/353553004/diff/180001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/353553004/diff/180001/src/IceTargetLoweringX8632.cpp#newcode203 src/IceTargetLoweringX8632.cpp:203: VectorRegisters[val] = isFP; \ ...
6 years, 5 months ago (2014-07-07 22:48:51 UTC) #18
wala
https://codereview.chromium.org/353553004/diff/180001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/353553004/diff/180001/src/IceTargetLoweringX8632.cpp#newcode203 src/IceTargetLoweringX8632.cpp:203: VectorRegisters[val] = isFP; \ On 2014/07/07 22:48:51, jvoung wrote: ...
6 years, 5 months ago (2014-07-07 23:11:20 UTC) #19
wala
6 years, 5 months ago (2014-07-07 23:50:52 UTC) #20
Message was sent while issue was closed.
Committed patchset #7 manually as r928f129 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698