This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Vector Registers


Howdy.

Ranjith Kumaran writes:
 > Are there any examples out there of a good way of modelling vector 
 > registers?

Modelling N-dimensional registers (N>1) complicates things a fair bit.
I tried to stay with the GCC model on this one.
[We do have a better language than C though, but we also have to
consider the application that will ultimately be using the data.
Maybe some day if it doesn't excessively complicate the common case.]
Passing around a single number to designate the register is nice and
simple.  Have you tried (figuratively) flattening the vector out?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]