[llvm-commits] CVS: llvm/lib/Target/X86/X86InstructionInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 29 11:44:01 PST 2002
Changes in directory llvm/lib/Target/X86:
X86InstructionInfo.h updated: 1.2 -> 1.3
---
Log message:
Implement MachineInstrInfo interface
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86InstructionInfo.h
diff -u llvm/lib/Target/X86/X86InstructionInfo.h:1.2 llvm/lib/Target/X86/X86InstructionInfo.h:1.3
--- llvm/lib/Target/X86/X86InstructionInfo.h:1.2 Mon Oct 28 17:55:19 2002
+++ llvm/lib/Target/X86/X86InstructionInfo.h Tue Oct 29 11:42:56 2002
@@ -7,10 +7,10 @@
#ifndef X86INSTRUCTIONINFO_H
#define X86INSTRUCTIONINFO_H
-#include "llvm/Target/InstructionInfo.h"
+#include "llvm/Target/MachineInstrInfo.h"
#include "X86RegisterInfo.h"
-class X86InstructionInfo : public MInstructionInfo {
+class X86InstructionInfo : public MachineInstrInfo {
const X86RegisterInfo RI;
public:
X86InstructionInfo();
@@ -23,7 +23,55 @@
/// print - Print out an x86 instruction in GAS syntax
///
- virtual void print(const MInstruction *MI, std::ostream &O) const;
+ virtual void print(const MachineInstr *MI, std::ostream &O) const;
+
+
+ //===--------------------------------------------------------------------===//
+ //
+ // These are stubs for pure virtual methods that should be factored out of
+ // MachineInstrInfo. We never call them, we don't want them, but we need
+ // stubs so that we can instatiate our class.
+ //
+ MachineOpCode getNOPOpCode() const { abort(); }
+ void CreateCodeToLoadConst(const TargetMachine& target, Function* F,
+ Value *V, Instruction *I,
+ std::vector<MachineInstr*>& mvec,
+ MachineCodeForInstruction& mcfi) const { abort(); }
+ void CreateCodeToCopyIntToFloat(const TargetMachine& target,
+ Function* F, Value* val, Instruction* dest,
+ std::vector<MachineInstr*>& mvec,
+ MachineCodeForInstruction& mcfi) const {
+ abort();
+ }
+ void CreateCodeToCopyFloatToInt(const TargetMachine& target, Function* F,
+ Value* val, Instruction* dest,
+ std::vector<MachineInstr*>& mvec,
+ MachineCodeForInstruction& mcfi)const {
+ abort();
+ }
+ void CreateCopyInstructionsByType(const TargetMachine& target,
+ Function* F, Value* src,
+ Instruction* dest,
+ std::vector<MachineInstr*>& mvec,
+ MachineCodeForInstruction& mcfi)const {
+ abort();
+ }
+
+ void CreateSignExtensionInstructions(const TargetMachine& target,
+ Function* F, Value* srcVal,
+ Value* destVal, unsigned numLowBits,
+ std::vector<MachineInstr*>& mvec,
+ MachineCodeForInstruction& mcfi) const {
+ abort();
+ }
+
+ void CreateZeroExtensionInstructions(const TargetMachine& target,
+ Function* F, Value* srcVal,
+ Value* destVal, unsigned srcSizeInBits,
+ std::vector<MachineInstr*>& mvec,
+ MachineCodeForInstruction& mcfi) const {
+ abort();
+ }
};
More information about the llvm-commits
mailing list