aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-07-30 18:47:24 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-07-30 18:47:24 +0000
commitb63933975f7d7381bc4310925ce2a7ceb6095a88 (patch)
tree39fd07fbdbcce8464c9e7f932cd5247b4368f2e2 /include/llvm/BasicBlock.h
parent877fbcd8d7c6fb8f5c1fb10ddc39cf715f5421aa (diff)
downloadexternal_llvm-b63933975f7d7381bc4310925ce2a7ceb6095a88.zip
external_llvm-b63933975f7d7381bc4310925ce2a7ceb6095a88.tar.gz
external_llvm-b63933975f7d7381bc4310925ce2a7ceb6095a88.tar.bz2
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
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index c0922d6..aa201c3 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -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(); }