mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Added vector of machine instructions for the basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,12 +29,14 @@
|
||||
class Instruction;
|
||||
class Method;
|
||||
class TerminatorInst;
|
||||
class MachineCodeForBasicBlock;
|
||||
|
||||
class BasicBlock : public Value { // Basic blocks are data objects also
|
||||
public:
|
||||
typedef ValueHolder<Instruction, BasicBlock, Method> InstListType;
|
||||
private :
|
||||
InstListType InstList;
|
||||
MachineCodeForBasicBlock* machineInstrVec;
|
||||
|
||||
friend class ValueHolder<BasicBlock,Method,Method>;
|
||||
void setParent(Method *parent);
|
||||
@@ -67,6 +69,12 @@ public:
|
||||
TerminatorInst *getTerminator();
|
||||
const TerminatorInst *const getTerminator() const;
|
||||
|
||||
|
||||
// Machine code accessor...
|
||||
inline MachineCodeForBasicBlock& getMachineInstrVec() const {
|
||||
return *machineInstrVec;
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Instruction iterator methods
|
||||
inline iterator begin() { return InstList.begin(); }
|
||||
|
Reference in New Issue
Block a user