diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-01-02 18:44:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-01-02 18:44:21 +0000 |
commit | 163868fec5e196693f58ba111dbe13ef7a2a76cc (patch) | |
tree | 864069e3607ee13d3f4a17bcf63c2318c3e44cc1 /utils | |
parent | 028b81649610aa156c50e6d2366cd3a12fe71ba2 (diff) | |
download | llvm-163868fec5e196693f58ba111dbe13ef7a2a76cc.tar.gz llvm-163868fec5e196693f58ba111dbe13ef7a2a76cc.tar.bz2 llvm-163868fec5e196693f58ba111dbe13ef7a2a76cc.tar.xz |
Remove unused HasFROperands field from disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/X86RecognizableInstr.cpp | 14 | ||||
-rw-r--r-- | utils/TableGen/X86RecognizableInstr.h | 3 |
2 files changed, 0 insertions, 17 deletions
diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp index 63a9270733..3deca23c6b 100644 --- a/utils/TableGen/X86RecognizableInstr.cpp +++ b/utils/TableGen/X86RecognizableInstr.cpp @@ -256,7 +256,6 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables, IsSSE = (HasOpSizePrefix && (Name.find("16") == Name.npos)) || (Name.find("CRC32") != Name.npos); - HasFROperands = hasFROperands(); HasVEX_LPrefix = Rec->getValueAsBit("hasVEX_L"); // Check for 64-bit inst which does not require REX @@ -539,19 +538,6 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const { 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, unsigned &physicalOperandIndex, unsigned &numPhysicalOperands, diff --git a/utils/TableGen/X86RecognizableInstr.h b/utils/TableGen/X86RecognizableInstr.h index f47f3c59ab..65b5c85981 100644 --- a/utils/TableGen/X86RecognizableInstr.h +++ b/utils/TableGen/X86RecognizableInstr.h @@ -92,9 +92,6 @@ private: /// Indicates whether the instruction is SSE 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 /// tables; regardless, it will be emitted into the instruction info table bool ShouldBeEmitted; |