public inbox for cgen-cvs@sourceware.org help / color / mirror / Atom feed
From: devans@sourceware.org To: cgen-cvs@sourceware.org Subject: src/cgen ChangeLog attr.scm hardware.scm ifiel ... Date: Sat, 18 Jul 2009 20:44:00 -0000 [thread overview] Message-ID: <20090718204458.13140.qmail@sourceware.org> (raw) CVSROOT: /cvs/src Module name: src Changes by: devans@sourceware.org 2009-07-18 20:44:58 Modified files: cgen : ChangeLog attr.scm hardware.scm ifield.scm insn.scm mach.scm minsn.scm model.scm operand.scm sid.scm sim.scm utils-cgen.scm Log message: Use hash tables to record ifields, operands, insns, macro-insns. * attr.scm (attr-builtin!): Tweak some comments. * hardware.scm (hardware-builtin!): Call all-isas-attr-value. * ifield.scm (<ifield>): Subclass from <ordered-ident> instead of <ident>. (<multi-ifield>): New constructor. (ifield-builtin!): Add isa attr to f-nil, f-anyof. * insn.scm (<insn>): Subclass from <ordered-ident> instead of <ident>. (-sub-insn-make!): Add hack to avoid differences in generated code. (multi-insn-instantiate!): Add total number of multi-insns to logging message. * mach.scm (<arch>): Rename members ifld-list, op-list, insn-list, minsn-list to foo-table. New member next-ordinal. Update getters/setters. (arch-ifld-list, arch-op-list, arch-insn-list, arch-minsn-list): New functions. (-get-next-ordinal!, -get-lowest-ordinal): New function. (-make-ident-object-table, -ident-object-table->list, -ident-object-table-add!, -ident-object-table-lookup): New functions. (current-ifld-list, current-ifld-add! current-ifld-lookup, -ifld-already-defined?): Rewrite. (current-op-list, current-op-add! current-op-lookup, -op-already-defined?): Rewrite. (current-raw-insn-list, insn-list-car, insn-list-splice!): Delete. (current-insn-list, current-insn-add! current-insn-lookup, -insn-already-defined?): Rewrite. (current-minsn-list, current-minsn-add! current-minsn-lookup, -minsn-already-defined?): Rewrite. (all-isas-attr-value, all-isas-attr, attr-isa-list): New functions. (MAX-VIRTUAL-INSNS): Define. (arch-analyze-insns!): Add hack to avoid differences in generated code. Update use of arch-insn-list. (mach-init!): Initialize ifld-table, op-table, insn-table, minsn-table. (arch-finish!): Delete references to ifld-table, op-table, insn-table, minsn-table. * minsn.scm (<macro-insn>): Subclass from <ordered-ident> instead of <ident>. New constructor. * operand.scm (<operand>): Subclass from <ordered-ident> instead of <ident>. * sid.scm (-virtual-insn-add!): New function. (-create-virtual-insns!): Call it. (-fill-sim-insn-list!): Rewrite. * sim.scm (-virtual-insn-add!, -create-virtual-insns!): New functions. (sim-finish!): Move contents to -create-virtual-insns!, and call it. * utils-cgen.scm (<ordered-ident>): New class. (obj-ordinal, obj-set-ordinal!): New functions. (add-ident-methods!): Delete. * model.scm (parse-insn-timing): Change logging message to level 3. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/ChangeLog.diff?cvsroot=src&r1=1.310&r2=1.311 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/attr.scm.diff?cvsroot=src&r1=1.7&r2=1.8 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/hardware.scm.diff?cvsroot=src&r1=1.6&r2=1.7 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/ifield.scm.diff?cvsroot=src&r1=1.9&r2=1.10 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/insn.scm.diff?cvsroot=src&r1=1.19&r2=1.20 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/mach.scm.diff?cvsroot=src&r1=1.11&r2=1.12 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/minsn.scm.diff?cvsroot=src&r1=1.3&r2=1.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/model.scm.diff?cvsroot=src&r1=1.5&r2=1.6 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/operand.scm.diff?cvsroot=src&r1=1.13&r2=1.14 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/sid.scm.diff?cvsroot=src&r1=1.19&r2=1.20 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/sim.scm.diff?cvsroot=src&r1=1.17&r2=1.18 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/cgen/utils-cgen.scm.diff?cvsroot=src&r1=1.8&r2=1.9
reply other threads:[~2009-07-18 20:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090718204458.13140.qmail@sourceware.org \ --to=devans@sourceware.org \ --cc=cgen-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).