Lines Matching full:mask
21 /// Deduce the least significant bit aligned shift and mask values for a binary
23 /// pair<shift, mask>. That is to say \p Value == ~(mask << shift)
29 unsigned Mask = 0; in getShiftMask() local
31 Mask = ~Value; in getShiftMask()
32 for (; !(Mask & 1); Shift++, Mask >>= 1) { in getShiftMask()
35 return std::make_pair(Shift, Mask); in getShiftMask()
38 /// Provided with the MCExpr * \p Val, uint32 \p Mask and \p Shift, will return
42 /// For example, given MCExpr *Val, Mask == 0xf, Shift == 6 the returned MCExpr
44 inline const MCExpr *maskShiftSet(const MCExpr *Val, uint32_t Mask, in maskShiftSet() argument
46 if (Mask) { in maskShiftSet()
47 const MCExpr *MaskExpr = MCConstantExpr::create(Mask, Ctx); in maskShiftSet()
57 /// Provided with the MCExpr * \p Val, uint32 \p Mask and \p Shift, will return
61 /// For example, given MCExpr *Val, Mask == 0xf, Shift == 6 the returned MCExpr
63 inline const MCExpr *maskShiftGet(const MCExpr *Val, uint32_t Mask, in maskShiftGet() argument
69 if (Mask) { in maskShiftGet()
70 const MCExpr *MaskExpr = MCConstantExpr::create(Mask, Ctx); in maskShiftGet()