aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-07-29 19:32:04 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-07-29 19:32:04 +0000
commit0eb7f745ed843f793f0d7ae28d35d0704fa8fe6d (patch)
tree2711e7c95b073db1af65d7c1cf5cce89e1ddfa1c /include
parentc78022ed075f5cecd1913ee6d37c599db579d2cd (diff)
downloadexternal_llvm-0eb7f745ed843f793f0d7ae28d35d0704fa8fe6d.zip
external_llvm-0eb7f745ed843f793f0d7ae28d35d0704fa8fe6d.tar.gz
external_llvm-0eb7f745ed843f793f0d7ae28d35d0704fa8fe6d.tar.bz2
Don't require a BB to look-up live variables, unless they may need to
be recomputed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/FunctionLiveVarInfo.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/FunctionLiveVarInfo.h b/include/llvm/CodeGen/FunctionLiveVarInfo.h
index 0bdd7f9..9120d8e 100644
--- a/include/llvm/CodeGen/FunctionLiveVarInfo.h
+++ b/include/llvm/CodeGen/FunctionLiveVarInfo.h
@@ -110,13 +110,17 @@ public:
// gets InSet of a BB
const ValueSet &getInSetOfBB(const BasicBlock *BB) const;
- // gets the Live var set BEFORE an instruction
+ // gets the Live var set BEFORE an instruction.
+ // if BB is specified and the live var set has not yet been computed,
+ // it will be computed on demand.
const ValueSet &getLiveVarSetBeforeMInst(const MachineInstr *MI,
- const BasicBlock *BB);
+ const BasicBlock *BB = 0);
// gets the Live var set AFTER an instruction
+ // if BB is specified and the live var set has not yet been computed,
+ // it will be computed on demand.
const ValueSet &getLiveVarSetAfterMInst(const MachineInstr *MI,
- const BasicBlock *BB);
+ const BasicBlock *BB = 0);
};
#endif