mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Include the auto-generated bits for machine encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
366b1e1f3f
commit
9af82ba42b
@ -36,6 +36,17 @@ public:
|
|||||||
|
|
||||||
~ARMMCCodeEmitter() {}
|
~ARMMCCodeEmitter() {}
|
||||||
|
|
||||||
|
// getBinaryCodeForInstr - TableGen'erated function for getting the
|
||||||
|
// binary encoding for an instruction.
|
||||||
|
unsigned getBinaryCodeForInstr(const MCInst &MI);
|
||||||
|
|
||||||
|
/// getMachineOpValue - Return binary encoding of operand. If the machine
|
||||||
|
/// operand requires relocation, record the relocation and return zero.
|
||||||
|
unsigned getMachineOpValue(const MCInst &MI,const MCOperand &MO);
|
||||||
|
unsigned getMachineOpValue(const MCInst &MI, unsigned OpIdx) {
|
||||||
|
return getMachineOpValue(MI, MI.getOperand(OpIdx));
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getNumFixupKinds() const {
|
unsigned getNumFixupKinds() const {
|
||||||
assert(0 && "ARMMCCodeEmitter::getNumFixupKinds() not yet implemented.");
|
assert(0 && "ARMMCCodeEmitter::getNumFixupKinds() not yet implemented.");
|
||||||
return 0;
|
return 0;
|
||||||
@ -98,3 +109,12 @@ EncodeInstruction(const MCInst &MI, raw_ostream &OS,
|
|||||||
SmallVectorImpl<MCFixup> &Fixups) const {
|
SmallVectorImpl<MCFixup> &Fixups) const {
|
||||||
assert(0 && "ARMMCCodeEmitter::EncodeInstruction() not yet implemented.");
|
assert(0 && "ARMMCCodeEmitter::EncodeInstruction() not yet implemented.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: These #defines shouldn't be necessary. Instead, tblgen should
|
||||||
|
// be able to generate code emitter helpers for either variant, like it
|
||||||
|
// does for the AsmWriter.
|
||||||
|
#define ARMCodeEmitter ARMMCCodeEmitter
|
||||||
|
#define MachineInstr MCInst
|
||||||
|
#include "ARMGenCodeEmitter.inc"
|
||||||
|
#undef ARMCodeEmitter
|
||||||
|
#undef MachineInstr
|
||||||
|
Loading…
Reference in New Issue
Block a user