| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | FloatingPointMode.cpp | 16 if (Mask & fcNegInf) in fneg() 18 if (Mask & fcNegNormal) in fneg() 22 if (Mask & fcNegZero) in fneg() 24 if (Mask & fcPosZero) in fneg() 28 if (Mask & fcPosNormal) in fneg() 30 if (Mask & fcPosInf) in fneg() 37 if (Mask & fcPosZero) in inverse_fabs() 43 if (Mask & fcPosInf) in inverse_fabs() 50 if (Mask & fcZero) in unknown_sign() 54 if (Mask & fcNormal) in unknown_sign() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | LaneBitmask.h | 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() 57 return LaneBitmask(~Mask); 60 return LaneBitmask(Mask | M.Mask); 63 return LaneBitmask(Mask & M.Mask); 66 Mask |= M.Mask; 70 Mask &= M.Mask; 78 return Log2_64(Mask); in getHighestLane() [all …]
|
| /freebsd-14.2/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() 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() 55 bool NoSanitizeList::containsLocation(SanitizerMask Mask, SourceLocation Loc, in containsLocation() argument [all …]
|
| H A D | SanitizerSpecialCaseList.cpp | 42 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()
|
| /freebsd-14.2/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_affinity.h | 24 class Mask : public KMPAffinity::Mask { 28 Mask() { in Mask() function 39 const Mask *convert = static_cast<const Mask *>(src); in copy() 43 const Mask *convert = static_cast<const Mask *>(rhs); in bitwise_and() 47 const Mask *convert = static_cast<const Mask *>(rhs); in bitwise_or() 182 Mask *hwloc_array = static_cast<Mask *>(array); in deallocate_mask_array() 187 Mask *hwloc_array = static_cast<Mask *>(array); in index_mask_array() 323 class Mask : public KMPAffinity::Mask { 521 KMPNativeAffinity::Mask *retval = new Mask(); in allocate_mask() 533 Mask *linux_array = static_cast<Mask *>(array); in deallocate_mask_array() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTDC.cpp | 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() 225 Mask |= Mask >> 1; in convertFCmp() 250 int Mask; in convertICmp() local 299 int Mask; in convertLogicOp() local 302 Mask = Mask0 & Mask1; in convertLogicOp() 305 Mask = Mask0 | Mask1; in convertLogicOp() 308 Mask = Mask0 ^ Mask1; in convertLogicOp() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kCollapseMOVEMPass.cpp | 49 unsigned Mask; member in __anond7d71e650111::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() 211 State.update(Offset, Mask)) { in ProcessMI() 227 State.update(Offset, Mask); in ProcessMI() 245 unsigned Mask = 0; in runOnMachineFunction() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIModeRegister.cpp | 32 unsigned Mask = 0; member 38 Mode &= Mask; in Status() 44 return Status((Mask | S.Mask), ((Mode & ~S.Mask) | (S.Mode & S.Mask))); in merge() 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() 224 while (InstrMode.Mask) { in insertSetreg() 301 unsigned Mode = (Val << Offset) & Mask; in processBlockPhase1() [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-14.2/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,
|
| H A D | Sanitizers.h | 161 return static_cast<bool>(Mask & K); in has() 165 bool hasOneOf(SanitizerMask K) const { return static_cast<bool>(Mask & K); } in hasOneOf() 170 Mask = Value ? (Mask | K) : (Mask & ~K); in set() 173 void set(SanitizerMask K) { Mask = K; } in set() 176 void clear(SanitizerMask K = SanitizerKind::All) { Mask &= ~K; } 179 bool empty() const { return !Mask; } in empty() 182 SanitizerMask Mask; member
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | VectorUtils.cpp | 229 for (int M : Mask) { in getSplatIndex() 326 int M = Mask[I]; in getShuffleDemandedElts() 353 ScaledMask.assign(Mask.begin(), Mask.end()); in narrowShuffleMaskElts() 374 ScaledMask.assign(Mask.begin(), Mask.end()); in widenShuffleMaskElts() 409 Mask = Mask.drop_front(Scale); in widenShuffleMaskElts() 455 if (Mask[Idx] >= Sz || Mask[Idx] == PoisonMaskElem) in processShuffleMasks() 469 count_if(Dest, [](ArrayRef<int> Mask) { return !Mask.empty(); }); in processShuffleMasks() argument 478 find_if(Dest, [](ArrayRef<int> Mask) { return !Mask.empty(); }); in processShuffleMasks() argument 868 return Mask; in createInterleaveMask() 877 return Mask; in createStrideMask() [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-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ScalarizeMaskedMemIntrin.cpp | 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() 286 Value *Mask = CI->getArgOperand(3); in scalarizeMaskedStore() local 299 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) { in scalarizeMaskedStore() 310 if (isConstantIntVector(Mask)) { in scalarizeMaskedStore() 409 Value *Mask = CI->getArgOperand(2); in scalarizeMaskedGather() local 428 if (isConstantIntVector(Mask)) { in scalarizeMaskedGather() 558 if (isConstantIntVector(Mask)) { in scalarizeMaskedScatter() 650 if (isConstantIntVector(Mask)) { in scalarizeMaskedExpandLoad() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | RDFRegisters.cpp | 64 UI.Mask = P.second; in PhysicalRegisterInfo() 133 if (RR.Mask.none()) in getUnits() 137 if ((M & RR.Mask).any()) in getUnits() 187 return A.Mask == B.Mask; in equal_to() 198 if ((AMask & A.Mask).any() && (BMask & B.Mask).any()) { in equal_to() 223 return A.Mask < B.Mask; in less() 224 if (A.Mask == B.Mask) in less() 236 if ((AMask & A.Mask).any() && (BMask & B.Mask).any()) { in less() 398 Masks[R.Reg] |= R.Mask; in ref_iterator() 410 if (P.Mask.all()) in operator <<() [all …]
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMWinCOFFStreamer.cpp | 145 assert(Mask != 0); in emitARMWinCFISaveRegMask() 146 int Lr = (Mask & 0x4000) ? 1 : 0; in emitARMWinCFISaveRegMask() 147 Mask &= ~0x4000; in emitARMWinCFISaveRegMask() 149 assert((Mask & ~0x1fff) == 0); in emitARMWinCFISaveRegMask() 151 assert((Mask & ~0x00ff) == 0); in emitARMWinCFISaveRegMask() 152 if (Mask && ((Mask + (1 << 4)) & Mask) == 0) { in emitARMWinCFISaveRegMask() 153 if (Wide && (Mask & 0x1000) == 0 && (Mask & 0xff) == 0xf0) { in emitARMWinCFISaveRegMask() 156 if (Mask & (1 << I)) { in emitARMWinCFISaveRegMask() 165 if (Mask & (1 << I)) { in emitARMWinCFISaveRegMask() 173 Mask |= Lr << 14; in emitARMWinCFISaveRegMask() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInstrInfoVVLPatterns.td | 1163 (fvti.Mask V0), 1197 (ivti.Mask V0), 1247 (fvti.Mask V0), 1283 (ivti.Mask V0), 1409 (vti.Mask V0), 2629 (fvti.Mask V0), 2714 // 15. Vector Mask Instructions 2773 def : Pat<(XLenVT (riscv_vcpop_vl (mti.Mask VR:$rs2), (mti.Mask true_mask), 2777 def : Pat<(XLenVT (riscv_vcpop_vl (mti.Mask VR:$rs2), (mti.Mask V0), 2783 def : Pat<(XLenVT (riscv_vfirst_vl (mti.Mask VR:$rs2), (mti.Mask true_mask), [all …]
|
| /freebsd-14.2/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() 108 auto Mask = Op->getOperand(0); in lowerToVVP() local 130 SDValue Mask = getNodeMask(Op); in lowerVVP_LOAD_STORE() local 148 if (!Mask) in lowerVVP_LOAD_STORE() 237 OpVec.push_back(SplitTM.Mask); in splitPackedLoadStore() 279 SDValue Mask = getNodeMask(Op); in lowerVVP_GATHER_SCATTER() local 294 if (!Mask) in lowerVVP_GATHER_SCATTER() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 627 Mask.push_back(i); in collectSingleShuffleElements() 819 Mask[i] = i; in collectShuffleElements() 852 Mask.push_back(i); in collectShuffleElements() 1272 Mask[i] = -1; in foldInsSequenceIntoSplat() 1487 Mask[I] = I; in foldConstantInsEltIntoShuffle() 1972 (Mask.size() != in evaluateInDifferentElementOrder() 2128 NewMask[i] = Mask[i] < (signed)NumElts ? Mask[i] : Mask1[i]; in foldSelectShuffleOfSelectShuffle() 2548 ArrayRef<int> Mask; in foldIdentityExtractShuffle() local 2630 if (Mask[i] == -1) in foldShuffleWithInsert() 2710 if (Mask[i] == -1) in foldIdentityPaddedShuffles() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/ |
| H A D | ResourceManager.cpp | 52 if (Mask > NextInSequenceMask) { in used() 53 RemovedFromNextInSequence |= Mask; in used() 57 NextInSequenceMask &= (~Mask); in used() 66 uint64_t Mask) in ResourceState() argument 128 uint64_t Mask = ProcResID2Mask[I]; in ResourceManager() local 136 uint64_t Mask = ProcResID2Mask[I]; in ResourceManager() local 140 ProcResUnitMask |= Mask; in ResourceManager() 145 Mask -= GroupMaskIdx; in ResourceManager() 146 while (Mask) { in ResourceManager() 148 uint64_t Unit = Mask & (-Mask); in ResourceManager() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AddressingModes.h | 227 if ((Imm & Mask) != ((Imm >> Size) & Mask)) { in processLogicalImmediate() 236 Imm &= Mask; in processLogicalImmediate() 243 Imm |= ~Mask; in processLogicalImmediate() 600 constexpr uint64_t Mask = 0xFFULL; in isAdvSIMDModImmType10() local 607 uint64_t ByteG = (Imm >> 8) & Mask; in isAdvSIMDModImmType10() 608 uint64_t ByteH = Imm & Mask; in isAdvSIMDModImmType10() 610 return (ByteA == 0ULL || ByteA == Mask) && (ByteB == 0ULL || ByteB == Mask) && in isAdvSIMDModImmType10() 611 (ByteC == 0ULL || ByteC == Mask) && (ByteD == 0ULL || ByteD == Mask) && in isAdvSIMDModImmType10() 612 (ByteE == 0ULL || ByteE == Mask) && (ByteF == 0ULL || ByteF == Mask) && in isAdvSIMDModImmType10() 613 (ByteG == 0ULL || ByteG == Mask) && (ByteH == 0ULL || ByteH == Mask); in isAdvSIMDModImmType10() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 366 return Mask; in getRetNoFPClass() 374 return Mask; in getParamNoFPClass() 2042 if ((Mask[0] != 0 && Mask[0] != PoisonMaskElem) || !all_equal(Mask)) in isValidOperands() 2062 if (isa<UndefValue>(Mask) || isa<ConstantAggregateZero>(Mask)) in isValidOperands() 2125 ShuffleMask.assign(Mask.begin(), Mask.end()); in setShuffleMask() 2179 if (Mask[i] != i && Mask[i] != (NumOpElts + i)) in isIdentityMaskImpl() 2221 if (Mask[I] != 0 && Mask[I] != NumSrcElts) in isZeroEltSplatMask() 2236 if (Mask[I] != I && Mask[I] != (NumSrcElts + I)) in isSelectMask() 2257 if (Mask[0] != 0 && Mask[0] != 1) in isTransposeMask() 2262 if ((Mask[1] - Mask[0]) != NumSrcElts) in isTransposeMask() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ExpandImm.cpp | 125 const uint64_t Mask = 0xFFFF; in updateImm() local 129 Imm &= ~(Mask << (Idx * 16)); in updateImm() 132 Imm |= Mask << (Idx * 16); in updateImm() 153 const uint64_t Mask = 0xFFFF; in trySequenceOfOnes() local 176 uint64_t Inside = Mask; in trySequenceOfOnes() 383 if ((Imm & Mask) != ((Imm >> BigSize) & Mask)) { in tryEorOfLogicalImmediates() 469 const unsigned Mask = 0xFFFF; in expandMOVImmSimple() local 514 Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple() 515 if (Imm16 == (isNeg ? Mask : 0)) in expandMOVImmSimple() 527 const unsigned Mask = 0xFFFF; in expandMOVImm() local [all …]
|