Home
last modified time | relevance | path

Searched refs:LegalityQuery (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DLegalityPredicates.cpp30 [=](const LegalityQuery &Query) { return Query.Types[TypeIdx] == Type; }; in typeIs()
37 return [=](const LegalityQuery &Query) { in typeInSet()
46 return [=](const LegalityQuery &Query) { in typePairInSet()
56 return [=](const LegalityQuery &Query) { in typePairAndMemDescInSet()
69 return [=](const LegalityQuery &Query) { in isScalar()
75 return [=](const LegalityQuery &Query) { in isVector()
81 return [=](const LegalityQuery &Query) { in isPointer()
88 return [=](const LegalityQuery &Query) { in isPointer()
96 return [=](const LegalityQuery &Query) { in elementTypeIs()
104 return [=](const LegalityQuery &Query) { in scalarNarrowerThan()
[all …]
DLegalizeMutations.cpp19 [=](const LegalityQuery &Query) { return std::make_pair(TypeIdx, Ty); }; in changeTo()
24 return [=](const LegalityQuery &Query) { in changeTo()
31 return [=](const LegalityQuery &Query) { in changeElementTo()
40 return [=](const LegalityQuery &Query) { in changeElementTo()
48 return [=](const LegalityQuery &Query) { in changeElementSizeTo()
58 return [=](const LegalityQuery &Query) { in widenScalarOrEltToNextPow2()
68 return [=](const LegalityQuery &Query) { in moreElementsToNextPow2()
78 return [=](const LegalityQuery &Query) { in scalarize()
DLegalizerInfo.cpp87 raw_ostream &LegalityQuery::print(raw_ostream &OS) const { in print()
105 static bool hasNoSimpleLoops(const LegalizeRule &Rule, const LegalityQuery &Q, in hasNoSimpleLoops()
122 const LegalityQuery &Q, in mutationIsSane()
190 LegalizeActionStep LegalizeRuleSet::apply(const LegalityQuery &Query) const { in apply()
466 LegalizerInfo::getAction(const LegalityQuery &Query) const { in getAction()
508 SmallVector<LegalityQuery::MemDesc, 2> MemDescrs; in getAction()
DCombinerHelper.cpp52 const LegalityQuery &Query) const { in isLegalOrBeforeLegalizer()
422 LegalityQuery::MemDesc MMDesc; in matchCombineExtendingLoads()
DLegalizerHelper.cpp4834 auto isSupported = [this](const LegalityQuery &Q) { in lowerBitCount()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalityPredicates.cpp30 [=](const LegalityQuery &Query) { return Query.Types[TypeIdx] == Type; }; in typeIs()
37 return [=](const LegalityQuery &Query) { in typeInSet()
46 return [=](const LegalityQuery &Query) { in typePairInSet()
56 return [=](const LegalityQuery &Query) { in typePairAndMemDescInSet()
69 return [=](const LegalityQuery &Query) { in isScalar()
75 return [=](const LegalityQuery &Query) { in isVector()
81 return [=](const LegalityQuery &Query) { in isPointer()
88 return [=](const LegalityQuery &Query) { in isPointer()
96 return [=](const LegalityQuery &Query) { in narrowerThan()
104 return [=](const LegalityQuery &Query) { in widerThan()
[all …]
DLegalizeMutations.cpp19 [=](const LegalityQuery &Query) { return std::make_pair(TypeIdx, Ty); }; in changeTo()
24 return [=](const LegalityQuery &Query) { in changeTo()
31 return [=](const LegalityQuery &Query) { in changeElementTo()
40 return [=](const LegalityQuery &Query) { in changeElementTo()
48 return [=](const LegalityQuery &Query) { in widenScalarOrEltToNextPow2()
58 return [=](const LegalityQuery &Query) { in moreElementsToNextPow2()
68 return [=](const LegalityQuery &Query) { in scalarize()
DLegalizerInfo.cpp84 raw_ostream &LegalityQuery::print(raw_ostream &OS) const { in print()
102 static bool hasNoSimpleLoops(const LegalizeRule &Rule, const LegalityQuery &Q, in hasNoSimpleLoops()
118 const LegalityQuery &Q, in mutationIsSane()
182 LegalizeActionStep LegalizeRuleSet::apply(const LegalityQuery &Query) const { in apply()
458 LegalizerInfo::getAction(const LegalityQuery &Query) const { in getAction()
500 SmallVector<LegalityQuery::MemDesc, 2> MemDescrs; in getAction()
DLegalizerHelper.cpp3727 auto isSupported = [this](const LegalityQuery &Q) { in lowerBitCount()
/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DLegalizerInfoTest.cpp238 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_IMPLICIT_DEF, {s32})); in TEST()
239 EXPECT_ACTION(Unsupported, 0, LLT(), LegalityQuery(G_IMPLICIT_DEF, {v2s32})); in TEST()
240 EXPECT_ACTION(MoreElements, 0, v4p0, LegalityQuery(G_IMPLICIT_DEF, {v3p0})); in TEST()
241 EXPECT_ACTION(MoreElements, 0, v4s32, LegalityQuery(G_IMPLICIT_DEF, {v3s32})); in TEST()
252 EXPECT_ACTION(WidenScalar, 0, s32, LegalityQuery(G_OR, {s16})); in TEST()
253 EXPECT_ACTION(WidenScalar, 0, v2s32, LegalityQuery(G_OR, {v2s16})); in TEST()
264 EXPECT_ACTION(NarrowScalar, 0, s16, LegalityQuery(G_AND, {s32})); in TEST()
265 EXPECT_ACTION(NarrowScalar, 0, v2s16, LegalityQuery(G_AND, {v2s32})); in TEST()
276 EXPECT_ACTION(NarrowScalar, 0, s32, LegalityQuery(G_XOR, {s64})); in TEST()
277 EXPECT_ACTION(WidenScalar, 0, s16, LegalityQuery(G_XOR, {s8})); in TEST()
[all …]
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64LegalizerInfo.cpp85 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
90 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
110 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
122 .customIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
185 [=, &ST](const LegalityQuery &Query) { in AArch64LegalizerInfo()
190 [=](const LegalityQuery &Query) { return std::make_pair(0, s16); }) in AArch64LegalizerInfo()
194 [=, &ST](const LegalityQuery &Query) { in AArch64LegalizerInfo()
197 [=](const LegalityQuery &Query) { return std::make_pair(0, s32); }) in AArch64LegalizerInfo()
209 .unsupportedIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
212 .legalIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64LegalizerInfo.cpp66 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
71 [=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
121 .customIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
160 [=, &ST](const LegalityQuery &Query) { in AArch64LegalizerInfo()
165 [=](const LegalityQuery &Query) { return std::make_pair(0, s16); }) in AArch64LegalizerInfo()
169 [=, &ST](const LegalityQuery &Query) { in AArch64LegalizerInfo()
172 [=](const LegalityQuery &Query) { return std::make_pair(0, s32); }) in AArch64LegalizerInfo()
184 .unsupportedIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
187 .legalIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
202 .unsupportedIf([=](const LegalityQuery &Query) { in AArch64LegalizerInfo()
[all …]
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h125 struct LegalityQuery { struct
139 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types, in LegalityQuery() argument
142 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types) in LegalityQuery() function
143 : LegalityQuery(Opcode, Types, {}) {} in LegalityQuery()
169 using LegalityPredicate = std::function<bool (const LegalityQuery &)>;
171 std::function<std::pair<unsigned, LLT>(const LegalityQuery &)>;
198 return [=](const LegalityQuery &Query) { in all()
211 return [=](const LegalityQuery &Query) { in any()
229 return [=](const LegalityQuery &Query) { in typeIsNot()
350 bool match(const LegalityQuery &Query) const { in match()
[all …]
DCombinerHelper.h36 struct LegalityQuery;
111 bool isLegalOrBeforeLegalizer(const LegalityQuery &Query) const;
DLegalizationArtifactCombiner.h978 bool isInstUnsupported(const LegalityQuery &Query) const { in isInstUnsupported()
984 bool isInstLegal(const LegalityQuery &Query) const { in isInstLegal()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h121 struct LegalityQuery { struct
135 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types, in LegalityQuery() argument
138 constexpr LegalityQuery(unsigned Opcode, const ArrayRef<LLT> Types) in LegalityQuery() function
139 : LegalityQuery(Opcode, Types, {}) {} in LegalityQuery()
165 using LegalityPredicate = std::function<bool (const LegalityQuery &)>;
167 std::function<std::pair<unsigned, LLT>(const LegalityQuery &)>;
194 return [=](const LegalityQuery &Query) { in all()
304 bool match(const LegalityQuery &Query) const { in match()
311 std::pair<unsigned, LLT> determineMutation(const LegalityQuery &Query) const { in determineMutation()
372 static bool always(const LegalityQuery &) { return true; } in always() argument
[all …]
DLegalizationArtifactCombiner.h627 bool isInstUnsupported(const LegalityQuery &Query) const { in isInstUnsupported()
633 bool isInstLegal(const LegalityQuery &Query) const { in isInstLegal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsLegalizerInfo.cpp28 CheckTy0Ty1MemSizeAlign(const LegalityQuery &Query, in CheckTy0Ty1MemSizeAlign()
45 static bool CheckTyN(unsigned N, const LegalityQuery &Query, in CheckTyN()
66 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
83 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
115 .legalIf([](const LegalityQuery &Query) { return false; }) in MipsLegalizerInfo()
119 .legalIf([](const LegalityQuery &Query) { return false; }) in MipsLegalizerInfo()
146 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
189 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
194 .lowerIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
210 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
/external/llvm-project/llvm/lib/Target/Mips/
DMipsLegalizerInfo.cpp38 CheckTy0Ty1MemSizeAlign(const LegalityQuery &Query, in CheckTy0Ty1MemSizeAlign()
61 static bool CheckTyN(unsigned N, const LegalityQuery &Query, in CheckTyN()
82 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
106 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
125 .customIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
166 .legalIf([](const LegalityQuery &Query) { return false; }) in MipsLegalizerInfo()
170 .legalIf([](const LegalityQuery &Query) { return false; }) in MipsLegalizerInfo()
197 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
240 .legalIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
245 .lowerIf([=, &ST](const LegalityQuery &Query) { in MipsLegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp44 return [=](const LegalityQuery &Query) { in isMultiple32()
52 return [=](const LegalityQuery &Query) { in sizeIs()
58 return [=](const LegalityQuery &Query) { in isSmallOddVector()
68 return [=](const LegalityQuery &Query) { in isWideVec16()
76 return [=](const LegalityQuery &Query) { in oneMoreElement()
84 return [=](const LegalityQuery &Query) { in fewerEltsToSize64Vector()
97 return [=](const LegalityQuery &Query) { in moreEltsToNext32Bit()
113 return [=](const LegalityQuery &Query) { in vectorSmallerThan()
120 return [=](const LegalityQuery &Query) { in vectorWiderThan()
127 return [=](const LegalityQuery &Query) { in numElementsNotEven()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp68 return [=](const LegalityQuery &Query) { in isSmallOddVector()
82 return [=](const LegalityQuery &Query) { in sizeIsMultipleOf32()
89 return [=](const LegalityQuery &Query) { in isWideVec16()
97 return [=](const LegalityQuery &Query) { in oneMoreElement()
105 return [=](const LegalityQuery &Query) { in fewerEltsToSize64Vector()
118 return [=](const LegalityQuery &Query) { in moreEltsToNext32Bit()
147 return [=](const LegalityQuery &Query) { in bitcastToRegisterType()
154 return [=](const LegalityQuery &Query) { in bitcastToVectorElement32()
163 return [=](const LegalityQuery &Query) { in vectorSmallerThan()
170 return [=](const LegalityQuery &Query) { in vectorWiderThan()
[all …]
/external/llvm-project/llvm/docs/GlobalISel/
DLegalizer.rst73 At the core of this ruleset is the ``LegalityQuery`` which describes the
211 information in the ``LegalityQuery`` to make its decision.