Searched refs:Mask (Results 1 - 25 of 334) sorted by relevance

1234567891011>>

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/MC/
H A DLaneBitmask.h46 explicit constexpr LaneBitmask(Type V) : Mask(V) {}
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; }
52 constexpr bool any() const { return Mask != 0; }
53 constexpr bool all() const { return ~Mask
89 Type Mask = 0; member in struct:llvm::LaneBitmask
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/
H A DSanitizerBlacklist.cpp23 bool SanitizerBlacklist::isBlacklistedGlobal(SanitizerMask Mask, argument
26 return SSCL->inSection(Mask, "global", GlobalName, Category);
29 bool SanitizerBlacklist::isBlacklistedType(SanitizerMask Mask, argument
32 return SSCL->inSection(Mask, "type", MangledTypeName, Category);
35 bool SanitizerBlacklist::isBlacklistedFunction(SanitizerMask Mask, argument
37 return SSCL->inSection(Mask, "fun", FunctionName);
40 bool SanitizerBlacklist::isBlacklistedFile(SanitizerMask Mask, argument
43 return SSCL->inSection(Mask, "src", FileName, Category);
46 bool SanitizerBlacklist::isBlacklistedLocation(SanitizerMask Mask, argument
50 isBlacklistedFile(Mask, S
[all...]
H A DSanitizerSpecialCaseList.cpp41 SanitizerMask Mask; local
45 Mask |= SanitizerKind::ID;
52 SanitizerSections.emplace_back(Mask, S.Entries);
56 bool SanitizerSpecialCaseList::inSection(SanitizerMask Mask, StringRef Prefix, argument
60 if ((S.Mask & Mask) &&
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DXRayInstr.h48 return Mask & K;
51 bool hasOneOf(XRayInstrMask K) const { return Mask & K; }
55 Mask = Value ? (Mask | K) : (Mask & ~K);
58 void clear(XRayInstrMask K = XRayInstrKind::All) { Mask &= ~K; }
60 bool empty() const { return Mask == 0; }
62 bool full() const { return Mask == XRayInstrKind::All; }
64 XRayInstrMask Mask = 0; member in struct:clang::XRayInstrSet
H A DSanitizerBlacklist.h33 bool isBlacklistedGlobal(SanitizerMask Mask, StringRef GlobalName,
35 bool isBlacklistedType(SanitizerMask Mask, StringRef MangledTypeName,
37 bool isBlacklistedFunction(SanitizerMask Mask, StringRef FunctionName) const;
38 bool isBlacklistedFile(SanitizerMask Mask, StringRef FileName,
40 bool isBlacklistedLocation(SanitizerMask Mask, SourceLocation Loc,
H A DSanitizerSpecialCaseList.h35 // Query blacklisted entries if any bit in Mask matches the entry's section.
36 bool inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query,
45 : Mask(SM), Entries(E){};
47 SanitizerMask Mask; member in struct:clang::SanitizerSpecialCaseList::SanitizerSection
H A DSanitizers.h36 /// Mask value initialized to 0.
155 return static_cast<bool>(Mask & K);
159 bool hasOneOf(SanitizerMask K) const { return static_cast<bool>(Mask & K); }
164 Mask = Value ? (Mask | K) : (Mask & ~K);
168 void clear(SanitizerMask K = SanitizerKind::All) { Mask &= ~K; }
171 bool empty() const { return !Mask; }
174 SanitizerMask Mask; member in struct:clang::SanitizerSet
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIModeRegister.cpp40 // Mask is a bitmask where a '1' indicates the corresponding Mode bit has a
42 unsigned Mask; member in struct:Status
45 Status() : Mask(0), Mode(0){};
47 Status(unsigned NewMask, unsigned NewMode) : Mask(NewMask), Mode(NewMode) {
48 Mode &= Mask;
54 return Status((Mask | S.Mask), ((Mode & ~S.Mask) | (S.Mode & S.Mask)));
60 return Status(Mask
255 unsigned Mask = ((1 << Width) - 1) << Offset; local
[all...]
H A DAMDGPUArgumentUsageInfo.h37 unsigned Mask; member in struct:llvm::ArgDescriptor
43 ArgDescriptor(unsigned Val = 0, unsigned Mask = ~0u,
45 : Reg(Val), Mask(Mask), IsStack(IsStack), IsSet(IsSet) {}
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) { argument
56 return ArgDescriptor(Arg.Reg, Mask, Ar
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp96 void converted(Instruction *I, Value *V, int Mask, bool Worthy) { argument
97 ConvertedInsts[I] = std::make_tuple(V, Mask, Worthy);
204 int Mask = 0; local
206 Mask |= Masks[WhichConst][0];
208 Mask |= Masks[WhichConst][1];
210 Mask |= Masks[WhichConst][2];
212 Mask |= Masks[WhichConst][3];
220 Mask &= SystemZ::TDCMASK_PLUS;
221 Mask |= Mask >>
246 int Mask; local
271 int Mask = MaskC->getZExtValue(); local
295 int Mask; local
351 int Mask; local
[all...]
/freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_affinity.h23 class Mask : public KMPAffinity::Mask { class in class:KMPHwlocAffinity
27 Mask() { function in class:KMPHwlocAffinity::Mask
31 ~Mask() { hwloc_bitmap_free(mask); }
36 void copy(const KMPAffinity::Mask *src) override {
37 const Mask *convert = static_cast<const Mask *>(src);
40 void bitwise_and(const KMPAffinity::Mask *rhs) override {
41 const Mask *convert = static_cast<const Mask *>(rh
243 class Mask : public KMPAffinity::Mask { class in class:KMPNativeAffinity
249 Mask() { mask = (mask_t *)__kmp_allocate(__kmp_affin_mask_size); } function in class:KMPNativeAffinity::Mask
369 class Mask : public KMPAffinity::Mask { class in class:KMPNativeAffinity
375 Mask() { function in class:KMPNativeAffinity::Mask
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDeclAccessPair.h32 enum { Mask = 0x3 }; enumerator in enum:clang::DeclAccessPair::__anon2421
42 return reinterpret_cast<NamedDecl*>(~Mask & Ptr);
45 return AccessSpecifier(Mask & Ptr);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp68 Value *&X, APInt &Mask, bool LookThruTrunc) {
82 Mask = APInt::getSignMask(C->getBitWidth());
89 Mask = APInt::getSignMask(C->getBitWidth());
96 Mask = APInt::getSignMask(C->getBitWidth());
103 Mask = APInt::getSignMask(C->getBitWidth());
110 Mask = -*C;
117 Mask = ~*C;
124 Mask = ~*C;
131 Mask = -*C;
137 Mask
66 decomposeBitTestICmp(Value *LHS, Value *RHS, CmpInst::Predicate &Pred, Value *&X, APInt &Mask, bool LookThruTrunc) argument
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackMapLivenessAnalysis.cpp154 uint32_t *Mask = createRegisterMask(MF); local
155 MachineOperand MO = MachineOperand::CreateRegLiveOut(Mask);
163 uint32_t *Mask = MF.allocateRegMask(); local
165 Mask[Reg / 32] |= 1U << (Reg % 32);
168 TRI->adjustStackMapLiveOutMask(Mask);
170 return Mask;
H A DInterleavedAccessPass.cpp142 static bool isDeInterleaveMaskOfFactor(ArrayRef<int> Mask, unsigned Factor, argument
150 for (; i < Mask.size(); i++)
151 if (Mask[i] >= 0 && static_cast<unsigned>(Mask[i]) != Index + i * Factor)
154 if (i == Mask.size())
166 static bool isDeInterleaveMask(ArrayRef<int> Mask, unsigned &Factor, argument
169 if (Mask.size() < 2)
175 if (Mask.size() * Factor > NumLoadElements)
177 if (isDeInterleaveMaskOfFactor(Mask, Factor, Index))
195 static bool isReInterleaveMask(ArrayRef<int> Mask, unsigne argument
[all...]
H A DScalarizeMaskedMemIntrin.cpp80 static bool isConstantIntVector(Value *Mask) { argument
81 Constant *C = dyn_cast<Constant>(Mask);
85 unsigned NumElts = Mask->getType()->getVectorNumElements();
130 Value *Mask = CI->getArgOperand(2); local
146 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) {
164 if (isConstantIntVector(Mask)) {
166 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
182 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask");
195 Value *Mask local
269 Value *Mask = CI->getArgOperand(3); local
326 Value *Mask = Builder.getInt(APInt::getOneBitSet(VectorWidth, Idx)); local
393 Value *Mask = CI->getArgOperand(2); local
445 Value *Mask = Builder.getInt(APInt::getOneBitSet(VectorWidth, Idx)); local
518 Value *Mask = CI->getArgOperand(3); local
566 Value *Mask = Builder.getInt(APInt::getOneBitSet(VectorWidth, Idx)); local
601 Value *Mask = CI->getArgOperand(1); local
656 Value *Mask = Builder.getInt(APInt::getOneBitSet(VectorWidth, Idx)); local
715 Value *Mask = CI->getArgOperand(2); local
762 Value *Mask = Builder.getInt(APInt::getOneBitSet(VectorWidth, Idx)); local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCmpInstAnalysis.h61 /// Decompose an icmp into the form ((X & Mask) pred 0) if possible. The
65 Value *&X, APInt &Mask,
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/MCA/
H A DSupport.h82 /// ResourceA -- Mask: 0b001
83 /// ResourceB -- Mask: 0b010
84 /// ResourceAB -- Mask: 0b100 U (ResourceA::Mask | ResourceB::Mask) == 0b111
99 inline unsigned getResourceStateIndex(uint64_t Mask) { argument
100 assert(Mask && "Processor Resource Mask cannot be zero!");
101 return (std::numeric_limits<uint64_t>::digits - countLeadingZeros(Mask)) - 1;
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.h95 size_t Mask = PageSize() - 1; local
96 X = (X + Mask) & ~Mask;
101 size_t Mask = PageSize() - 1; local
102 X = X & ~Mask;
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRDFRegisters.h73 LaneBitmask Mask = LaneBitmask::getNone(); member in struct:llvm::rdf::RegisterRef
77 : Reg(R), Mask(R != 0 ? M : LaneBitmask::getNone()) {}
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);
140 LaneBitmask Mask; member in struct:llvm::rdf::PhysicalRegisterInfo::UnitInfo
231 PrintLaneMaskOpt(LaneBitmask M) : Mask(
232 LaneBitmask Mask; member in struct:llvm::rdf::PrintLaneMaskOpt
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp446 SmallVectorImpl<Constant*> &Mask) {
452 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
458 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i));
464 Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()),
482 if (collectSingleShuffleElements(VecOp, LHS, RHS, Mask)) {
484 Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext()));
497 if (collectSingleShuffleElements(VecOp, LHS, RHS, Mask)) {
500 Mask[InsertedIdx % NumElts] =
505 Mask[InsertedIdx % NumElts] =
599 /// left and right vectors of the proposed shuffle (or 0), and set the Mask
445 collectSingleShuffleElements(Value *V, Value *LHS, Value *RHS, SmallVectorImpl<Constant*> &Mask) argument
606 collectShuffleElements(Value *V, SmallVectorImpl<Constant *> &Mask, Value *PermittedRHS, InstCombiner &IC) argument
1082 SmallVector<Constant*, 16> Mask; local
1126 canEvaluateShuffled(Value *V, ArrayRef<int> Mask, unsigned Depth = 5) argument
1289 evaluateInDifferentElementOrder(Value *V, ArrayRef<int> Mask) argument
1399 isShuffleExtractingFromLHS(ShuffleVectorInst &SVI, SmallVector<int, 16> &Mask) argument
1514 Constant *Mask = Shuf.getMask(); local
1608 Constant *Mask = Shuf.getMask(); local
1711 Constant *Mask; local
1748 SmallVector<int, 16> Mask = Shuf.getShuffleMask(); local
1871 SmallVector<int, 16> Mask = Shuf.getShuffleMask(); local
1911 SmallVector<int, 16> Mask = SVI.getShuffleMask(); local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/
H A DResourceManager.cpp51 void DefaultResourceStrategy::used(uint64_t Mask) { argument
52 if (Mask > NextInSequenceMask) {
53 RemovedFromNextInSequence |= Mask;
57 NextInSequenceMask &= (~Mask);
66 uint64_t Mask)
67 : ProcResourceDescIndex(Index), ResourceMask(Mask),
128 uint64_t Mask = ProcResID2Mask[I]; local
129 unsigned Index = getResourceStateIndex(Mask);
131 std::make_unique<ResourceState>(*SM.getProcResource(I), I, Mask);
136 uint64_t Mask local
65 ResourceState(const MCProcResourceDesc &Desc, unsigned Index, uint64_t Mask) argument
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp179 // @llvm.masked.gather.*(Ptrs, alignment, Mask, Src0)
185 Value *Mask = I->getArgOperand(2); local
206 Load = Builder.CreateSelect(Mask, Load, PassThru);
223 Value *Mask = I->getArgOperand(2);
224 if (match(Mask, m_One()))
231 {Ty, Ptr->getType(), Mask->getType()},
232 {Ptr, Builder.getInt32(0), Mask});
262 Value *Mask = I->getArgOperand(2); local
263 if (!match(Mask, m_One()))
266 {Ty, BasePtr->getType(), Offsets->getType(), Mask
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp127 const uint64_t Mask = 0xFFFF; local
131 Imm &= ~(Mask << (Idx * 16));
134 Imm |= Mask << (Idx * 16);
155 const uint64_t Mask = 0xFFFF; local
178 uint64_t Inside = Mask;
211 OrrImm = updateImm(OrrImm, Idx, Inside != Mask);
249 const unsigned Mask = 0xFFFF; local
278 unsigned Imm16 = (Imm >> Shift) & Mask;
294 Imm16 = (Imm >> Shift) & Mask;
295 if (Imm16 == (isNeg ? Mask
307 const unsigned Mask = 0xFFFF; local
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_powerpc64.cpp33 const intptr_t Mask = ~(LineSize - 1); local
34 const intptr_t StartLine = ((intptr_t)Addr) & Mask;
35 const intptr_t EndLine = ((intptr_t)Addr + Len + LineSize - 1) & Mask;

Completed in 371 milliseconds

1234567891011>>