[PATCH] D142530: [BOLT] Use MCInstrDesc::operands() instead of OpInfo
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 25 09:32:13 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfbb003378b9c: [BOLT] Use MCInstrDesc::operands() instead of OpInfo (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142530/new/
https://reviews.llvm.org/D142530
Files:
bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
bolt/lib/Target/X86/X86MCPlusBuilder.cpp
Index: bolt/lib/Target/X86/X86MCPlusBuilder.cpp
===================================================================
--- bolt/lib/Target/X86/X86MCPlusBuilder.cpp
+++ bolt/lib/Target/X86/X86MCPlusBuilder.cpp
@@ -1681,7 +1681,7 @@
bool requiresAlignedAddress(const MCInst &Inst) const override {
const MCInstrDesc &Desc = Info->get(Inst.getOpcode());
for (unsigned int I = 0; I < Desc.getNumOperands(); ++I) {
- const MCOperandInfo &Op = Desc.OpInfo[I];
+ const MCOperandInfo &Op = Desc.operands()[I];
if (Op.OperandType != MCOI::OPERAND_REGISTER)
continue;
if (Op.RegClass == X86::VR128RegClassID)
Index: bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
===================================================================
--- bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
+++ bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
@@ -223,7 +223,7 @@
// Look for literal addressing mode (see C1-143 ARM DDI 0487B.a)
const MCInstrDesc &MCII = Info->get(Inst.getOpcode());
for (unsigned I = 0, E = MCII.getNumOperands(); I != E; ++I)
- if (MCII.OpInfo[I].OperandType == MCOI::OPERAND_PCREL)
+ if (MCII.operands()[I].OperandType == MCOI::OPERAND_PCREL)
return true;
return false;
@@ -257,7 +257,7 @@
// Literal addressing mode
const MCInstrDesc &MCII = Info->get(Inst.getOpcode());
for (unsigned I = 0, E = MCII.getNumOperands(); I != E; ++I) {
- if (MCII.OpInfo[I].OperandType != MCOI::OPERAND_PCREL)
+ if (MCII.operands()[I].OperandType != MCOI::OPERAND_PCREL)
continue;
if (!Inst.getOperand(I).isImm()) {
@@ -302,7 +302,7 @@
}
const MCInstrDesc &MCII = Info->get(Inst.getOpcode());
for (unsigned I = 0, E = MCII.getNumOperands(); I != E; ++I) {
- if (MCII.OpInfo[I].OperandType == MCOI::OPERAND_PCREL)
+ if (MCII.operands()[I].OperandType == MCOI::OPERAND_PCREL)
break;
++OI;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142530.492153.patch
Type: text/x-patch
Size: 1949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230125/43052e27/attachment.bin>
More information about the llvm-commits
mailing list