#ifdef GET_ASSEMBLER_HEADER
#undef GET_ASSEMBLER_HEADER
FeatureBitset ComputeAvailableFeatures(const FeatureBitset &FB) const;
void convertToMCInst(unsigned Kind, MCInst &Inst, unsigned Opcode,
const OperandVector &Operands);
void convertToMapAndConstraints(unsigned Kind,
const OperandVector &Operands) override;
unsigned MatchInstructionImpl(const OperandVector &Operands,
MCInst &Inst,
uint64_t &ErrorInfo,
FeatureBitset &MissingFeatures,
bool matchingInlineAsm,
unsigned VariantID = …MissingFeatures;
return MatchInstructionImpl(Operands, Inst, ErrorInfo, MissingFeatures,
matchingInlineAsm, VariantID);
}
#endif
#ifdef GET_OPERAND_DIAGNOSTIC_TYPES
#undef GET_OPERAND_DIAGNOSTIC_TYPES
Match_InvalidBrTarget,
Match_InvalidSImm16,
END_OPERAND_DIAGNOSTIC_TYPES
#endif
#ifdef GET_REGISTER_MATCHER
#undef GET_REGISTER_MATCHER
enum SubtargetFeatureBits : uint8_t { … }
return BPF::R2;
case '3':
return BPF::R3;
case '4':
return BPF::R4;
case '5':
return BPF::R5;
case '6':
return BPF::R6;
case '7':
return BPF::R7;
case '8':
return BPF::R8;
case '9':
return BPF::R9;
}
break;
case 'w':
switch (Name[1]) { … }
default: break;
case '0':
return BPF::W0;
case '1':
return BPF::W1;
case '2':
return BPF::W2;
case '3':
return BPF::W3;
case '4':
return BPF::W4;
case '5':
return BPF::W5;
case '6':
return BPF::W6;
case '7':
return BPF::W7;
case '8':
return BPF::W8;
case '9':
return BPF::W9;
}
break;
}
break;
case 3:
switch (Name[0]) { … }
default: break;
case 'r':
if (Name[1] != '1')
break;
switch (Name[2]) { … }
default: break;
case '0':
return BPF::R10;
case '1':
return BPF::R11;
}
break;
case 'w':
if (Name[1] != '1')
break;
switch (Name[2]) { … }
default: break;
case '0':
return BPF::W10;
case '1':
return BPF::W11;
}
break;
}
break;
}
return BPF::NoRegister;
}
#endif
#ifdef GET_SUBTARGET_FEATURE_NAME
#undef GET_SUBTARGET_FEATURE_NAME
static const char *getSubtargetFeatureName(uint64_t Val) { … }
return "(unknown)";
}
#endif
#ifdef GET_MATCHER_IMPLEMENTATION
#undef GET_MATCHER_IMPLEMENTATION
enum { … }
Tie0_0_0,
Tie0_0_3,
Tie0_0_6,
Tie0_0_12,
Tie0_12_12,
};
static const uint8_t TiedAsmOperandTable[][3] = …