* [commit] map each sformat to only one iformat
@ 2010-02-13 4:36 Doug Evans
0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2010-02-13 4:36 UTC (permalink / raw)
To: cgen
A minor simplification.
It results in only a few more otherwise redundant sformats.
2010-02-12 Doug Evans <dje@sebabeach.org>
* iformat.scm (/sfmt-search-key): Use iformat key instead of list
of ifields.
Index: iformat.scm
===================================================================
RCS file: /cvs/src/src/cgen/iformat.scm,v
retrieving revision 1.17
diff -u -p -r1.17 iformat.scm
--- iformat.scm 13 Feb 2010 03:39:15 -0000 1.17
+++ iformat.scm 13 Feb 2010 04:34:05 -0000
@@ -284,11 +284,11 @@
")")))
)
(list
+ ;; Use the iformat key so that each sformat maps to only one iformat.
+ (if (= (length sorted-used-iflds) 0)
+ "no-used-ifields"
+ (ifmt-key (insn-ifmt insn)))
cti?
- (insn-length insn)
- (string-map (lambda (ifld)
- (string-append " (" (obj:str-name ifld) " " (ifld-ilk ifld) ")"))
- sorted-used-iflds)
(string-map op-key
sem-in-ops)
(string-map op-key
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-13 4:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13 4:36 [commit] map each sformat to only one iformat 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).