From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18863 invoked by alias); 13 Feb 2010 04:36:52 -0000 Received: (qmail 18851 invoked by uid 22791); 13 Feb 2010 04:36:51 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DNS_FROM_RFC_BOGUSMX X-Spam-Check-By: sourceware.org Received: from sebabeach.org (HELO sebabeach.org) (64.165.110.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 13 Feb 2010 04:36:47 +0000 Received: by sebabeach.org (Postfix, from userid 500) id 4CB706E3DC; Fri, 12 Feb 2010 20:36:46 -0800 (PST) From: Doug Evans To: cgen@sourceware.org Subject: [commit] map each sformat to only one iformat Message-Id: <20100213043646.4CB706E3DC@sebabeach.org> Date: Sat, 13 Feb 2010 04:36:00 -0000 X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00014.txt.bz2 A minor simplification. It results in only a few more otherwise redundant sformats. 2010-02-12 Doug Evans * 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