Given operands for a Shl, fold the result or return null.
Synopsis
Declared in <llvm/Analysis/InstructionSimplify.h>
Value*
simplifyShlInst(
Value* Op0,
Value* Op1,
bool IsNSW,
bool IsNUW,
SimplifyQuery const& Q);
Return Value
The folded value, or null if no simplification was found.
Parameters
Name |
Description |
Op0 |
Value being shifted. |
Op1 |
Shift amount. |
IsNSW |
Whether the shl has the nsw flag. |
IsNUW |
Whether the shl has the nuw flag. |
Q |
Simplification query providing analyses and flags. |
Created with MrDocs