mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-11 15:26:40 +00:00
Remove unused HasFROperands field from disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
028b816496
commit
163868fec5
@ -256,7 +256,6 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables,
|
|||||||
|
|
||||||
IsSSE = (HasOpSizePrefix && (Name.find("16") == Name.npos)) ||
|
IsSSE = (HasOpSizePrefix && (Name.find("16") == Name.npos)) ||
|
||||||
(Name.find("CRC32") != Name.npos);
|
(Name.find("CRC32") != Name.npos);
|
||||||
HasFROperands = hasFROperands();
|
|
||||||
HasVEX_LPrefix = Rec->getValueAsBit("hasVEX_L");
|
HasVEX_LPrefix = Rec->getValueAsBit("hasVEX_L");
|
||||||
|
|
||||||
// Check for 64-bit inst which does not require REX
|
// Check for 64-bit inst which does not require REX
|
||||||
@ -539,19 +538,6 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
|
|||||||
return FILTER_NORMAL;
|
return FILTER_NORMAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RecognizableInstr::hasFROperands() const {
|
|
||||||
const std::vector<CGIOperandList::OperandInfo> &OperandList = *Operands;
|
|
||||||
unsigned numOperands = OperandList.size();
|
|
||||||
|
|
||||||
for (unsigned operandIndex = 0; operandIndex < numOperands; ++operandIndex) {
|
|
||||||
const std::string &recName = OperandList[operandIndex].Rec->getName();
|
|
||||||
|
|
||||||
if (recName.find("FR") != recName.npos)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RecognizableInstr::handleOperand(bool optional, unsigned &operandIndex,
|
void RecognizableInstr::handleOperand(bool optional, unsigned &operandIndex,
|
||||||
unsigned &physicalOperandIndex,
|
unsigned &physicalOperandIndex,
|
||||||
unsigned &numPhysicalOperands,
|
unsigned &numPhysicalOperands,
|
||||||
|
@ -92,9 +92,6 @@ private:
|
|||||||
|
|
||||||
/// Indicates whether the instruction is SSE
|
/// Indicates whether the instruction is SSE
|
||||||
bool IsSSE;
|
bool IsSSE;
|
||||||
/// Indicates whether the instruction has FR operands - MOVs with FR operands
|
|
||||||
/// are typically ignored
|
|
||||||
bool HasFROperands;
|
|
||||||
/// Indicates whether the instruction should be emitted into the decode
|
/// Indicates whether the instruction should be emitted into the decode
|
||||||
/// tables; regardless, it will be emitted into the instruction info table
|
/// tables; regardless, it will be emitted into the instruction info table
|
||||||
bool ShouldBeEmitted;
|
bool ShouldBeEmitted;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user