struct MaskOps
Declaration
struct MaskOps { /* full declaration omitted */ };
Description
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.
Declared at: llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp:158
Member Variables
- public llvm::Value* Root
- public llvm::APInt Mask
- public bool MatchAndChain
- public bool FoundAnd1
Method Overview
- public MaskOps(unsigned int BitWidth, bool MatchAnds)
Methods
ΒΆMaskOps(unsigned int BitWidth, bool MatchAnds)
MaskOps(unsigned int BitWidth, bool MatchAnds)
Declared at: llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp:164
Parameters
- unsigned int BitWidth
- bool MatchAnds