This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
[commit] map each sformat to only one iformat
- From: Doug Evans <dje at sebabeach dot org>
- To: cgen at sourceware dot org
- Date: Fri, 12 Feb 2010 20:36:46 -0800 (PST)
- Subject: [commit] map each sformat to only one iformat
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