Displaying 7 results from an estimated 7 matches for "addoperationact".
2013 Aug 08
3
[LLVMdev] Storage-Only Register Class?
Is there a way to define a register class that is storage-only? I want to
have an i8 register class that I can use for loads/stores/converts, but
that does not support arithmetic.
It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and
SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient, as the
legalizer just looks at whether or not the underlying type is legal (which
it is). So come instruction selection time I still have i8 adds. Do I
need to custom handle all 8-bit arithmetic,...
2013 Aug 08
0
[LLVMdev] Storage-Only Register Class?
...On Aug 8, 2013, at 7:35 AM, Justin Holewinski <justin.holewinski at gmail.com> wrote:
> Is there a way to define a register class that is storage-only? I want to have an i8 register class that I can use for loads/stores/converts, but that does not support arithmetic.
>
> It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient, as the legalizer just looks at whether or not the underlying type is legal (which it is). So come instruction selection time I still have i8 adds. Do I need to custom handle all 8-bit arithmetic,...
2013 Aug 08
2
[LLVMdev] Storage-Only Register Class?
...in Holewinski <justin.holewinski at gmail.com>
> wrote:
>
> > Is there a way to define a register class that is storage-only? I want
> to have an i8 register class that I can use for loads/stores/converts, but
> that does not support arithmetic.
> >
> > It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and
> SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient, as the
> legalizer just looks at whether or not the underlying type is legal (which
> it is). So come instruction selection time I still have i8 adds. Do I
> need to custom handle a...
2013 Aug 08
2
[LLVMdev] Storage-Only Register Class?
...> >
> > > > Is there a way to define a register class that is storage-only? I
> want
> > > to have an i8 register class that I can use for loads/stores/converts,
> but
> > > that does not support arithmetic.
> > > >
> > > > It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and
> > > SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient, as
> the
> > > legalizer just looks at whether or not the underlying type is legal
> (which
> > > it is). So come instruction selection time I still have i8...
2013 Aug 08
0
[LLVMdev] Storage-Only Register Class?
...at gmail.com>
> > wrote:
> >
> > > Is there a way to define a register class that is storage-only? I want
> > to have an i8 register class that I can use for loads/stores/converts, but
> > that does not support arithmetic.
> > >
> > > It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and
> > SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient, as the
> > legalizer just looks at whether or not the underlying type is legal (which
> > it is). So come instruction selection time I still have i8 adds. Do I
> > nee...
2013 Aug 27
0
[LLVMdev] Storage-Only Register Class?
...Is there a way to define a register class that is storage-only? I
> > want
> > > > to have an i8 register class that I can use for loads/stores/converts,
> > but
> > > > that does not support arithmetic.
> > > > >
> > > > > It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and
> > > > SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient, as
> > the
> > > > legalizer just looks at whether or not the underlying type is legal
> > (which
> > > > it is). So come instruction select...
2013 Aug 29
1
[LLVMdev] Storage-Only Register Class?
...s that is storage-only?
> I
> > > want
> > > > > to have an i8 register class that I can use for
> loads/stores/converts,
> > > but
> > > > > that does not support arithmetic.
> > > > > >
> > > > > > It seems addOperationAction(ISD::ADD, MVT::i8, Promote) and
> > > > > SetPromotedToType(ISD::ADD, MVT::i8, MVT::i16) are not sufficient,
> as
> > > the
> > > > > legalizer just looks at whether or not the underlying type is legal
> > > (which
> > > > > it is...