Home
last modified time | relevance | path

Searched refs:legalFor (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/
DLegalizerTest.cpp40 getActionDefinitionsBuilder(G_PTR_ADD).legalFor({{p0, s64}});
41 getActionDefinitionsBuilder(G_CONSTANT).legalFor({s32, s64});
43 .legalFor({{v2s16, s16}})
45 getActionDefinitionsBuilder(G_BUILD_VECTOR_TRUNC).legalFor({{v2s8, s16}});
46 getActionDefinitionsBuilder(G_ANYEXT).legalFor({{s32, s16}});
47 getActionDefinitionsBuilder(G_ZEXT).legalFor({{s32, s16}});
48 getActionDefinitionsBuilder(G_SEXT).legalFor({{s32, s16}});
49 getActionDefinitionsBuilder(G_AND).legalFor({s32});
51 getActionDefinitionsBuilder(G_ASHR).legalFor({{s32, s32}});
52 getActionDefinitionsBuilder(G_SHL).legalFor({{s32, s32}});
DLegalizerInfoTest.cpp234 .legalFor({v4s32, v4p0}) in TEST()
248 .legalFor({s32}) in TEST()
260 .legalFor({s16}) in TEST()
272 .legalFor({s16}) in TEST()
288 .legalFor({s32}) in TEST()
301 .legalFor({s16}) in TEST()
315 .legalFor({s16}) in TEST()
332 .legalFor({s32}) in TEST()
348 .legalFor({s32}) in TEST()
DLegalizerHelperTest.cpp35 getActionDefinitionsBuilder(G_CTTZ_ZERO_UNDEF).legalFor({{s32, s64}}); in TEST_F()
67 getActionDefinitionsBuilder(G_CTLZ).legalFor({{s64, s64}}); in TEST_F()
101 getActionDefinitionsBuilder(G_CTLZ).legalFor({{s32, s32}}); in TEST_F()
136 getActionDefinitionsBuilder(G_CTTZ).legalFor({{s32, s64}}); in TEST_F()
171 getActionDefinitionsBuilder(G_CTPOP).legalFor({{s64, s64}}); in TEST_F()
203 getActionDefinitionsBuilder(G_CTPOP).legalFor({{s16, s16}}); in TEST_F()
235 getActionDefinitionsBuilder(G_CTPOP).legalFor({{s32, s16}}); in TEST_F()
269 getActionDefinitionsBuilder(G_CTTZ).legalFor({{s64, s64}}); in TEST_F()
296 getActionDefinitionsBuilder(G_CTLZ_ZERO_UNDEF).legalFor({{s64, s64}}); in TEST_F()
358 getActionDefinitionsBuilder(G_CTPOP).legalFor({{s8, s8}}); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64LegalizerInfo.cpp62 .legalFor({p0, s1, s8, s16, s32, s64, v2s32, v4s32, v2s64}) in AArch64LegalizerInfo()
79 .legalFor({p0, s16, s32, s64, v2s32, v4s32, v2s64}) in AArch64LegalizerInfo()
84 .legalFor({s32, s64, v4s32, v2s32, v2s64}) in AArch64LegalizerInfo()
89 .legalFor({s32, s64, v2s32, v4s32, v2s64, v8s16, v16s8}) in AArch64LegalizerInfo()
97 .legalFor({{s32, s32}, {s64, s64}, in AArch64LegalizerInfo()
108 .legalFor({{p0, s64}}) in AArch64LegalizerInfo()
111 getActionDefinitionsBuilder(G_PTR_MASK).legalFor({p0}); in AArch64LegalizerInfo()
114 .legalFor({s32, s64}) in AArch64LegalizerInfo()
127 .legalFor({{s32, s32}, in AArch64LegalizerInfo()
143 getActionDefinitionsBuilder({G_SMULH, G_UMULH}).legalFor({s32, s64}); in AArch64LegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsLegalizerInfo.cpp79 .legalFor({s32}) in MipsLegalizerInfo()
101 .legalFor({s32, s64}); in MipsLegalizerInfo()
104 .legalFor({{s32, s64}}); in MipsLegalizerInfo()
107 .legalFor({{s64, s32}}); in MipsLegalizerInfo()
128 .legalFor({s32}) in MipsLegalizerInfo()
132 .legalFor({{p0, s32}}); in MipsLegalizerInfo()
135 .legalFor({p0}); in MipsLegalizerInfo()
138 .legalFor({p0, s32, s64}) in MipsLegalizerInfo()
142 .legalFor({s32}) in MipsLegalizerInfo()
157 .legalFor({{s32, s32}}) in MipsLegalizerInfo()
[all …]
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64LegalizerInfo.cpp80 .legalFor({p0, s1, s8, s16, s32, s64}) in AArch64LegalizerInfo()
81 .legalFor(PackedVectorAllTypeList) in AArch64LegalizerInfo()
97 getActionDefinitionsBuilder(G_PHI).legalFor({p0, s16, s32, s64}) in AArch64LegalizerInfo()
98 .legalFor(PackedVectorAllTypeList) in AArch64LegalizerInfo()
103 .legalFor({s32, s64, v4s32, v2s32, v2s64}) in AArch64LegalizerInfo()
108 .legalFor({s32, s64, v2s32, v4s32, v4s16, v8s16, v16s8, v8s8}) in AArch64LegalizerInfo()
114 .legalFor({v2s64}) in AArch64LegalizerInfo()
128 .legalFor({ in AArch64LegalizerInfo()
149 .legalFor({{p0, s64}, {v2p0, v2s64}}) in AArch64LegalizerInfo()
152 getActionDefinitionsBuilder(G_PTRMASK).legalFor({{p0, s64}}); in AArch64LegalizerInfo()
[all …]
/external/llvm-project/llvm/lib/Target/Mips/
DMipsLegalizerInfo.cpp95 .legalFor({s32}) in MipsLegalizerInfo()
152 .legalFor({s32, s64}); in MipsLegalizerInfo()
155 .legalFor({{s32, s64}}); in MipsLegalizerInfo()
158 .legalFor({{s64, s32}}); in MipsLegalizerInfo()
179 .legalFor({s32}) in MipsLegalizerInfo()
183 .legalFor({{p0, s32}}); in MipsLegalizerInfo()
186 .legalFor({p0}); in MipsLegalizerInfo()
189 .legalFor({p0, s32, s64}) in MipsLegalizerInfo()
193 .legalFor({s32}) in MipsLegalizerInfo()
208 .legalFor({{s32, s32}}) in MipsLegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMLegalizerInfo.cpp90 .legalFor({s32}) in ARMLegalizerInfo()
95 .legalFor({s32, s64}) in ARMLegalizerInfo()
99 .legalFor({s32}) in ARMLegalizerInfo()
103 .legalFor({{s32, s32}}) in ARMLegalizerInfo()
111 .legalFor({s32}) in ARMLegalizerInfo()
129 .legalFor({{p0, s32}}) in ARMLegalizerInfo()
132 .legalFor({{s32, p0}}) in ARMLegalizerInfo()
136 .legalFor({s32, p0}) in ARMLegalizerInfo()
157 getActionDefinitionsBuilder(G_FRAME_INDEX).legalFor({p0}); in ARMLegalizerInfo()
158 getActionDefinitionsBuilder(G_GLOBAL_VALUE).legalFor({p0}); in ARMLegalizerInfo()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMLegalizerInfo.cpp90 .legalFor({s32}) in ARMLegalizerInfo()
95 .legalFor({s32, s64}) in ARMLegalizerInfo()
99 .legalFor({s32}) in ARMLegalizerInfo()
103 .legalFor({{s32, s32}}) in ARMLegalizerInfo()
111 .legalFor({s32}) in ARMLegalizerInfo()
129 .legalFor({{p0, s32}}) in ARMLegalizerInfo()
132 .legalFor({{s32, p0}}) in ARMLegalizerInfo()
136 .legalFor({s32, p0}) in ARMLegalizerInfo()
157 getActionDefinitionsBuilder(G_FRAME_INDEX).legalFor({p0}); in ARMLegalizerInfo()
158 getActionDefinitionsBuilder(G_GLOBAL_VALUE).legalFor({p0}); in ARMLegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp253 .legalFor({S32, S64, V2S16, V4S16, S1, S128, S256}) in AMDGPULegalizerInfo()
254 .legalFor(AllS32Vectors) in AMDGPULegalizerInfo()
255 .legalFor(AllS64Vectors) in AMDGPULegalizerInfo()
256 .legalFor(AddrSpaces64) in AMDGPULegalizerInfo()
257 .legalFor(AddrSpaces32) in AMDGPULegalizerInfo()
266 .legalFor({S32, S16}) in AMDGPULegalizerInfo()
271 .legalFor({S32}) in AMDGPULegalizerInfo()
278 .legalFor({S32, S64}) in AMDGPULegalizerInfo()
284 .legalFor({S32}) in AMDGPULegalizerInfo()
291 .legalFor({S32, S1, S64, V2S32, S16, V2S16, V4S16}) in AMDGPULegalizerInfo()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULegalizerInfo.cpp508 .legalFor({S32, S64, V2S16, S16, V4S16, S1, S128, S256}) in AMDGPULegalizerInfo()
509 .legalFor(AllS32Vectors) in AMDGPULegalizerInfo()
510 .legalFor(AllS64Vectors) in AMDGPULegalizerInfo()
511 .legalFor(AddrSpaces64) in AMDGPULegalizerInfo()
512 .legalFor(AddrSpaces32) in AMDGPULegalizerInfo()
523 .legalFor({S32, S16, V2S16}) in AMDGPULegalizerInfo()
530 .legalFor({S32, S16, V2S16}) // Clamp modifier in AMDGPULegalizerInfo()
538 .legalFor({S32, S16}) in AMDGPULegalizerInfo()
546 .legalFor({S32, S16}) // Clamp modifier in AMDGPULegalizerInfo()
560 .legalFor({S32}) in AMDGPULegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86LegalizerInfo.cpp151 getActionDefinitionsBuilder(G_INTTOPTR).legalFor({{p0, s32}}); in setLegalizerInfo32bit()
156 .legalFor({s8, s16, s32}) in setLegalizerInfo32bit()
161 .legalFor({{s8, s8}, {s16, s8}, {s32, s8}}) in setLegalizerInfo32bit()
231 getActionDefinitionsBuilder(G_INTTOPTR).legalFor({{p0, s64}}); in setLegalizerInfo64bit()
267 .legalFor({s8, s16, s32, s64}) in setLegalizerInfo64bit()
273 .legalFor({{s8, s8}, {s16, s8}, {s32, s8}, {s64, s8}}) in setLegalizerInfo64bit()
/external/llvm-project/llvm/lib/Target/X86/
DX86LegalizerInfo.cpp145 getActionDefinitionsBuilder(G_INTTOPTR).legalFor({{p0, s32}}); in setLegalizerInfo32bit()
150 .legalFor({s8, s16, s32}) in setLegalizerInfo32bit()
155 .legalFor({{s8, s8}, {s16, s8}, {s32, s8}}) in setLegalizerInfo32bit()
224 getActionDefinitionsBuilder(G_INTTOPTR).legalFor({{p0, s64}}); in setLegalizerInfo64bit()
262 .legalFor({s8, s16, s32, s64}) in setLegalizerInfo64bit()
268 .legalFor({{s8, s8}, {s16, s8}, {s32, s8}, {s64, s8}}) in setLegalizerInfo64bit()
/external/llvm-project/llvm/docs/GlobalISel/
DLegalizer.rst63 .legalFor({s32, s64, v2s32, v4s32, v2s64})
125 .legalFor({s32, s64, v2s32, v4s32, v2s64})
133 this doesn't meet the predicate for the :ref:`.legalFor() <legalfor>` as ``s7``
138 satisfy ``.legalFor()`` and the resulting output is::
156 * ``legalIf()``, ``legalFor()``, etc. declare an instruction to be legal if the
214 * ``legalFor()``, ``narrowScalarFor()``, etc. are satisfied if the type matches one in
215 a given set of types. For example ``.legalFor({s16, s32})`` declares the
219 ``.legalFor({{s16, s32}, {s32, s64}})`` will only accept ``{s16, s32}``, or
223 similar to ``legalFor()``, ``narrowScalarFor()``, etc. but additionally require a
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h539 LegalizeRuleSet &legalFor(std::initializer_list<LLT> Types) { in legalFor() function
544 LegalizeRuleSet &legalFor(std::initializer_list<std::pair<LLT, LLT>> Types) { in legalFor() function
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizerInfo.h485 LegalizeRuleSet &legalFor(std::initializer_list<LLT> Types) { in legalFor() function
490 LegalizeRuleSet &legalFor(std::initializer_list<std::pair<LLT, LLT>> Types) { in legalFor() function