/freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | LaneBitmask.h | 47 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | FloatingPointMode.cpp | 14 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 in fneg() 35 fabs(FPClassTest Mask) fabs() argument 73 operator <<(raw_ostream & OS,FPClassTest Mask) operator <<() argument [all...] |
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_affinity.h | 24 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 …]
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | NoSanitizeList.cpp | 30 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTDC.cpp | 100 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | SIDefinesUtils.h | 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() 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIModeRegister.cpp | 32 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 D | AMDGPUArgumentUsageInfo.h | 35 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | VectorUtils.cpp | 229 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 D | CmpInstAnalysis.cpp | 78 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kCollapseMOVEMPass.cpp | 49 unsigned Mask; member in __anon143e10ef0111::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 …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | XRayInstr.h | 50 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 D | NoSanitizeList.h | 37 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,
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RDFRegisters.cpp | 57 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 getUnits() 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) in equal_to() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ScalarizeMaskedMemIntrin.cpp | 91 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 …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | SanitizerMetadata.cpp | 30 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMWinCOFFStreamer.cpp | 93 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVInstrInfoVVLPatterns.td | 876 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VVPISelLowering.cpp | 64 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, AV in lowerToVVP() 130 SDValue Mask = getNodeMask(Op); lowerVVP_LOAD_STORE() local 273 SDValue Mask = getNodeMask(Op); lowerVVP_GATHER_SCATTER() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 622 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/ |
H A D | ResourceManager.cpp | 51 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 in ResourceManager() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Instructions.cpp | 360 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAGHVX.cpp | 656 Index = 0x0FFFFFFF, // Mask of the index value. 768 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, cons 1001 splitMask(ArrayRef<int> Mask,MutableArrayRef<int> MaskL,MutableArrayRef<int> MaskR) splitMask() argument 1032 isUndef(ArrayRef<int> Mask) isUndef() argument 1039 isIdentity(ArrayRef<int> Mask) isIdentity() argument 1048 isLowHalfOnly(ArrayRef<int> Mask) isLowHalfOnly() argument 1110 packSegmentMask(ArrayRef<int> Mask,ArrayRef<unsigned> OutSegMap,unsigned SegLen,MutableArrayRef<int> PackedMask) packSegmentMask() argument 1847 scalarizeShuffle(ArrayRef<int> Mask,const SDLoc & dl,MVT ResTy,SDValue Va,SDValue Vb,SDNode * N) scalarizeShuffle() argument 2603 std::vector<int> Mask(SN->getMask().begin(), SN->getMask().end()); selectShuffle() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InterleavedAccess.cpp | 257 static void genShuffleBland(MVT VT, ArrayRef<int> Mask, in genShuffleBland() argument 263 for (int I : Mask) in genShuffleBland() 265 for (int I : Mask) in genShuffleBland() 437 SmallVectorImpl<int> &Mask) { in createShuffleStride() argument 443 Mask.push_back((i * Stride) % LaneSize + LaneSize * Lane); in createShuffleStride() 606 static void group2Shuffle(MVT VT, SmallVectorImpl<int> &Mask, in group2Shuffle() argument 616 Index += Mask[i]; in group2Shuffle() 692 ArrayRef<int> Mask = ArrayRef(IntMask1, 4); in transpose_4x4() local 693 Value *IntrVec1 = Builder.CreateShuffleVector(Matrix[0], Matrix[2], Mask); in transpose_4x4() 694 Value *IntrVec2 = Builder.CreateShuffleVector(Matrix[1], Matrix[3], Mask); in transpose_4x4() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | SmallBitVector.h | 394 uintptr_t Mask = EMask - IMask; in set() local 395 setSmallBits(getSmallBits() | Mask); in set() 425 uintptr_t Mask = EMask - IMask; in reset() local 426 setSmallBits(getSmallBits() & ~Mask); in reset() 646 void setBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) { 648 applyMask<true, false>(Mask, MaskWords); 650 getPointer()->setBitsInMask(Mask, MaskWords); 655 void clearBitsInMask(const uint32_t *Mask, unsigned MaskWords = ~0u) { 657 applyMask<false, false>(Mask, MaskWords); 659 getPointer()->clearBitsInMask(Mask, MaskWords); [all …]
|