From: "Frank Ch. Eigler" <fche@redhat.com>
To: Lev Yudalevich <lyudalev@gmail.com>
Cc: cgen@sourceware.org
Subject: Re: ifield's value processing -- help is needed
Date: Tue, 11 Jun 2013 14:24:00 -0000 [thread overview]
Message-ID: <20130611142000.GA31128@redhat.com> (raw)
In-Reply-To: <CA+zUDe3_5DFAvGJKFAQfC+euXqQhi4WAj_9RDqCVAsJe_heQ9A@mail.gmail.com>
Hi -
> (I'm not 100% sure if this is a correct place to ask, [...]
It is.
> I'm wandering if there is a possibility to specify (either in a `.cpu'
> file or in a corresponding `.opc' file) an additional processing
> function for a value of an instruction's ifield. For example, I'd like
> to define several isa sets. Suppose that these sets differ by opcode
> values only. In this case, I may supply a simple lookup function that
> picks the correct value depending on the isa. [...]
Have you considered using macros to expand to explicit isa-specific
instructions (basically generating the cartesian product of
instruction X isa in the cgen model), as opposed to trying to do this
selection based upon a run-time function call?
- FChE
next prev parent reply other threads:[~2013-06-11 14:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 9:58 Lev Yudalevich
2013-06-11 14:24 ` Frank Ch. Eigler [this message]
2013-06-12 9:27 ` Lev Yudalevich
2013-06-12 22:52 ` Frank Ch. Eigler
2013-06-16 13:59 ` Lev Yudalevich
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=20130611142000.GA31128@redhat.com \
--to=fche@redhat.com \
--cc=cgen@sourceware.org \
--cc=lyudalev@gmail.com \
/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: link
Be 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).