LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
MaskOps Struct Reference

This is used by foldAnyOrAllBitsSet() to capture a source value (Root) and the bit indexes (Mask) needed by a masked compare. More...

Collaboration diagram for MaskOps:
Collaboration graph
[legend]

Public Member Functions

 MaskOps (unsigned BitWidth, bool MatchAnds)
 

Public Attributes

ValueRoot
 
APInt Mask
 
bool MatchAndChain
 
bool FoundAnd1
 

Detailed 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.

Definition at line 159 of file AggressiveInstCombine.cpp.

Constructor & Destructor Documentation

◆ MaskOps()

MaskOps::MaskOps ( unsigned  BitWidth,
bool  MatchAnds 
)
inline

Definition at line 165 of file AggressiveInstCombine.cpp.

Member Data Documentation

◆ FoundAnd1

bool MaskOps::FoundAnd1

Definition at line 163 of file AggressiveInstCombine.cpp.

Referenced by matchAndOrChain().

◆ Mask

APInt MaskOps::Mask

Definition at line 161 of file AggressiveInstCombine.cpp.

Referenced by matchAndOrChain().

◆ MatchAndChain

bool MaskOps::MatchAndChain

Definition at line 162 of file AggressiveInstCombine.cpp.

Referenced by matchAndOrChain().

◆ Root

Value* MaskOps::Root

Definition at line 160 of file AggressiveInstCombine.cpp.

Referenced by matchAndOrChain().


The documentation for this struct was generated from the following file: