Skip to content

RFC implement pseudo->ctype

Xi Wang linux-sparse 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3add ->ctype to struct pseudoflow.c linearize.c linearize.h +3 more+42 -360 replies
2/3remove ->type and ->size from struct instructioncse.c example.c flow.c +6 more+74 -950 replies
3/3sparse, llvm: sync with new struct instructionsparse-llvm.c+25 -250 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.

PatchPekka Enberg
SeriesA-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.

Read the v1 thread

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