Home
last modified time | relevance | path

Searched refs:Mask (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/third_party/skia/experimental/graphite/src/
DEnumBitMask.h36 class Mask {
38 SK_ALWAYS_INLINE constexpr Mask(E e) : Mask((int)e) {} in Mask() function
42 SK_ALWAYS_INLINE bool operator==(Mask m) const { return fValue == m.fValue; }
43 SK_ALWAYS_INLINE bool operator!=(Mask m) const { return fValue != m.fValue; }
45 SK_ALWAYS_INLINE constexpr Mask operator|(Mask m) const { return Mask(fValue | m.fValue); }
46 SK_ALWAYS_INLINE constexpr Mask operator&(Mask m) const { return Mask(fValue & m.fValue); }
47 SK_ALWAYS_INLINE constexpr Mask operator^(Mask m) const { return Mask(fValue ^ m.fValue); }
48 SK_ALWAYS_INLINE constexpr Mask operator~() const { return Mask(~fValue); }
50 SK_ALWAYS_INLINE Mask& operator|=(Mask m) { return *this = *this | m; }
51 SK_ALWAYS_INLINE Mask& operator&=(Mask m) { return *this = *this & m; }
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DLaneBitmask.h46 explicit constexpr LaneBitmask(Type V) : Mask(V) {} in LaneBitmask()
48 constexpr bool operator== (LaneBitmask M) const { return Mask == M.Mask; }
49 constexpr bool operator!= (LaneBitmask M) const { return Mask != M.Mask; }
50 constexpr bool operator< (LaneBitmask M) const { return Mask < M.Mask; }
51 constexpr bool none() const { return Mask == 0; } in none()
52 constexpr bool any() const { return Mask != 0; } in any()
53 constexpr bool all() const { return ~Mask == 0; } in all()
56 return LaneBitmask(~Mask);
59 return LaneBitmask(Mask | M.Mask);
62 return LaneBitmask(Mask & M.Mask);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl-no-opt/asm/comp/
Dbitfield-signed-operations.asm.comp5 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
6 return (Base & ~Mask) | ((Insert << Offset) & Mask);
11 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
12 return (Base & ~Mask) | ((Insert << Offset) & Mask);
17 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
18 return (Base & ~Mask) | ((Insert << Offset) & Mask);
23 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
24 return (Base & ~Mask) | ((Insert << Offset) & Mask);
29 uint Mask = Count == 32 ? 0xffffffff : ((1 << Count) - 1);
30 return (Base >> Offset) & Mask;
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl-no-opt/comp/
Dbitfield.comp3 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
4 return (Base & ~Mask) | ((Insert << Offset) & Mask);
9 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
10 return (Base & ~Mask) | ((Insert << Offset) & Mask);
15 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
16 return (Base & ~Mask) | ((Insert << Offset) & Mask);
21 uint Mask = Count == 32 ? 0xffffffff : (((1u << Count) - 1) << (Offset & 31));
22 return (Base & ~Mask) | ((Insert << Offset) & Mask);
27 uint Mask = Count == 32 ? 0xffffffff : ((1 << Count) - 1);
28 return (Base >> Offset) & Mask;
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIModeRegister.cpp42 unsigned Mask; member
45 Status() : Mask(0), Mode(0){}; in Status()
47 Status(unsigned NewMask, unsigned NewMode) : Mask(NewMask), Mode(NewMode) { in Status()
48 Mode &= Mask; in Status()
54 return Status((Mask | S.Mask), ((Mode & ~S.Mask) | (S.Mode & S.Mask))); in merge()
60 return Status(Mask & ~newMask, Mode & ~newMask); in mergeUnknown()
66 unsigned NewMask = (Mask & S.Mask) & (Mode ^ ~S.Mode); in intersect()
73 return Status((S.Mask & (Mode ^ S.Mode)) | (~Mask & S.Mask), S.Mode); in delta()
77 return (Mask == S.Mask) && (Mode == S.Mode); in operator ==()
83 return ((Mask & S.Mask) == S.Mask) && ((Mode & S.Mask) == S.Mode); in isCompatible()
[all …]
DAMDGPUArgumentUsageInfo.h37 unsigned Mask; member
43 ArgDescriptor(unsigned Val = 0, unsigned Mask = ~0u,
45 : Reg(Val), Mask(Mask), IsStack(IsStack), IsSet(IsSet) {} in Reg()
47 static ArgDescriptor createRegister(Register Reg, unsigned Mask = ~0u) {
48 return ArgDescriptor(Reg, Mask, false, true);
51 static ArgDescriptor createStack(unsigned Offset, unsigned Mask = ~0u) {
52 return ArgDescriptor(Offset, Mask, true, true);
55 static ArgDescriptor createArg(const ArgDescriptor &Arg, unsigned Mask) { in createArg()
56 return ArgDescriptor(Arg.Reg, Mask, Arg.IsStack, Arg.IsSet); in createArg()
82 return Mask; in getMask()
[all …]
DGCNRegBankReassign.cpp78 : Reg(r), SubReg(s), Mask(m) {} in OperandMask()
81 unsigned Mask; member in __anone7cbde900111::GCNRegBankReassign::OperandMask
193 unsigned getFreeBanks(unsigned Mask, unsigned UsedBanks) const;
198 unsigned getFreeBanks(unsigned Reg, unsigned SubReg, unsigned Mask,
316 unsigned Mask = (1 << Size) - 1; in getRegBankMask() local
323 Mask &= ~Used; in getRegBankMask()
324 Mask <<= (Bank == -1) ? Reg % NUM_VGPR_BANKS : unsigned(Bank); in getRegBankMask()
325 return (Mask | (Mask >> NUM_VGPR_BANKS)) & VGPR_BANK_MASK; in getRegBankMask()
336 unsigned Mask = (1 << Size) - 1; in getRegBankMask() local
342 Mask &= ~Used; in getRegBankMask()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp96 void converted(Instruction *I, Value *V, int Mask, bool Worthy) { in converted() argument
97 ConvertedInsts[I] = std::make_tuple(V, Mask, Worthy); in converted()
204 int Mask = 0; in convertFCmp() local
206 Mask |= Masks[WhichConst][0]; in convertFCmp()
208 Mask |= Masks[WhichConst][1]; in convertFCmp()
210 Mask |= Masks[WhichConst][2]; in convertFCmp()
212 Mask |= Masks[WhichConst][3]; in convertFCmp()
220 Mask &= SystemZ::TDCMASK_PLUS; in convertFCmp()
221 Mask |= Mask >> 1; in convertFCmp()
229 converted(&I, Op0, Mask, Worthy); in convertFCmp()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/relate/
Dinterface.hpp238 template <typename Mask, typename Strategy>
241 Mask const& mask, in apply()
252 Mask in apply()
264 template <typename Mask, typename Strategy>
268 Mask const& m_mask;
271 visitor(Geometry2 const& geometry2, Mask const& mask, Strategy const& strategy) in visitor()
282 template <typename Mask, typename Strategy>
286 Mask const& mask, in apply()
289 return boost::apply_visitor(visitor<Mask, Strategy>(geometry2, mask, strategy), geometry1); in apply()
296 template <typename Mask, typename Strategy>
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp80 static bool isConstantIntVector(Value *Mask) { in isConstantIntVector() argument
81 Constant *C = dyn_cast<Constant>(Mask); in isConstantIntVector()
85 unsigned NumElts = Mask->getType()->getVectorNumElements(); in isConstantIntVector()
130 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() local
146 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) { in scalarizeMaskedLoad()
164 if (isConstantIntVector(Mask)) { in scalarizeMaskedLoad()
166 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedLoad()
182 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedLoad()
195 Value *Mask = Builder.getInt(APInt::getOneBitSet(VectorWidth, Idx)); in scalarizeMaskedLoad() local
196 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedLoad()
[all …]
DInterleavedAccessPass.cpp142 static bool isDeInterleaveMaskOfFactor(ArrayRef<int> Mask, unsigned Factor, in isDeInterleaveMaskOfFactor() argument
150 for (; i < Mask.size(); i++) in isDeInterleaveMaskOfFactor()
151 if (Mask[i] >= 0 && static_cast<unsigned>(Mask[i]) != Index + i * Factor) in isDeInterleaveMaskOfFactor()
154 if (i == Mask.size()) in isDeInterleaveMaskOfFactor()
166 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isDeInterleaveMask() argument
169 if (Mask.size() < 2) in isDeInterleaveMask()
175 if (Mask.size() * Factor > NumLoadElements) in isDeInterleaveMask()
177 if (isDeInterleaveMaskOfFactor(Mask, Factor, Index)) in isDeInterleaveMask()
195 static bool isReInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, in isReInterleaveMask() argument
197 unsigned NumElts = Mask.size(); in isReInterleaveMask()
[all …]
DStackMapLivenessAnalysis.cpp154 uint32_t *Mask = createRegisterMask(MF); in addLiveOutSetToMI() local
155 MachineOperand MO = MachineOperand::CreateRegLiveOut(Mask); in addLiveOutSetToMI()
163 uint32_t *Mask = MF.allocateRegMask(); in createRegisterMask() local
165 Mask[Reg / 32] |= 1U << (Reg % 32); in createRegisterMask()
168 TRI->adjustStackMapLiveOutMask(Mask); in createRegisterMask()
170 return Mask; in createRegisterMask()
/third_party/boost/boost/spirit/home/lex/qi/
Dplain_tokenid_mask.hpp63 template <typename Mask>
65 : primitive_parser<plain_tokenid_mask<Mask> >
70 typedef Mask type;
73 plain_tokenid_mask(Mask const& mask) in plain_tokenid_mask()
112 Mask mask;
118 template <typename Modifiers, typename Mask>
119 struct make_primitive<terminal_ex<tag::tokenid_mask, fusion::vector1<Mask> >
122 typedef plain_tokenid_mask<Mask> result_type;
135 template<typename Mask, typename Attr, typename Context, typename Iterator>
136 struct handles_container<qi::plain_tokenid_mask<Mask>, Attr, Context, Iterator>
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp446 SmallVectorImpl<Constant*> &Mask) { in collectSingleShuffleElements() argument
452 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in collectSingleShuffleElements()
458 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i)); in collectSingleShuffleElements()
464 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), in collectSingleShuffleElements()
482 if (collectSingleShuffleElements(VecOp, LHS, RHS, Mask)) { in collectSingleShuffleElements()
484 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext())); in collectSingleShuffleElements()
497 if (collectSingleShuffleElements(VecOp, LHS, RHS, Mask)) { in collectSingleShuffleElements()
500 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements()
505 Mask[InsertedIdx % NumElts] = in collectSingleShuffleElements()
607 SmallVectorImpl<Constant *> &Mask, in collectShuffleElements() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCmpInstAnalysis.cpp68 Value *&X, APInt &Mask, bool LookThruTrunc) { in decomposeBitTestICmp() argument
82 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
89 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
96 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
103 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
110 Mask = -*C; in decomposeBitTestICmp()
117 Mask = ~*C; in decomposeBitTestICmp()
124 Mask = ~*C; in decomposeBitTestICmp()
131 Mask = -*C; in decomposeBitTestICmp()
137 Mask = Mask.zext(X->getType()->getScalarSizeInBits()); in decomposeBitTestICmp()
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/fsl-layerscape/doc/
DREADME.core_prefetch7 Here 0x02 can be replaced with any valid value except Mask[0] bit. It
8 represents 64 bit mask. The 64-bit Mask has one bit for each core.
9 Mask[0] = core0
10 Mask[1] = core1
11 Mask[2] = core2
16 core0 prefetch should not be disabled i.e. Mask[0] should never be set.
17 Setting Mask[0] may lead to undefined behavior.
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8632/
DGPRArith.cpp351 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
369 Immediate((Imm)&Mask##Size)); \ in TEST_F()
381 ASSERT_EQ(((Value0)&Mask##Size) & ((Imm)&Mask##Size) ? ValueIfTrue \ in TEST_F()
411 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
428 Immediate((Value1)&Mask##Size)); \ in TEST_F()
439 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
507 ASSERT_EQ(Mask##Size &static_cast<uint32_t>( \ in TEST_F()
508 static_cast<Type##Size##_t>((Value0)&Mask##Size) \ in TEST_F()
509 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
510 Mask##Size &test.Dst()) \ in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/HardwareUnits/
DResourceManager.cpp51 void DefaultResourceStrategy::used(uint64_t Mask) { in used() argument
52 if (Mask > NextInSequenceMask) { in used()
53 RemovedFromNextInSequence |= Mask; in used()
57 NextInSequenceMask &= (~Mask); in used()
66 uint64_t Mask) in ResourceState() argument
67 : ProcResourceDescIndex(Index), ResourceMask(Mask), in ResourceState()
128 uint64_t Mask = ProcResID2Mask[I]; in ResourceManager() local
129 unsigned Index = getResourceStateIndex(Mask); in ResourceManager()
131 std::make_unique<ResourceState>(*SM.getProcResource(I), I, Mask); in ResourceManager()
136 uint64_t Mask = ProcResID2Mask[I]; in ResourceManager() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8664/
DGPRArith.cpp382 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
399 Immediate((Imm)&Mask##Size)); \ in TEST_F()
409 ASSERT_EQ(((Value0)&Mask##Size) & ((Imm)&Mask##Size) ? ValueIfTrue \ in TEST_F()
437 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
454 Immediate((Value1)&Mask##Size)); \ in TEST_F()
465 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
538 ASSERT_EQ(Mask##Size &static_cast<uint32_t>( \ in TEST_F()
539 static_cast<Type##Size##_t>((Value0)&Mask##Size) \ in TEST_F()
540 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
541 Mask##Size &test.Dst()) \ in TEST_F()
[all …]
/third_party/boost/boost/intrusive/
Dpointer_plus_bits.hpp81 static const uintptr_t Mask = uintptr_t((uintptr_t(1u) << NumBits) - 1); member
85 { return pointer(uintptr_t(n) & uintptr_t(~Mask)); } in get_pointer()
89 BOOST_INTRUSIVE_INVARIANT_ASSERT(0 == (uintptr_t(p) & Mask)); in set_pointer()
90 n = pointer(uintptr_t(p) | (uintptr_t(n) & Mask)); in set_pointer()
94 { return std::size_t(uintptr_t(n) & Mask); } in get_bits()
98 BOOST_INTRUSIVE_INVARIANT_ASSERT(uintptr_t(c) <= Mask); in set_bits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ExpandImm.cpp127 const uint64_t Mask = 0xFFFF; in updateImm() local
131 Imm &= ~(Mask << (Idx * 16)); in updateImm()
134 Imm |= Mask << (Idx * 16); in updateImm()
155 const uint64_t Mask = 0xFFFF; in trySequenceOfOnes() local
178 uint64_t Inside = Mask; in trySequenceOfOnes()
211 OrrImm = updateImm(OrrImm, Idx, Inside != Mask); in trySequenceOfOnes()
249 const unsigned Mask = 0xFFFF; in expandMOVImmSimple() local
278 unsigned Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple()
294 Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple()
295 if (Imm16 == (isNeg ? Mask : 0)) in expandMOVImmSimple()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DRDFRegisters.h73 LaneBitmask Mask = LaneBitmask::getNone();
77 : Reg(R), Mask(R != 0 ? M : LaneBitmask::getNone()) {} in Reg()
80 return Reg != 0 && Mask.any();
84 return Reg == RR.Reg && Mask == RR.Mask;
92 return Reg < RR.Reg || (Reg == RR.Reg && Mask < RR.Mask);
124 return RegisterRef(UnitInfos[U].Reg, UnitInfos[U].Mask); in getRefForUnit()
140 LaneBitmask Mask; member
231 PrintLaneMaskOpt(LaneBitmask M) : Mask(M) {} in PrintLaneMaskOpt()
232 LaneBitmask Mask; member
DHexagonISelDAGToDAGHVX.cpp763 ShuffleMask(ArrayRef<int> M) : Mask(M) { in ShuffleMask()
764 for (unsigned I = 0, E = Mask.size(); I != E; ++I) { in ShuffleMask()
765 int M = Mask[I]; in ShuffleMask()
773 ArrayRef<int> Mask; member
777 size_t H = Mask.size()/2; in lo()
778 return ShuffleMask(Mask.take_front(H)); in lo()
781 size_t H = Mask.size()/2; in hi()
782 return ShuffleMask(Mask.take_back(H)); in hi()
787 for (int M : Mask) in print()
860 bool scalarizeShuffle(ArrayRef<int> Mask, const SDLoc &dl, MVT ResTy,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSmallBitVector.h293 uintptr_t Mask = (uintptr_t(1) << Prev) - 1; in find_next_unset() local
294 Bits |= Mask; in find_next_unset()
391 uintptr_t Mask = EMask - IMask; in set() local
392 setSmallBits(getSmallBits() | Mask); in set()
422 uintptr_t Mask = EMask - IMask; in reset() local
423 setSmallBits(getSmallBits() & ~Mask); in reset()
631 void setBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
633 applyMask<true, false>(Mask, MaskWords);
635 getPointer()->setBitsInMask(Mask, MaskWords);
640 void clearBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) {
[all …]
/third_party/boost/libs/geometry/doc/generated/
Drelate.qbk22 ``template<typename Geometry1, typename Geometry2, typename Mask, typename Strategy>
23 bool relate(Geometry1 const & geometry1, Geometry2 const & geometry2, Mask const & mask,
32 [[Mask const &] [An intersection model Mask type. ] [mask] [An intersection model mask object. ]]
61 ``template<typename Geometry1, typename Geometry2, typename Mask>
62 bool relate(Geometry1 const & geometry1, Geometry2 const & geometry2, Mask const & mask)``
70 [[Mask const &] [An intersection model Mask type. ] [mask] [An intersection model mask object. ]]

12345678910>>...19