1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* SPIRVPreLegalizerCombinerImpl Combiner Match Table *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_GICOMBINER_DEPS
10
11#include "llvm/ADT/SparseBitVector.h"
12namespace llvm {
13
14extern cl::OptionCategory GICombinerOptionCategory;
15
16} // namespace llvm
17
18#endif // GET_GICOMBINER_DEPS
19
20#ifdef GET_GICOMBINER_TYPES
21
22struct SPIRVPreLegalizerCombinerImplRuleConfig {
23 SparseBitVector<> DisabledRules;
24
25 bool isRuleEnabled(unsigned RuleID) const;
26 bool parseCommandLineOption();
27 bool setRuleEnabled(StringRef RuleIdentifier);
28 bool setRuleDisabled(StringRef RuleIdentifier);
29};
30
31static std::optional<uint64_t> getRuleIdxForIdentifier(StringRef RuleIdentifier) {
32 uint64_t I;
33 // getAtInteger(...) returns false on success
34 bool Parsed = !RuleIdentifier.getAsInteger(0, I);
35 if (Parsed)
36 return I;
37
38#ifndef NDEBUG
39 switch (RuleIdentifier.size()) {
40 default: break;
41 case 24: // 1 string to match.
42 if (memcmp(RuleIdentifier.data()+0, "matrix_multiply_lowering", 24) != 0)
43 break;
44 return 4; // "matrix_multiply_lowering"
45 case 25: // 1 string to match.
46 if (memcmp(RuleIdentifier.data()+0, "matrix_transpose_lowering", 25) != 0)
47 break;
48 return 3; // "matrix_transpose_lowering"
49 case 37: // 1 string to match.
50 if (memcmp(RuleIdentifier.data()+0, "vector_select_to_faceforward_lowering", 37) != 0)
51 break;
52 return 2; // "vector_select_to_faceforward_lowering"
53 case 38: // 1 string to match.
54 if (memcmp(RuleIdentifier.data()+0, "vector_length_sub_to_distance_lowering", 38) != 0)
55 break;
56 return 0; // "vector_length_sub_to_distance_lowering"
57 case 40: // 1 string to match.
58 if (memcmp(RuleIdentifier.data()+0, "vector_fdiv_length_to_normalize_lowering", 40) != 0)
59 break;
60 return 1; // "vector_fdiv_length_to_normalize_lowering"
61 }
62#endif // ifndef NDEBUG
63
64 return std::nullopt;
65}
66static std::optional<std::pair<uint64_t, uint64_t>> getRuleRangeForIdentifier(StringRef RuleIdentifier) {
67 std::pair<StringRef, StringRef> RangePair = RuleIdentifier.split('-');
68 if (!RangePair.second.empty()) {
69 const auto First = getRuleIdxForIdentifier(RangePair.first);
70 const auto Last = getRuleIdxForIdentifier(RangePair.second);
71 if (!First || !Last)
72 return std::nullopt;
73 if (First >= Last)
74 report_fatal_error("Beginning of range should be before end of range");
75 return {{*First, *Last + 1}};
76 }
77 if (RangePair.first == "*") {
78 return {{0, 5}};
79 }
80 const auto I = getRuleIdxForIdentifier(RangePair.first);
81 if (!I)
82 return std::nullopt;
83 return {{*I, *I + 1}};
84}
85
86bool SPIRVPreLegalizerCombinerImplRuleConfig::setRuleEnabled(StringRef RuleIdentifier) {
87 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
88 if (!MaybeRange)
89 return false;
90 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
91 DisabledRules.reset(I);
92 return true;
93}
94
95bool SPIRVPreLegalizerCombinerImplRuleConfig::setRuleDisabled(StringRef RuleIdentifier) {
96 auto MaybeRange = getRuleRangeForIdentifier(RuleIdentifier);
97 if (!MaybeRange)
98 return false;
99 for (auto I = MaybeRange->first; I < MaybeRange->second; ++I)
100 DisabledRules.set(I);
101 return true;
102}
103
104static std::vector<std::string> SPIRVPreLegalizerCombinerOption;
105static cl::list<std::string> SPIRVPreLegalizerCombinerDisableOption(
106 "spirvprelegalizercombiner-disable-rule",
107 cl::desc("Disable one or more combiner rules temporarily in the SPIRVPreLegalizerCombiner pass"),
108 cl::CommaSeparated,
109 cl::Hidden,
110 cl::cat(GICombinerOptionCategory),
111 cl::callback([](const std::string &Str) {
112 SPIRVPreLegalizerCombinerOption.push_back(Str);
113 }));
114static cl::list<std::string> SPIRVPreLegalizerCombinerOnlyEnableOption(
115 "spirvprelegalizercombiner-only-enable-rule",
116 cl::desc("Disable all rules in the SPIRVPreLegalizerCombiner pass then re-enable the specified ones"),
117 cl::Hidden,
118 cl::cat(GICombinerOptionCategory),
119 cl::callback([](const std::string &CommaSeparatedArg) {
120 StringRef Str = CommaSeparatedArg;
121 SPIRVPreLegalizerCombinerOption.push_back("*");
122 do {
123 auto X = Str.split(",");
124 SPIRVPreLegalizerCombinerOption.push_back(("!" + X.first).str());
125 Str = X.second;
126 } while (!Str.empty());
127 }));
128
129
130bool SPIRVPreLegalizerCombinerImplRuleConfig::isRuleEnabled(unsigned RuleID) const {
131 return !DisabledRules.test(RuleID);
132}
133bool SPIRVPreLegalizerCombinerImplRuleConfig::parseCommandLineOption() {
134 for (StringRef Identifier : SPIRVPreLegalizerCombinerOption) {
135 bool Enabled = Identifier.consume_front("!");
136 if (Enabled && !setRuleEnabled(Identifier))
137 return false;
138 if (!Enabled && !setRuleDisabled(Identifier))
139 return false;
140 }
141 return true;
142}
143
144
145#endif // GET_GICOMBINER_TYPES
146
147#ifdef GET_GICOMBINER_TYPES
148
149const unsigned MAX_SUBTARGET_PREDICATES = 0;
150using PredicateBitset = llvm::Bitset<MAX_SUBTARGET_PREDICATES>;
151
152#endif // GET_GICOMBINER_TYPES
153
154#ifdef GET_GICOMBINER_CLASS_MEMBERS
155
156 bool canMatchOpcode(unsigned Opc) const override;
157 uint32_t getRootFlagsToDrop() const override;
158
159#endif // GET_GICOMBINER_CLASS_MEMBERS
160
161#ifdef GET_GICOMBINER_CLASS_MEMBERS
162
163PredicateBitset AvailableModuleFeatures;
164mutable PredicateBitset AvailableFunctionFeatures;
165PredicateBitset getAvailableFeatures() const {
166 return AvailableModuleFeatures | AvailableFunctionFeatures;
167}
168PredicateBitset
169computeAvailableModuleFeatures(const SPIRVSubtarget *Subtarget) const;
170PredicateBitset
171computeAvailableFunctionFeatures(const SPIRVSubtarget *Subtarget,
172 const MachineFunction *MF) const;
173void setupGeneratedPerFunctionState(MachineFunction &MF) override;
174
175#endif // GET_GICOMBINER_CLASS_MEMBERS
176
177#ifdef GET_GICOMBINER_CLASS_MEMBERS
178
179 mutable MatcherState State;
180 typedef ComplexRendererFns(SPIRVPreLegalizerCombinerImpl::*ComplexMatcherMemFn)(MachineOperand &) const;
181 typedef void(SPIRVPreLegalizerCombinerImpl::*CustomRendererFn)(MachineInstrBuilder &, const MachineInstr &, int) const;
182 const ExecInfoTy<PredicateBitset, ComplexMatcherMemFn, CustomRendererFn> ExecInfo;
183 static SPIRVPreLegalizerCombinerImpl::ComplexMatcherMemFn ComplexPredicateFns[];
184 static SPIRVPreLegalizerCombinerImpl::CustomRendererFn CustomRenderers[];
185 bool testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const override;
186 bool testImmPredicate_APInt(unsigned PredicateID, const APInt &Imm) const override;
187 bool testImmPredicate_APFloat(unsigned PredicateID, const APFloat &Imm) const override;
188 const uint8_t *getMatchTable() const override;
189 LLT getLLTForHwMode(unsigned Index) const override;
190 bool testMIPredicate_MI(unsigned PredicateID, const MachineInstr &MI, const MatcherState &State) const override;
191 bool testMOPredicate_MO(unsigned PredicateID, const MachineOperand &MO, const MatcherState &State) const override;
192 bool testSimplePredicate(unsigned PredicateID) const override;
193 bool runCustomAction(unsigned FnID, const MatcherState &State, NewMIVector &OutMIs) const override;
194
195#endif // GET_GICOMBINER_CLASS_MEMBERS
196
197#ifdef GET_GICOMBINER_IMPL
198
199// LLT Objects.
200enum {
201 GILLT_s1,
202};
203const static size_t NumTypeObjects = 1;
204const static LLT TypeObjects[] = {
205 LLT::scalar(1),
206};
207
208// Bits for subtarget features that participate in instruction matching.
209enum SubtargetFeatureBits : uint8_t {
210};
211
212PredicateBitset SPIRVPreLegalizerCombinerImpl::
213computeAvailableModuleFeatures(const SPIRVSubtarget *Subtarget) const {
214 PredicateBitset Features{};
215 return Features;
216}
217
218void SPIRVPreLegalizerCombinerImpl::setupGeneratedPerFunctionState(MachineFunction &MF) {
219 AvailableFunctionFeatures = computeAvailableFunctionFeatures((const SPIRVSubtarget *)&MF.getSubtarget(), &MF);
220}
221PredicateBitset SPIRVPreLegalizerCombinerImpl::
222computeAvailableFunctionFeatures(const SPIRVSubtarget *Subtarget, const MachineFunction *MF) const {
223 PredicateBitset Features{};
224 return Features;
225}
226
227// Feature bitsets.
228enum {
229 GIFBS_Invalid,
230};
231constexpr static PredicateBitset FeatureBitsets[] {
232 {}, // GIFBS_Invalid
233};
234
235// ComplexPattern predicates.
236enum {
237 GICP_Invalid,
238};
239// See constructor for table contents
240
241SPIRVPreLegalizerCombinerImpl::ComplexMatcherMemFn
242SPIRVPreLegalizerCombinerImpl::ComplexPredicateFns[] = {
243 nullptr, // GICP_Invalid
244};
245
246bool SPIRVPreLegalizerCombinerImpl::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
247 llvm_unreachable("Unknown predicate");
248 return false;
249}
250bool SPIRVPreLegalizerCombinerImpl::testMOPredicate_MO(unsigned PredicateID, const MachineOperand & MO, const MatcherState &State) const {
251 llvm_unreachable("Unknown predicate");
252 return false;
253}
254bool SPIRVPreLegalizerCombinerImpl::testImmPredicate_I64(unsigned PredicateID, int64_t Imm) const {
255 llvm_unreachable("Unknown predicate");
256 return false;
257}
258bool SPIRVPreLegalizerCombinerImpl::testImmPredicate_APFloat(unsigned PredicateID, const APFloat & Imm) const {
259 llvm_unreachable("Unknown predicate");
260 return false;
261}
262bool SPIRVPreLegalizerCombinerImpl::testImmPredicate_APInt(unsigned PredicateID, const APInt & Imm) const {
263 llvm_unreachable("Unknown predicate");
264 return false;
265}
266enum {
267 GICXXPred_Simple_IsRule0Enabled = GICXXPred_Invalid + 1,
268 GICXXPred_Simple_IsRule1Enabled,
269 GICXXPred_Simple_IsRule2Enabled,
270 GICXXPred_Simple_IsRule3Enabled,
271 GICXXPred_Simple_IsRule4Enabled,
272};
273
274bool SPIRVPreLegalizerCombinerImpl::testSimplePredicate(unsigned Predicate) const {
275 return RuleConfig.isRuleEnabled(Predicate - GICXXPred_Invalid - 1);
276}
277// Custom renderers.
278enum {
279 GICR_Invalid,
280};
281SPIRVPreLegalizerCombinerImpl::CustomRendererFn
282SPIRVPreLegalizerCombinerImpl::CustomRenderers[] = {
283 nullptr, // GICR_Invalid
284};
285
286bool SPIRVPreLegalizerCombinerImpl::canMatchOpcode(unsigned Opc) const {
287 switch (Opc) {
288 case TargetOpcode::G_INTRINSIC:
289 case TargetOpcode::G_SELECT:
290 case TargetOpcode::G_FDIV:
291 return true;
292 default:
293 return false;
294 }
295}
296
297uint32_t SPIRVPreLegalizerCombinerImpl::getRootFlagsToDrop() const {
298 return MachineInstr::getPoisonGeneratingFlags();
299}
300
301bool SPIRVPreLegalizerCombinerImpl::tryCombineAllImpl(MachineInstr &I) const {
302 const PredicateBitset AvailableFeatures = getAvailableFeatures();
303 State.MIs.clear();
304 State.MIs.push_back(&I);
305 if (executeMatchTable(*this, State, ExecInfo, B, getMatchTable(), Helper.getTII(), MRI, Helper.getTRI(), Helper.getRBI(), AvailableFeatures, /*CoverageInfo*/ nullptr)) {
306 return true;
307 }
308
309 return false;
310}
311
312enum {
313 GICXXCustomAction_GICombiner0 = GICXXCustomAction_Invalid + 1,
314 GICXXCustomAction_GICombiner1,
315 GICXXCustomAction_GICombiner2,
316 GICXXCustomAction_GICombiner3,
317};
318bool SPIRVPreLegalizerCombinerImpl::runCustomAction(unsigned ApplyID, const MatcherState &State, NewMIVector &OutMIs) const {
319 Helper.getBuilder().setInstrAndDebugLoc(*State.MIs[0]);
320 switch(ApplyID) {
321 case GICXXCustomAction_GICombiner0:{
322 // Match Patterns
323 if(![&](){return Helper.matchFDivToNormalize(*State.MIs[0]);}()) {
324 return false;
325 }
326 // Apply Patterns
327 Helper.applySPIRVNormalize(*State.MIs[0]);
328 return true;
329 }
330 case GICXXCustomAction_GICombiner1:{
331 // Match Patterns
332 if(![&](){return Helper.matchSelectToFaceForward(*State.MIs[0]);}()) {
333 return false;
334 }
335 // Apply Patterns
336 Helper.applySPIRVFaceForward(*State.MIs[0]);
337 return true;
338 }
339 case GICXXCustomAction_GICombiner2:{
340 // Apply Patterns
341 Helper.applyMatrixTranspose(*State.MIs[0]);
342 return true;
343 }
344 case GICXXCustomAction_GICombiner3:{
345 // Apply Patterns
346 Helper.applyMatrixMultiply(*State.MIs[0]);
347 return true;
348 }
349 }
350 llvm_unreachable("Unknown Apply Action");
351}
352#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
353#define GIMT_Encode2(Val) uint8_t(Val), uint8_t((Val) >> 8)
354#define GIMT_Encode4(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24)
355#define GIMT_Encode8(Val) uint8_t(Val), uint8_t((Val) >> 8), uint8_t((Val) >> 16), uint8_t((Val) >> 24), uint8_t(uint64_t(Val) >> 32), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 56)
356#else
357#define GIMT_Encode2(Val) uint8_t((Val) >> 8), uint8_t(Val)
358#define GIMT_Encode4(Val) uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
359#define GIMT_Encode8(Val) uint8_t(uint64_t(Val) >> 56), uint8_t(uint64_t(Val) >> 48), uint8_t(uint64_t(Val) >> 40), uint8_t(uint64_t(Val) >> 32), uint8_t((Val) >> 24), uint8_t((Val) >> 16), uint8_t((Val) >> 8), uint8_t(Val)
360#endif
361const uint8_t *SPIRVPreLegalizerCombinerImpl::getMatchTable() const {
362 constexpr static uint8_t MatchTable0[] = {
363 /* 0 */ GIM_SwitchOpcode, /*MI*/0, /*[*/GIMT_Encode2(140), GIMT_Encode2(200), /*)*//*default:*//*Label 3*/ GIMT_Encode4(357),
364 /* 10 */ /*TargetOpcode::G_INTRINSIC*//*Label 0*/ GIMT_Encode4(250), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
365 /* 118 */ /*TargetOpcode::G_SELECT*//*Label 1*/ GIMT_Encode4(333), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0), GIMT_Encode4(0),
366 /* 246 */ /*TargetOpcode::G_FDIV*//*Label 2*/ GIMT_Encode4(345),
367 /* 250 */ // Label 0: @250
368 /* 250 */ GIM_Try, /*On fail goto*//*Label 4*/ GIMT_Encode4(294), // Rule ID 0 //
369 /* 255 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule0Enabled),
370 /* 258 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/3,
371 /* 261 */ GIM_CheckIntrinsicID, /*MI*/0, /*Op*/1, GIMT_Encode2(Intrinsic::spv_length),
372 /* 266 */ // MIs[0] dst
373 /* 266 */ // No operand predicates
374 /* 266 */ // MIs[0] sub
375 /* 266 */ GIM_RecordInsnIgnoreCopies, /*DefineMI*/1, /*MI*/0, /*OpIdx*/2, // MIs[1]
376 /* 270 */ GIM_CheckOpcode, /*MI*/1, GIMT_Encode2(TargetOpcode::G_FSUB),
377 /* 274 */ // MIs[1] x
378 /* 274 */ // No operand predicates
379 /* 274 */ // MIs[1] y
380 /* 274 */ // No operand predicates
381 /* 274 */ GIM_CheckIsSafeToFold, /*NumInsns*/1,
382 /* 276 */ // Combiner Rule #0: vector_length_sub_to_distance_lowering
383 /* 276 */ GIR_BuildRootMI, /*Opcode*/GIMT_Encode2(TargetOpcode::G_INTRINSIC),
384 /* 279 */ GIR_RootToRootCopy, /*OpIdx*/0, // dst
385 /* 281 */ GIR_AddIntrinsicID, /*MI*/0, GIMT_Encode2(Intrinsic::spv_distance),
386 /* 285 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/1, // x
387 /* 289 */ GIR_Copy, /*NewInsnID*/0, /*OldInsnID*/1, /*OpIdx*/2, // y
388 /* 293 */ GIR_EraseRootFromParent_Done,
389 /* 294 */ // Label 4: @294
390 /* 294 */ GIM_Try, /*On fail goto*//*Label 5*/ GIMT_Encode4(313), // Rule ID 3 //
391 /* 299 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule3Enabled),
392 /* 302 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/5,
393 /* 305 */ GIM_CheckIntrinsicID, /*MI*/0, /*Op*/1, GIMT_Encode2(Intrinsic::matrix_transpose),
394 /* 310 */ // MIs[0] dst
395 /* 310 */ // No operand predicates
396 /* 310 */ // MIs[0] matrix
397 /* 310 */ // No operand predicates
398 /* 310 */ // MIs[0] rows
399 /* 310 */ // No operand predicates
400 /* 310 */ // MIs[0] cols
401 /* 310 */ // No operand predicates
402 /* 310 */ // Combiner Rule #3: matrix_transpose_lowering
403 /* 310 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner2),
404 /* 313 */ // Label 5: @313
405 /* 313 */ GIM_Try, /*On fail goto*//*Label 6*/ GIMT_Encode4(332), // Rule ID 4 //
406 /* 318 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule4Enabled),
407 /* 321 */ GIM_CheckNumOperands, /*MI*/0, /*Expected*/7,
408 /* 324 */ GIM_CheckIntrinsicID, /*MI*/0, /*Op*/1, GIMT_Encode2(Intrinsic::matrix_multiply),
409 /* 329 */ // MIs[0] dst
410 /* 329 */ // No operand predicates
411 /* 329 */ // MIs[0] a
412 /* 329 */ // No operand predicates
413 /* 329 */ // MIs[0] b
414 /* 329 */ // No operand predicates
415 /* 329 */ // MIs[0] m
416 /* 329 */ // No operand predicates
417 /* 329 */ // MIs[0] n
418 /* 329 */ // No operand predicates
419 /* 329 */ // MIs[0] k
420 /* 329 */ // No operand predicates
421 /* 329 */ // Combiner Rule #4: matrix_multiply_lowering
422 /* 329 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
423 /* 332 */ // Label 6: @332
424 /* 332 */ GIM_Reject,
425 /* 333 */ // Label 1: @333
426 /* 333 */ GIM_Try, /*On fail goto*//*Label 7*/ GIMT_Encode4(344), // Rule ID 2 //
427 /* 338 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule2Enabled),
428 /* 341 */ // MIs[0] dst
429 /* 341 */ // No operand predicates
430 /* 341 */ // MIs[0] cond
431 /* 341 */ // No operand predicates
432 /* 341 */ // MIs[0] t
433 /* 341 */ // No operand predicates
434 /* 341 */ // MIs[0] f
435 /* 341 */ // No operand predicates
436 /* 341 */ // Combiner Rule #2: vector_select_to_faceforward_lowering
437 /* 341 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner1),
438 /* 344 */ // Label 7: @344
439 /* 344 */ GIM_Reject,
440 /* 345 */ // Label 2: @345
441 /* 345 */ GIM_Try, /*On fail goto*//*Label 8*/ GIMT_Encode4(356), // Rule ID 1 //
442 /* 350 */ GIM_CheckSimplePredicate, GIMT_Encode2(GICXXPred_Simple_IsRule1Enabled),
443 /* 353 */ // MIs[0] dst
444 /* 353 */ // No operand predicates
445 /* 353 */ // MIs[0] src1
446 /* 353 */ // No operand predicates
447 /* 353 */ // MIs[0] src2
448 /* 353 */ // No operand predicates
449 /* 353 */ // Combiner Rule #1: vector_fdiv_length_to_normalize_lowering
450 /* 353 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner0),
451 /* 356 */ // Label 8: @356
452 /* 356 */ GIM_Reject,
453 /* 357 */ // Label 3: @357
454 /* 357 */ GIM_Reject,
455 /* 358 */ }; // Size: 358 bytes
456 return MatchTable0;
457}
458#undef GIMT_Encode2
459#undef GIMT_Encode4
460#undef GIMT_Encode8
461
462LLT SPIRVPreLegalizerCombinerImpl::getLLTForHwMode(unsigned Index) const {
463 llvm_unreachable("Unexpected index");
464}
465
466
467#endif // GET_GICOMBINER_IMPL
468
469#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
470
471AvailableModuleFeatures(computeAvailableModuleFeatures(&STI)),
472AvailableFunctionFeatures()
473
474#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
475
476#ifdef GET_GICOMBINER_CONSTRUCTOR_INITS
477
478, State(0),
479ExecInfo(TypeObjects, NumTypeObjects, FeatureBitsets, ComplexPredicateFns, CustomRenderers)
480
481#endif // GET_GICOMBINER_CONSTRUCTOR_INITS
482
483