[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 10/14] target/hexagon: import parser for idef-parser
From: |
Alessandro Di Federico |
Subject: |
Re: [PATCH v5 10/14] target/hexagon: import parser for idef-parser |
Date: |
Mon, 5 Jul 2021 18:47:41 +0200 |
On Thu, 24 Jun 2021 03:55:35 +0000
Taylor Simpson <tsimpson@quicinc.com> wrote:
> > +void gen_deposit_op(Context *c,
> > + YYLTYPE *locp,
> > + HexValue *dest,
> > + HexValue *value,
> > + HexValue *index,
> > + HexCast *cast)
>
> What's the difference between this and the gen_rdeposit_op above?
`gen_deposit_op` expects index and width (cast) to be immediates, while
`gen_rdeposit_op` does not.
We could merge them together, but it would just be a big "if" over the
whole function.
> > +HexValue gen_rextract_op(Context *c,
> > + YYLTYPE *locp,
> > + HexValue *source,
> > + int begin,
> > + int width) {
> > +
> > +HexValue gen_extract_op(Context *c,
> > + YYLTYPE *locp,
> > + HexValue *source,
> > + HexValue *index,
> > + HexExtract *extract) {
>
> What's the difference between this ant the gen_rextract_op above?
As before.
--
Alessandro Di Federico
rev.ng
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v5 10/14] target/hexagon: import parser for idef-parser,
Alessandro Di Federico <=