Home
last modified time | relevance | path

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

12345678910>>...23

/src/contrib/llvm-project/llvm/lib/Support/
H A DFloatingPointMode.cpp14 FPClassTest llvm::fneg(FPClassTest Mask) { in fneg() argument
15 FPClassTest NewMask = Mask & fcNan; in fneg()
16 if (Mask & fcNegInf) in fneg()
18 if (Mask & fcNegNormal) in fneg()
20 if (Mask & fcNegSubnormal) in fneg()
22 if (Mask & fcNegZero) in fneg()
24 if (Mask & fcPosZero) in fneg()
26 if (Mask & fcPosSubnormal) in fneg()
28 if (Mask & fcPosNormal) in fneg()
30 if (Mask & fcPosInf) in fneg()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/MC/
H A DLaneBitmask.h47 explicit constexpr LaneBitmask(Type V) : Mask(V) {} in LaneBitmask()
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 operator< (LaneBitmask M) const { return Mask < M.Mask; }
52 constexpr bool none() const { return Mask == 0; } in none()
53 constexpr bool any() const { return Mask != 0; } in any()
54 constexpr bool all() const { return ~Mask == 0; } in all()
57 return LaneBitmask(~Mask);
60 return LaneBitmask(Mask | M.Mask);
63 return LaneBitmask(Mask & M.Mask);
[all …]
/src/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_affinity.h24 class Mask : public KMPAffinity::Mask {
28 Mask() { in Mask() function
32 ~Mask() { hwloc_bitmap_free(mask); } in ~Mask()
38 void copy(const KMPAffinity::Mask *src) override { in copy()
39 const Mask *convert = static_cast<const Mask *>(src); in copy()
42 void bitwise_and(const KMPAffinity::Mask *rhs) override { in bitwise_and()
43 const Mask *convert = static_cast<const Mask *>(rhs); in bitwise_and()
46 void bitwise_or(const KMPAffinity::Mask *rhs) override { in bitwise_or()
47 const Mask *convert = static_cast<const Mask *>(rhs); in bitwise_or()
51 bool is_equal(const KMPAffinity::Mask *rhs) const override { in is_equal()
[all …]
/src/contrib/llvm-project/clang/lib/Basic/
H A DNoSanitizeList.cpp30 bool NoSanitizeList::containsGlobal(SanitizerMask Mask, StringRef GlobalName, in containsGlobal() argument
32 return SSCL->inSection(Mask, "global", GlobalName, Category); in containsGlobal()
35 bool NoSanitizeList::containsType(SanitizerMask Mask, StringRef MangledTypeName, in containsType() argument
37 return SSCL->inSection(Mask, "type", MangledTypeName, Category); in containsType()
40 bool NoSanitizeList::containsFunction(SanitizerMask Mask, in containsFunction() argument
42 return SSCL->inSection(Mask, "fun", FunctionName); in containsFunction()
45 bool NoSanitizeList::containsFile(SanitizerMask Mask, StringRef FileName, in containsFile() argument
47 return SSCL->inSection(Mask, "src", FileName, Category); in containsFile()
50 bool NoSanitizeList::containsMainFile(SanitizerMask Mask, StringRef FileName, in containsMainFile() argument
52 return SSCL->inSection(Mask, "mainfile", FileName, Category); in containsMainFile()
[all …]
H A DSanitizerSpecialCaseList.cpp42 SanitizerMask Mask; in createSanitizerSections() local
46 Mask |= SanitizerKind::ID; in createSanitizerSections()
53 SanitizerSections.emplace_back(Mask, S.Entries); in createSanitizerSections()
57 bool SanitizerSpecialCaseList::inSection(SanitizerMask Mask, StringRef Prefix, in inSection() argument
61 if ((S.Mask & Mask) && in inSection()
/src/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp100 void converted(Instruction *I, Value *V, int Mask, bool Worthy) { in converted() argument
101 ConvertedInsts[I] = std::make_tuple(V, Mask, Worthy); in converted()
208 int Mask = 0; in convertFCmp() local
210 Mask |= Masks[WhichConst][0]; in convertFCmp()
212 Mask |= Masks[WhichConst][1]; in convertFCmp()
214 Mask |= Masks[WhichConst][2]; in convertFCmp()
216 Mask |= Masks[WhichConst][3]; in convertFCmp()
224 Mask &= SystemZ::TDCMASK_PLUS; in convertFCmp()
225 Mask |= Mask >> 1; in convertFCmp()
233 converted(&I, Op0, Mask, Worthy); in convertFCmp()
[all …]
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DSIDefinesUtils.h29 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()
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()
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()
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIModeRegister.cpp32 unsigned Mask = 0; member
37 Status(unsigned NewMask, unsigned NewMode) : Mask(NewMask), Mode(NewMode) { in Status()
38 Mode &= Mask; in Status()
44 return Status((Mask | S.Mask), ((Mode & ~S.Mask) | (S.Mode & S.Mask))); in merge()
50 return Status(Mask & ~newMask, Mode & ~newMask); in mergeUnknown()
56 unsigned NewMask = (Mask & S.Mask) & (Mode ^ ~S.Mode); in intersect()
63 return Status((S.Mask & (Mode ^ S.Mode)) | (~Mask & S.Mask), S.Mode); in delta()
67 return (Mask == S.Mask) && (Mode == S.Mode); in operator ==()
73 return ((Mask & S.Mask) == S.Mask) && ((Mode & S.Mask) == S.Mode); in isCompatible()
76 bool isCombinable(Status &S) { return !(Mask & S.Mask) || isCompatible(S); } in isCombinable()
[all …]
H A DAMDGPUArgumentUsageInfo.h35 unsigned Mask; member
41 ArgDescriptor(unsigned Val = 0, unsigned Mask = ~0u, bool IsStack = false,
43 : Reg(Val), Mask(Mask), IsStack(IsStack), IsSet(IsSet) {} in Reg()
45 static ArgDescriptor createRegister(Register Reg, unsigned Mask = ~0u) {
46 return ArgDescriptor(Reg, Mask, false, true);
49 static ArgDescriptor createStack(unsigned Offset, unsigned Mask = ~0u) {
50 return ArgDescriptor(Offset, Mask, true, true);
53 static ArgDescriptor createArg(const ArgDescriptor &Arg, unsigned Mask) { in createArg()
54 return ArgDescriptor(Arg.Reg, Mask, Arg.IsStack, Arg.IsSet); in createArg()
80 return Mask; in getMask()
[all …]
/src/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp229 int llvm::getSplatIndex(ArrayRef<int> Mask) { in getSplatIndex() argument
231 for (int M : Mask) { in getSplatIndex()
312 bool llvm::getShuffleDemandedElts(int SrcWidth, ArrayRef<int> Mask, in getShuffleDemandedElts() argument
322 if (all_of(Mask, [](int Elt) { return Elt == 0; })) { in getShuffleDemandedElts()
327 for (unsigned I = 0, E = Mask.size(); I != E; ++I) { in getShuffleDemandedElts()
328 int M = Mask[I]; in getShuffleDemandedElts()
349 void llvm::narrowShuffleMaskElts(int Scale, ArrayRef<int> Mask, in narrowShuffleMaskElts() argument
355 ScaledMask.assign(Mask.begin(), Mask.end()); in narrowShuffleMaskElts()
360 for (int MaskElt : Mask) { in narrowShuffleMaskElts()
370 bool llvm::widenShuffleMaskElts(int Scale, ArrayRef<int> Mask, in widenShuffleMaskElts() argument
[all …]
H A DCmpInstAnalysis.cpp78 Value *&X, APInt &Mask, bool LookThruTrunc) { in decomposeBitTestICmp() argument
92 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
99 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
106 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
113 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
120 Mask = -*C; in decomposeBitTestICmp()
127 Mask = ~*C; in decomposeBitTestICmp()
134 Mask = ~*C; in decomposeBitTestICmp()
141 Mask = -*C; in decomposeBitTestICmp()
147 Mask = Mask.zext(X->getType()->getScalarSizeInBits()); in decomposeBitTestICmp()
/src/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kCollapseMOVEMPass.cpp49 unsigned Mask; member in __anond0dcac240111::MOVEMState
57 Mask(0), Access(AccessTy::None) {} in MOVEMState()
86 unsigned getMask() const { return Mask; } in getMask()
97 if (NewMask > Mask) { in classifyUpdateByMask()
99 } else if (NewMask < Mask) { in classifyUpdateByMask()
136 assert(!(Value & Mask) && in updateMask()
138 Mask |= Value; in updateMask()
204 MOVEMState &State, unsigned Mask, int Offset, unsigned Reg, in ProcessMI() argument
211 State.update(Offset, Mask)) { in ProcessMI()
219 return ProcessMI(MBB, MI, State, Mask, Offset, Reg, IsStore); in ProcessMI()
[all …]
/src/contrib/llvm-project/clang/include/clang/Basic/
H A DXRayInstr.h50 return Mask & K; in has()
53 bool hasOneOf(XRayInstrMask K) const { return Mask & K; } in hasOneOf()
56 Mask = Value ? (Mask | K) : (Mask & ~K); in set()
59 void clear(XRayInstrMask K = XRayInstrKind::All) { Mask &= ~K; }
61 bool empty() const { return Mask == 0; } in empty()
63 bool full() const { return Mask == XRayInstrKind::All; } in full()
65 XRayInstrMask Mask = 0; member
H A DNoSanitizeList.h37 bool containsGlobal(SanitizerMask Mask, StringRef GlobalName,
39 bool containsType(SanitizerMask Mask, StringRef MangledTypeName,
41 bool containsFunction(SanitizerMask Mask, StringRef FunctionName) const;
42 bool containsFile(SanitizerMask Mask, StringRef FileName,
44 bool containsMainFile(SanitizerMask Mask, StringRef FileName,
46 bool containsLocation(SanitizerMask Mask, SourceLocation Loc,
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DRDFRegisters.cpp57 UnitInfos[U].Mask = LaneBitmask::getAll(); in PhysicalRegisterInfo()
64 UI.Mask = P.second; in PhysicalRegisterInfo()
133 if (RR.Mask.none()) in getUnits()
137 if ((M & RR.Mask).any()) in getUnits()
169 return RegisterRef(R, TRI.composeSubRegIndexLaneMask(Idx, RR.Mask)); in mapTo()
174 LaneBitmask M = TRI.reverseComposeSubRegIndexLaneMask(Idx, RR.Mask); in mapTo()
187 return A.Mask == B.Mask; in equal_to()
198 if ((AMask & A.Mask).any() && (BMask & B.Mask).any()) { in equal_to()
207 if ((AMask & A.Mask).none()) in equal_to()
209 if ((BMask & B.Mask).none()) in equal_to()
[all …]
/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp91 static bool isConstantIntVector(Value *Mask) { in isConstantIntVector() argument
92 Constant *C = dyn_cast<Constant>(Mask); in isConstantIntVector()
96 unsigned NumElts = cast<FixedVectorType>(Mask->getType())->getNumElements(); in isConstantIntVector()
147 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedLoad() local
163 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) { in scalarizeMaskedLoad()
178 if (isConstantIntVector(Mask)) { in scalarizeMaskedLoad()
180 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedLoad()
196 SclrMask = Builder.CreateBitCast(Mask, SclrMaskTy, "scalar_mask"); in scalarizeMaskedLoad()
209 Value *Mask = Builder.getInt(APInt::getOneBitSet( in scalarizeMaskedLoad() local
211 Predicate = Builder.CreateICmpNE(Builder.CreateAnd(SclrMask, Mask), in scalarizeMaskedLoad()
[all …]
/src/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMWinCOFFStreamer.cpp93 void emitARMWinCFISaveRegMask(unsigned Mask, bool Wide) override;
141 void ARMTargetWinCOFFStreamer::emitARMWinCFISaveRegMask(unsigned Mask, in emitARMWinCFISaveRegMask() argument
143 assert(Mask != 0); in emitARMWinCFISaveRegMask()
144 int Lr = (Mask & 0x4000) ? 1 : 0; in emitARMWinCFISaveRegMask()
145 Mask &= ~0x4000; in emitARMWinCFISaveRegMask()
147 assert((Mask & ~0x1fff) == 0); in emitARMWinCFISaveRegMask()
149 assert((Mask & ~0x00ff) == 0); in emitARMWinCFISaveRegMask()
150 if (Mask && ((Mask + (1 << 4)) & Mask) == 0) { in emitARMWinCFISaveRegMask()
151 if (Wide && (Mask & 0x1000) == 0 && (Mask & 0xff) == 0xf0) { in emitARMWinCFISaveRegMask()
154 if (Mask & (1 << I)) { in emitARMWinCFISaveRegMask()
[all …]
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DSanitizerMetadata.cpp30 SanitizerMask expandKernelSanitizerMasks(SanitizerMask Mask) { in expandKernelSanitizerMasks() argument
31 if (Mask & (SanitizerKind::Address | SanitizerKind::KernelAddress)) in expandKernelSanitizerMasks()
32 Mask |= SanitizerKind::Address | SanitizerKind::KernelAddress; in expandKernelSanitizerMasks()
34 return Mask; in expandKernelSanitizerMasks()
46 FsanitizeArgument.Mask = expandKernelSanitizerMasks(FsanitizeArgument.Mask); in reportGlobal()
49 FsanitizeArgument.Mask}; in reportGlobal()
57 FsanitizeArgument.Mask & SanitizerKind::Address, GV, Loc, Ty); in reportGlobal()
61 FsanitizeArgument.Mask & SanitizerKind::HWAddress, GV, Loc, Ty); in reportGlobal()
64 static_cast<bool>(FsanitizeArgument.Mask & SanitizerKind::MemtagGlobals); in reportGlobal()
67 FsanitizeArgument.Mask & SanitizerKind::MemTag, GV, Loc, Ty); in reportGlobal()
/src/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoVVLPatterns.td876 vti.Vector, vti.Vector, vti.Vector, vti.Mask,
880 vti.Vector, vti.Vector, vti.Vector, vti.Mask,
893 vti.Vector, vti.Vector, vti.Vector, vti.Mask,
907 wti.Vector, vti.Vector, vti.Vector, vti.Mask,
911 wti.Vector, vti.Vector, vti.Vector, vti.Mask,
930 wti.Vector, vti.Vector, wti.Mask,
934 wti.Vector, wti.Vector, vti.Vector, vti.Mask,
938 wti.Vector, wti.Vector, vti.Vector, vti.Mask,
952 vti.Vector, wti.Vector, vti.Vector, vti.Mask,
956 vti.Vector, wti.Vector, vti.Vector, vti.Mask,
[all …]
/src/contrib/llvm-project/llvm/lib/Target/VE/
H A DVVPISelLowering.cpp64 SDValue Mask; in lowerToVVP() local
71 Mask = Op->getOperand(*MaskIdx); in lowerToVVP()
79 if (!Mask) in lowerToVVP()
80 Mask = CDAG.getConstantMask(Packing, true); in lowerToVVP()
84 return CDAG.getNode(VVPOpcode, LegalVecVT, {Op->getOperand(0), Mask, AVL}); in lowerToVVP()
87 {Op->getOperand(0), Op->getOperand(1), Mask, AVL}); in lowerToVVP()
93 VectorV, Mask, AVL, Op->getFlags()); in lowerToVVP()
105 return CDAG.getNode(VVPOpcode, LegalVecVT, {X, Y, Z, Mask, AVL}); in lowerToVVP()
108 auto Mask = Op->getOperand(0); in lowerToVVP() local
111 return CDAG.getNode(VVPOpcode, LegalVecVT, {OnTrue, OnFalse, Mask, AVL}); in lowerToVVP()
[all …]
/src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp622 SmallVectorImpl<int> &Mask) { in collectSingleShuffleElements() argument
628 Mask.assign(NumElts, -1); in collectSingleShuffleElements()
634 Mask.push_back(i); in collectSingleShuffleElements()
640 Mask.push_back(i + NumElts); in collectSingleShuffleElements()
657 if (collectSingleShuffleElements(VecOp, LHS, RHS, Mask)) { in collectSingleShuffleElements()
659 Mask[InsertedIdx] = -1; in collectSingleShuffleElements()
673 if (collectSingleShuffleElements(VecOp, LHS, RHS, Mask)) { in collectSingleShuffleElements()
676 Mask[InsertedIdx % NumElts] = ExtractedIdx; in collectSingleShuffleElements()
679 Mask[InsertedIdx % NumElts] = ExtractedIdx + NumLHSElts; in collectSingleShuffleElements()
781 static ShuffleOps collectShuffleElements(Value *V, SmallVectorImpl<int> &Mask, in collectShuffleElements() argument
[all …]
/src/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/
H A 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 …]
/src/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h225 uint64_t Mask = (1ULL << Size) - 1; in processLogicalImmediate() local
227 if ((Imm & Mask) != ((Imm >> Size) & Mask)) { in processLogicalImmediate()
235 uint64_t Mask = ((uint64_t)-1LL) >> (64 - Size); in processLogicalImmediate() local
236 Imm &= Mask; in processLogicalImmediate()
243 Imm |= ~Mask; in processLogicalImmediate()
600 constexpr uint64_t Mask = 0xFFULL; in isAdvSIMDModImmType10() local
601 uint64_t ByteA = (Imm >> 56) & Mask; in isAdvSIMDModImmType10()
602 uint64_t ByteB = (Imm >> 48) & Mask; in isAdvSIMDModImmType10()
603 uint64_t ByteC = (Imm >> 40) & Mask; in isAdvSIMDModImmType10()
604 uint64_t ByteD = (Imm >> 32) & Mask; in isAdvSIMDModImmType10()
[all …]
/src/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp360 FPClassTest Mask = Attrs.getRetNoFPClass(); in getRetNoFPClass() local
363 Mask |= F->getAttributes().getRetNoFPClass(); in getRetNoFPClass()
364 return Mask; in getRetNoFPClass()
368 FPClassTest Mask = Attrs.getParamNoFPClass(i); in getParamNoFPClass() local
371 Mask |= F->getAttributes().getParamNoFPClass(i); in getParamNoFPClass()
372 return Mask; in getParamNoFPClass()
1661 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *Mask, const Twine &Name, in ShuffleVectorInst() argument
1663 : ShuffleVectorInst(V1, createPlaceholderForShuffleVector(V1), Mask, Name, in ShuffleVectorInst()
1666 ShuffleVectorInst::ShuffleVectorInst(Value *V1, ArrayRef<int> Mask, in ShuffleVectorInst() argument
1669 : ShuffleVectorInst(V1, createPlaceholderForShuffleVector(V1), Mask, Name, in ShuffleVectorInst()
[all …]
/src/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp768 ShuffleMask(ArrayRef<int> M) : Mask(M) { in ShuffleMask()
769 for (int M : Mask) { in ShuffleMask()
777 ArrayRef<int> Mask; member
781 size_t H = Mask.size()/2; in lo()
782 return ShuffleMask(Mask.take_front(H)); in lo()
785 size_t H = Mask.size()/2; in hi()
786 return ShuffleMask(Mask.take_back(H)); in hi()
791 for (int M : Mask) in print()
996 bool scalarizeShuffle(ArrayRef<int> Mask, const SDLoc &dl, MVT ResTy,
1001 static void splitMask(ArrayRef<int> Mask, MutableArrayRef<int> MaskL, in splitMask() argument
[all …]

12345678910>>...23