git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254280
91177308-0d34-0410-b5e6-
96231b3b80d8
bool IsIntrinOpcode;
isFMA3(Opc, &IsIntrinOpcode);
bool IsIntrinOpcode;
isFMA3(Opc, &IsIntrinOpcode);
- ArrayRef<unsigned[3]> OpcodeGroups;
+ unsigned GroupsNum;
+ const unsigned (*OpcodeGroups)[3];
- OpcodeGroups = makeArrayRef(IntrinOpcodeGroups);
+ GroupsNum = sizeof(IntrinOpcodeGroups) / sizeof(IntrinOpcodeGroups[0]);
+ OpcodeGroups = IntrinOpcodeGroups;
- OpcodeGroups = makeArrayRef(RegularOpcodeGroups);
+ GroupsNum = sizeof(RegularOpcodeGroups) / sizeof(RegularOpcodeGroups[0]);
+ OpcodeGroups = RegularOpcodeGroups;
}
const unsigned *FoundOpcodesGroup = nullptr;
}
const unsigned *FoundOpcodesGroup = nullptr;
// Look for the input opcode in the corresponding opcodes table.
unsigned GroupIndex = 0;
// Look for the input opcode in the corresponding opcodes table.
unsigned GroupIndex = 0;
- for (; GroupIndex < OpcodeGroups.size() && !FoundOpcodesGroup; GroupIndex++) {
+ for (; GroupIndex < GroupsNum && !FoundOpcodesGroup; GroupIndex++) {
for (FormIndex = 0; FormIndex < FormsNum; FormIndex++) {
if (OpcodeGroups[GroupIndex][FormIndex] == Opc) {
FoundOpcodesGroup = OpcodeGroups[GroupIndex];
for (FormIndex = 0; FormIndex < FormsNum; FormIndex++) {
if (OpcodeGroups[GroupIndex][FormIndex] == Opc) {
FoundOpcodesGroup = OpcodeGroups[GroupIndex];