|
LLVM
7.0.0
|
This is used by foldAnyOrAllBitsSet() to capture a source value (Root) and the bit indexes (Mask) needed by a masked compare. More...
Public Member Functions | |
| MaskOps (unsigned BitWidth, bool MatchAnds) | |
Public Attributes | |
| Value * | Root |
| APInt | Mask |
| bool | MatchAndChain |
| bool | FoundAnd1 |
This is used by foldAnyOrAllBitsSet() to capture a source value (Root) and the bit indexes (Mask) needed by a masked compare.
If we're matching a chain of 'and' ops, then we also need to capture the fact that we saw an "and X, 1", so that's an extra return value for that case.
Definition at line 66 of file AggressiveInstCombine.cpp.
Definition at line 72 of file AggressiveInstCombine.cpp.
| bool MaskOps::FoundAnd1 |
Definition at line 70 of file AggressiveInstCombine.cpp.
Referenced by matchAndOrChain().
| APInt MaskOps::Mask |
Definition at line 68 of file AggressiveInstCombine.cpp.
Referenced by matchAndOrChain().
| bool MaskOps::MatchAndChain |
Definition at line 69 of file AggressiveInstCombine.cpp.
Referenced by matchAndOrChain().
| Value* MaskOps::Root |
Definition at line 67 of file AggressiveInstCombine.cpp.
Referenced by matchAndOrChain().
1.8.13