From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18203 invoked by alias); 25 Sep 2009 19:53:42 -0000 Received: (qmail 18195 invoked by uid 22791); 25 Sep 2009 19:53:42 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,DNS_FROM_RFC_BOGUSMX,J_CHICKENPOX_33,J_CHICKENPOX_73 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; Fri, 25 Sep 2009 19:53:38 +0000 Received: by sebabeach.org (Postfix, from userid 500) id 425F36E3D9; Fri, 25 Sep 2009 12:53:37 -0700 (PDT) From: Doug Evans To: cgen@sourceware.org Subject: s-parallel cleanup, better error messages for rtl evaluation Message-Id: <20090925195337.425F36E3D9@sebabeach.org> Date: Fri, 25 Sep 2009 19:53: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: 2009-q3/txt/msg00101.txt.bz2 Hi. fyi, I just checked this in. [tested with m32r sim, all sid sims, all opcodes ports, no changes in output] It fixes code generation for parallels (e.g. `if' inside parallel is now supported) by doing a proper traversal of the rtx. [I don't think this is the final word though. But in normal form I'm approaching this incrementally, I certainly haven't made things worse.] It also improves the error message during, for example, c code generation by including the pretty-printed outer expression. [It's not finished though, xops aren't printed in a user-friendly form. That'll come in a later patch.] 2009-09-25 Doug Evans * operand.scm (/anyof-merge-setter): Handle set-quiet. * rtl.scm (rtx-single-set?): Handle set-quiet. * rtl-c.scm (estate-make-for-rtl-c): Delete args context, owner, rtl-cover-fns?, macro?. All callers updated. (estate-make-for-normal-rtl-c): Delete, have all callers call estate-make-for-rtl-c directly. (rtl-c-parsed): Pass #:outer-expr to estate-make-for-rtl-c. (rtl-c, rtl-c-expr-parsed, rtl-c-expr, rtl-c++-parsed, rtl-c++): Ditto. * rtl-c.scm (/par-replace-set-dest-expr-fn): New function, replaces /par-replace-set-dests. (/par-replace-set-src-expr-fn): New function, replaces /par-replace-set-srcs. (s-parallel): Rewrite. * rtl.scm (rtx-pretty-strdump): New function. * rtl-traverse.scm (/rtx-canon-error): Use it. (): New member outer-expr. (estate-error): Include outer expression in error message if present.