RFC implement pseudo->ctype
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | add ->ctype to struct pseudoflow.c linearize.c linearize.h +3 more | +42 | 0 replies | |
| 2/3 | remove ->type and ->size from struct instructioncse.c example.c flow.c +6 more | +74 | 0 replies | |
| 3/3 | sparse, llvm: sync with new struct instructionsparse-llvm.c | +25 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Pekka Enberg |
|---|---|
| Series | A-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 0/3] implement pseudo->ctype
This patchset tries to implement Chris's `counter RFC': adding ->ctype to pseudo, while removing ->type and ->size from instruction. In this way, it provides easy access to type information for backend.
The first patch adds ->ctype to struct pseudo and doesn't touch struct instruction. It could be applied alone if we really want backward compatibility.
The second patch does more destructive work. It removes ->type and ->size from struct instruction and updates client uses.
The third patch updates sparse-llvm in a naive way, which should have been much simpler with the new ->ctype in pseudo. I guess in some cases ->ctype is even necessary. Consider the example below.
void foo(int x, ...);foo(1, 2, 3LL);
Is it possible to get the types of the 2nd and 3rd arguments in current code, which are simply PSEUDO_VAL?
Xi Wang (3):
add ->ctype to struct pseudo
remove ->type and ->size from struct instruction sparse, llvm: sync with new struct instruction
cse.c | 6 +-- example.c | 12 ++--- flow.c | 12 ++--- linearize.c | 147 +++++++++++++++++++++++++-------------------------------- linearize.h | 17 ++++--- memops.c | 4 +- simplify.c | 24 +++++----- sparse-llvm.c | 50 ++++++++++---------- sparse.c | 2 +- unssa.c | 3 +- 10 files changed, 131 insertions(+), 146 deletions(-)
Signature · 1 line
1.7.9.5