diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-15 23:23:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-15 23:23:02 +0000 |
commit | f64f9a4b75d07819866bfcf918b922a76d3e1600 (patch) | |
tree | d3fdce7cae19e5acb2baa98bdff25c7b244a4945 /utils/TableGen/AsmWriterEmitter.cpp | |
parent | fa326c709fdd73dcaa4802e35d65e519d6cc3b23 (diff) | |
download | llvm-f64f9a4b75d07819866bfcf918b922a76d3e1600.tar.gz llvm-f64f9a4b75d07819866bfcf918b922a76d3e1600.tar.bz2 llvm-f64f9a4b75d07819866bfcf918b922a76d3e1600.tar.xz |
Remove the isTwoAddress property from the CodeGenInstruction class. It should
not be used for anything other than backwards compat constraint handling.
Add support for a new DisableEncoding property which contains a list of
registers that should not be encoded by the generated code emitter. Convert
the codeemitter generator to use this, fixing some PPC JIT regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 6466b5fecd..c8af097250 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -220,16 +220,11 @@ AsmWriterInst::AsmWriterInst(const CodeGenInstruction &CGI, unsigned Variant) { unsigned OpNo = CGI.getOperandNamed(VarName); CodeGenInstruction::OperandInfo OpInfo = CGI.OperandList[OpNo]; - // If this is a two-address instruction, verify the second operand isn't - // used. - unsigned MIOp = OpInfo.MIOperandNo; - if (CGI.isTwoAddress && MIOp == 1) - throw "Should refer to operand #0 instead of #1 for two-address" - " instruction '" + CGI.TheDef->getName() + "'!"; - - if (CurVariant == Variant || CurVariant == ~0U) + if (CurVariant == Variant || CurVariant == ~0U) { + unsigned MIOp = OpInfo.MIOperandNo; Operands.push_back(AsmWriterOperand(OpInfo.PrinterMethodName, MIOp, Modifier)); + } } LastEmitted = VarEnd; } |