* [commit] allow enums as register numbers
@ 2009-11-05 17:00 Doug Evans
0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2009-11-05 17:00 UTC (permalink / raw)
To: cgen
Hi.
I checked in this patch.
enums weren't supported as indices to reg, etc. Blech.
Tested with gen-all and make check.
2009-11-05 Doug Evans <dje@sebabeach.org>
* utils.scm (reduce): Delete.
* rtl-traverse.scm (/rtx-canon-rtx-enum): Tweak local name.
* enum.scm (gen-enum-sym): Make consistent with gen-enum-decl
regarding PREFIX attribute handling.
* operand.scm (<hw-index>): Add enum to possible types, all uses
updated.
(hw-index-constant?, hw-index-constant-value): New functions.
(make-enum-hw-index, hw-index-enum-name, hw-index-enum-value,
hw-index-enum-obj): New functions.
(/operand-parse): Handle enum indices.
* intrinsics.scm (md-operand:fixed-register): Use hw-index-constant?,
hw-index-constant-value.
* rtl.scm (rtx-constant-value): Fix handling of enums.
* rtx-funcs.scm (enum): Ditto.
* sid.scm (<hardware-base> cxmake-get): Only ifield indices are
currently supported here.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-05 17:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-05 17:00 [commit] allow enums as register numbers Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).