[llvm-dev] shl

Roman Lebedev via llvm-dev llvm-dev at lists.llvm.org
Wed May 15 13:08:56 PDT 2019


On Wed, May 15, 2019 at 11:03 PM Josh Sharp via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hi,
> I got a question about the SDNode "shl"
>
> def shl        : SDNode<"ISD::SHL"       , SDTIntShiftOp>;
>
> Does it stand for "shift logical" and in what direction does it shift?
shift left

> How to shift in the other direction?
ISD::SRA (arithmetic), ISD::SRL (logical)
See https://llvm.org/doxygen/ISDOpcodes_8h_source.html#l00429

> Thanks.
Roman.

> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

On Wed, May 15, 2019 at 11:03 PM Josh Sharp via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hi,
> I got a question about the SDNode "shl"
>
> def shl        : SDNode<"ISD::SHL"       , SDTIntShiftOp>;
>
> Does it stand for "shift logical" and in what direction does it shift?
> How to shift in the other direction?
>
> Thanks.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list