| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalityPredicates.cpp | 30 [=](const LegalityQuery &Query) { return Query.Types[TypeIdx] == Type; }; in typeIs() argument 37 return [=](const LegalityQuery &Query) { in typeInSet() argument 38 return llvm::is_contained(Types, Query.Types[TypeIdx]); in typeInSet() 46 return [=](const LegalityQuery &Query) { in typePairInSet() argument 47 std::pair<LLT, LLT> Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1]}; in typePairInSet() 56 return [=](const LegalityQuery &Query) { in typeTupleInSet() argument 58 Query.Types[TypeIdx0], Query.Types[TypeIdx1], Query.Types[TypeIdx2]}; in typeTupleInSet() 67 return [=](const LegalityQuery &Query) { in typePairAndMemDescInSet() argument 68 TypePairAndMemDesc Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1], in typePairAndMemDescInSet() 69 Query.MMODescrs[MMOIdx].MemoryTy, in typePairAndMemDescInSet() [all …]
|
| H A D | LegalizeMutations.cpp | 19 [=](const LegalityQuery &Query) { return std::make_pair(TypeIdx, Ty); }; in changeTo() argument 24 return [=](const LegalityQuery &Query) { in changeTo() argument 25 return std::make_pair(TypeIdx, Query.Types[FromTypeIdx]); in changeTo() 31 return [=](const LegalityQuery &Query) { in changeElementTo() argument 32 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 33 const LLT NewTy = Query.Types[FromTypeIdx]; in changeElementTo() 40 return [=](const LegalityQuery &Query) { in changeElementTo() argument 41 const LLT OldTy = Query.Types[TypeIdx]; in changeElementTo() 48 return [=](const LegalityQuery &Query) { in changeElementCountTo() argument 49 const LLT OldTy = Query.Types[TypeIdx]; in changeElementCountTo() [all …]
|
| H A D | LegalizerInfo.cpp | 193 LegalizeActionStep LegalizeRuleSet::apply(const LegalityQuery &Query) const { in apply() 194 LLVM_DEBUG(dbgs() << "Applying legalizer ruleset to: "; Query.print(dbgs()); in apply() 201 if (Rule.match(Query)) { in apply() 203 std::pair<unsigned, LLT> Mutation = Rule.determineMutation(Query); in apply() 206 assert(mutationIsSane(Rule, Query, Mutation) && in apply() 208 assert(hasNoSimpleLoops(Rule, Query, Mutation) && "Simple loop detected"); in apply() 345 LegalizerInfo::getAction(const LegalityQuery &Query) const { in getAction() 346 LegalizeActionStep Step = getActionDefinitions(Query.Opcode).apply(Query); in getAction() 351 return getLegacyLegalizerInfo().getAction(Query); in getAction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86LegalizerInfo.cpp | |
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | AutoConvert.cpp | 49 struct f_cnvrt Query = { in enablezOSAutoConversion() local 55 if (fcntl(FD, F_CONTROL_CVT, &Query) == -1) in enablezOSAutoConversion() 62 if (Query.pccsid == CCSID_ISO8859_1 && in enablezOSAutoConversion() 63 (Query.fccsid == CCSID_UTF_8 || Query.fccsid == CCSID_ISO8859_1)) in enablezOSAutoConversion() 69 savedStdHandleAutoConversionMode[FD] = Query.cvtcmd; in enablezOSAutoConversion() 72 Query.cvtcmd = SETCVTON; in enablezOSAutoConversion() 74 Query.cvtcmd = SETCVTALL; in enablezOSAutoConversion() 76 Query.pccsid = in enablezOSAutoConversion() 81 Query.fccsid = (Query.fccsid == FT_UNTAGGED) ? CCSID_IBM_1047 : Query.fccsid; in enablezOSAutoConversion() 82 return fcntl(FD, F_CONTROL_CVT, &Query); in enablezOSAutoConversion() [all …]
|
| H A D | SpecialCaseList.cpp | 69 unsigned SpecialCaseList::Matcher::match(StringRef Query) const { in match() 71 if (Glob->Pattern.match(Query)) in match() 74 if (Regex->match(Query)) in match() 212 StringRef Query, StringRef Category) const { in inSection() argument 213 auto [FileIdx, LineNo] = inSectionBlame(Section, Prefix, Query, Category); in inSection() 219 StringRef Query, StringRef Category) const { in inSectionBlame() argument 222 unsigned Blame = inSectionBlame(S.Entries, Prefix, Query, Category); in inSectionBlame() 231 StringRef Prefix, StringRef Query, in inSectionBlame() argument 240 return II->getValue().match(Query); in inSectionBlame()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64LegalizerInfo.cpp | 154 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo() argument 155 return Query.Types[0].getNumElements() <= 2; in AArch64LegalizerInfo() 159 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo() argument 160 return Query.Types[0].getNumElements() <= 4; in AArch64LegalizerInfo() 164 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo() argument 165 return Query.Types[0].getNumElements() <= 16; in AArch64LegalizerInfo() 180 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo() argument 181 return Query.Types[0].getNumElements() <= 2; in AArch64LegalizerInfo() 185 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo() argument 186 return Query.Types[0].getNumElements() <= 4; in AArch64LegalizerInfo() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizerInfo.h | 228 return [=](const LegalityQuery &Query) { return !P(Query); }; in predNot() 234 return [=](const LegalityQuery &Query) { in all() 235 return P0(Query) && P1(Query); in all() 247 return [=](const LegalityQuery &Query) { in any() 248 return P0(Query) || P1(Query); in any() 265 return [=](const LegalityQuery &Query) { in typeIsNot() 266 return Query.Types[TypeIdx] != Type; in typeIsNot() 424 bool match(const LegalityQuery &Query) const { in match() argument 425 return Predicate(Query); in match() 431 std::pair<unsigned, LLT> determineMutation(const LegalityQuery &Query) const { in determineMutation() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsLegalizerInfo.cpp | 40 CheckTy0Ty1MemSizeAlign(const LegalityQuery &Query, in CheckTy0Ty1MemSizeAlign() argument 42 unsigned QueryMemSize = Query.MMODescrs[0].MemoryTy.getSizeInBits(); in CheckTy0Ty1MemSizeAlign() 49 if (Val.ValTy != Query.Types[0]) in CheckTy0Ty1MemSizeAlign() 51 if (Val.PtrTy != Query.Types[1]) in CheckTy0Ty1MemSizeAlign() 56 isUnalignedMemmoryAccess(QueryMemSize, Query.MMODescrs[0].AlignInBits)) in CheckTy0Ty1MemSizeAlign() 63 static bool CheckTyN(unsigned N, const LegalityQuery &Query, in CheckTyN() argument 65 return llvm::is_contained(SupportedValues, Query.Types[N]); in CheckTyN() 83 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo() argument 84 if (CheckTyN(0, Query, {s32})) in MipsLegalizerInfo() 86 if (ST.hasMSA() && CheckTyN(0, Query, {v16s8, v8s16, v4s32, v2s64})) in MipsLegalizerInfo() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | Z3CrosscheckVisitor.cpp | 150 const Z3CrosscheckVisitor::Z3Result &Query) { in interpretQueryResult() argument 152 AccumulatedZ3QueryTimeInEqClass += Query.Z3QueryTimeMilliseconds; in interpretQueryResult() 153 TimeSpentSolvingZ3Queries += Query.Z3QueryTimeMilliseconds; in interpretQueryResult() 154 MaxTimeSpentSolvingZ3Queries.updateMax(Query.Z3QueryTimeMilliseconds); in interpretQueryResult() 156 if (Query.IsSAT && Query.IsSAT.value()) { in interpretQueryResult() 163 Query.Z3QueryTimeMilliseconds >= Opts.Z3CrosscheckTimeoutThreshold) { in interpretQueryResult() 170 Query.UsedRLimit >= Opts.Z3CrosscheckRLimitThreshold) { in interpretQueryResult()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | LiveIntervalUnion.h | 112 class Query { 131 Query() = default; 132 Query(const LiveRange &LR, const LiveIntervalUnion &LIU) in Query() function 134 Query(const Query &) = delete; 135 Query &operator=(const Query &) = delete;
|
| H A D | LiveRegMatrix.h | 55 std::unique_ptr<LiveIntervalUnion::Query[]> Queries; 164 LiveIntervalUnion::Query &query(const LiveRange &LR, MCRegUnit RegUnit);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/ |
| H A D | X86LegalizerInfo.cpp | 370 Action.customIf([=](const LegalityQuery &Query) { in X86LegalizerInfo() argument 371 return Query.Types[0] != Query.MMODescrs[0].MemoryTy; in X86LegalizerInfo() 480 .customIf([=](const LegalityQuery &Query) { in X86LegalizerInfo() argument 482 ((HasSSE1 && typeIs(0, s32)(Query)) || in X86LegalizerInfo() 483 (HasSSE2 && typeIs(0, s64)(Query))) && in X86LegalizerInfo() 484 scalarNarrowerThan(1, Is64Bit ? 64 : 32)(Query); in X86LegalizerInfo() 486 .lowerIf([=](const LegalityQuery &Query) { in X86LegalizerInfo() argument 489 ((HasSSE1 && typeIs(0, s32)(Query)) || in X86LegalizerInfo() 490 (HasSSE2 && typeIs(0, s64)(Query))) && in X86LegalizerInfo() 491 (Is64Bit && typeIs(1, s64)(Query)); in X86LegalizerInfo() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SanitizerSpecialCaseList.cpp | 58 StringRef Query, in inSection() argument 60 return inSectionBlame(Mask, Prefix, Query, Category) != NotFound; in inSection() 65 StringRef Query, in inSectionBlame() argument 70 SpecialCaseList::inSectionBlame(S.Entries, Prefix, Query, Category); in inSectionBlame()
|
| H A D | ProfileList.cpp | 106 StringRef Query) const { in inSection() 107 if (SCL->inSection(Section, Prefix, Query, "allow")) in inSection() 109 if (SCL->inSection(Section, Prefix, Query, "skip")) in inSection() 111 if (SCL->inSection(Section, Prefix, Query, "forbid")) in inSection() 113 if (SCL->inSection(Section, Prefix, Query)) in inSection()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | SpecialCaseList.h | 95 LLVM_ABI bool inSection(StringRef Section, StringRef Prefix, StringRef Query, 107 inSectionBlame(StringRef Section, StringRef Prefix, StringRef Query, 128 LLVM_ABI unsigned match(StringRef Query) const; 169 StringRef Prefix, StringRef Query,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVLegalizerInfo.cpp | 28 return [IsExtendedInts, TypeIdx](const LegalityQuery &Query) { in typeOfExtendedScalars() argument 29 const LLT Ty = Query.Types[TypeIdx]; in typeOfExtendedScalars() 135 [IsExtendedInts](const LegalityQuery &Query) { in SPIRVLegalizerInfo() argument 136 const LLT Ty = Query.Types[0]; in SPIRVLegalizerInfo() 140 const LegalityQuery &Query) { in SPIRVLegalizerInfo() argument 141 const LLT Ty1 = Query.Types[0], Ty2 = Query.Types[1]; in SPIRVLegalizerInfo() 146 [IsExtendedInts](const LegalityQuery &Query) { in SPIRVLegalizerInfo() argument 147 const LLT Ty = Query.Types[0]; in SPIRVLegalizerInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULegalizerInfo.cpp | 73 return [=](const LegalityQuery &Query) { in isSmallOddVector() argument 74 const LLT Ty = Query.Types[TypeIdx]; in isSmallOddVector() 87 return [=](const LegalityQuery &Query) { in sizeIsMultipleOf32() argument 88 const LLT Ty = Query.Types[TypeIdx]; in sizeIsMultipleOf32() 94 return [=](const LegalityQuery &Query) { in isWideVec16() argument 95 const LLT Ty = Query.Types[TypeIdx]; in isWideVec16() 102 return [=](const LegalityQuery &Query) { in oneMoreElement() argument 103 const LLT Ty = Query.Types[TypeIdx]; in oneMoreElement() 111 return [=](const LegalityQuery &Query) { in fewerEltsToSize64Vector() argument 112 const LLT Ty = Query.Types[TypeIdx]; in fewerEltsToSize64Vector() [all …]
|
| H A D | SIOptimizeExecMaskingPreRA.cpp | 93 LiveQueryResult AndLRQ = LR.Query(AndIdx); in isDefBetween() 94 return (!AndLRQ.isKill() && AndLRQ.valueIn() != LR.Query(SelIdx).valueOut()); in isDefBetween() 230 auto CCQ = CCLI.Query(SelIdx.getRegSlot()); in optimizeVcndVcmpPair() 241 if ((CmpLI && CmpLI->Query(AndIdx.getRegSlot()).isKill()) || in optimizeVcndVcmpPair() 255 bool IsKill = SelLI->Query(CmpIdx.getRegSlot()).isKill(); in optimizeVcndVcmpPair() 257 bool IsDead = SelLI->Query(SelIdx.getRegSlot()).isDeadDef(); in optimizeVcndVcmpPair()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveRegMatrix.cpp | 68 Queries.reset(new LiveIntervalUnion::Query[NumRegUnits]); in init() 186 LiveIntervalUnion::Query &LiveRegMatrix::query(const LiveRange &LR, in query() 188 LiveIntervalUnion::Query &Q = Queries[RegUnit]; in query() 240 LiveIntervalUnion::Query Q; in checkInterference() 274 LiveIntervalUnion::Query Q; in checkInterferenceLanes()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | SanitizerSpecialCaseList.h | 44 bool inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query, 52 inSectionBlame(SanitizerMask Mask, StringRef Prefix, StringRef Query,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
| H A D | RISCVLegalizerInfo.cpp | 39 LegalityPredicate P = [=, &ST](const LegalityQuery &Query) { in typeIsLegalIntOrFPVec() argument 41 (Query.Types[TypeIdx].getScalarSizeInBits() != 64 || in typeIsLegalIntOrFPVec() 43 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalIntOrFPVec() 53 LegalityPredicate P = [=, &ST](const LegalityQuery &Query) { in typeIsLegalBoolVec() argument 55 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalBoolVec() 64 LegalityPredicate P = [=, &ST](const LegalityQuery &Query) { in typeIsLegalPtrVec() argument 66 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 1 || in typeIsLegalPtrVec() 68 (Query.Types[TypeIdx].getElementCount().getKnownMinValue() != 16 || in typeIsLegalPtrVec() 69 Query.Types[TypeIdx].getScalarSizeInBits() == 32); in typeIsLegalPtrVec() 587 [=, &ST](const LegalityQuery &Query) { in RISCVLegalizerInfo() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/ |
| H A D | PPCLegalizerInfo.cpp | 22 return [=](const LegalityQuery &Query) { in isRegisterType() argument 23 const LLT QueryTy = Query.Types[TypeIdx]; in isRegisterType()
|
| /freebsd/contrib/llvm-project/llvm/lib/TargetParser/ |
| H A D | Host.cpp | 1705 RISCVHwProbe Query[]{{/*RISCV_HWPROBE_KEY_MVENDORID=*/0, 0}, in getHostCPUName() local 1708 int Ret = syscall(/*__NR_riscv_hwprobe=*/258, /*pairs=*/Query, in getHostCPUName() 1709 /*pair_count=*/std::size(Query), /*cpu_count=*/0, in getHostCPUName() 1712 RISCV::CPUModel Model{static_cast<uint32_t>(Query[0].Value), Query[1].Value, in getHostCPUName() 1713 Query[2].Value}; in getHostCPUName() 2200 RISCVHwProbe Query[]{{/*RISCV_HWPROBE_KEY_BASE_BEHAVIOR=*/3, 0}, in getHostCPUFeatures() local 2203 int Ret = syscall(/*__NR_riscv_hwprobe=*/258, /*pairs=*/Query, in getHostCPUFeatures() 2204 /*pair_count=*/std::size(Query), /*cpu_count=*/0, in getHostCPUFeatures() 2210 uint64_t BaseMask = Query[0].Value; in getHostCPUFeatures() 2218 uint64_t ExtMask = Query[1].Value; in getHostCPUFeatures() [all …]
|
| /freebsd/sys/kern/ |
| H A D | serdev_if.m | 64 # ihand() - Query serial device interrupt handler. 74 # ipend() - Query pending interrupt status. 83 # sysdev() - Query system device status
|