#ifndef LLVM_INSTRUCTION_H
#define LLVM_INSTRUCTION_H
-#include <vector>
#include "llvm/User.h"
class Type;
inline const BasicBlock *getParent() const { return Parent; }
inline BasicBlock *getParent() { return Parent; }
virtual bool hasSideEffects() const { return false; } // Memory & Call insts
- inline MachineCodeForVMInstr&
- getMachineInstrVec() { return *machineInstrVec; }
- const vector<Value*>&
- getTempValuesForMachineCode() const;
+
+ // ---------------------------------------------------------------------------
+ // Machine code accessors...
+ //
+ inline MachineCodeForVMInstr &getMachineInstrVec() {
+ return *machineInstrVec;
+ }
// ---------------------------------------------------------------------------
// Subclass classification... getInstType() returns a member of
machineInstrVec->push_back(minstr);
}
+#if 0
// Dont make this inline because you would need to include
// MachineInstr.h in Instruction.h, which creates a circular
// sequence of forward declarations. Trying to fix that will
{
return machineInstrVec->getTempValues();
}
+#endif
void
Instruction::dropAllReferences() {