[#llvm-KnownBits-shl] = xref:llvm.adoc[llvm]::xref:llvm/KnownBits.adoc[KnownBits]::shl :relfileprefix: ../../ :mrdocs: Compute known bits for shl(LHS, RHS). NOTE: RHS (shift amount) bitwidth doesn't need to be the same as LHS. == Synopsis Declared in `<llvm/Support/KnownBits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:llvm/KnownBits.adoc[KnownBits] shl( xref:llvm/KnownBits.adoc[KnownBits] const& LHS, xref:llvm/KnownBits.adoc[KnownBits] const& RHS, bool NUW = false, bool NSW = false, bool ShAmtNonZero = false); ---- == Return Value Known bits for shl(LHS, RHS). == Parameters [cols="1,4"] |=== | Name| Description | *LHS* | Value being shifted. | *RHS* | Shift amount known bits. | *NUW* | True if the shift is known not to wrap unsigned. | *NSW* | True if the shift is known not to wrap signed. | *ShAmtNonZero* | True if the shift amount is known to be non‐zero. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#