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

Issue 1639063002: UnimplementedLoweringError's message now includes the instruction name. (Closed)

Created:
4 years, 11 months ago by Eric Holk
Modified:
4 years, 11 months ago
Reviewers:
Jim Stichnoth, Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Use getInstName() in some instances of dump. #

Patch Set 3 : #

Patch Set 4 : Formatting fix" #

Patch Set 5 : Remove unnecessary include #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -4 lines) Patch
M src/IceInst.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/IceInst.cpp View 1 2 3 4 4 chunks +48 lines, -3 lines 4 comments Download
M src/IceTargetLowering.h View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 7 (2 generated)
Eric Holk
This has the changes I pulled out of the vector subtraction patch. Jim, can you ...
4 years, 11 months ago (2016-01-27 20:41:25 UTC) #2
John
lgtm https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp File src/IceInst.cpp (right): https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp#newcode87 src/IceInst.cpp:87: return name You could have just returned a ...
4 years, 11 months ago (2016-01-27 21:14:46 UTC) #3
Eric Holk
https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp File src/IceInst.cpp (right): https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp#newcode87 src/IceInst.cpp:87: return name On 2016/01/27 21:14:46, John wrote: > You ...
4 years, 11 months ago (2016-01-27 21:28:10 UTC) #4
Eric Holk
Committed patchset #5 (id:80001) manually as e37076a176e04eee0f35058ccd2109754c193015 (presubmit successful).
4 years, 11 months ago (2016-01-27 22:06:39 UTC) #6
Jim Stichnoth
4 years, 11 months ago (2016-01-27 22:31:51 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp
File src/IceInst.cpp (right):

https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp#newcode85
src/IceInst.cpp:85: #define X(InstrKind, name)                                  
                  \
If you want to take the X() approach, I would add a new ICEINST_TABLE x-macro to
IceInst.def, use it here, and also use it in IceInst.h for the definition of
enum InstKind.

https://codereview.chromium.org/1639063002/diff/80001/src/IceInst.cpp#newcode668
src/IceInst.cpp:668: Str << " = alloca i8, i32 ";
I was actually thinking this should be changed to:

  Str << " = " << getInstName() << " i8, i32 ";

and similar for the other instructions wherever a hard-coded instruction name is
used, much like what you did for InstArithmetic.

The idea is that exercising getInstName() in the dump() methods gives it a
fighting chance of actually being tested and not rotting.

https://codereview.chromium.org/1639063002/diff/80001/src/IceTargetLowering.h
File src/IceTargetLowering.h (right):

https://codereview.chromium.org/1639063002/diff/80001/src/IceTargetLowering.h...
src/IceTargetLowering.h:59: ("Not yet implemented: " +
Instr->getInstName()).c_str());           \
The extra level of parentheses is odd, i.e.
  llvm_unreachable(("foo"));

Powered by Google App Engine
This is Rietveld 408576698