From 598641b4ca4bd311308009a82e0432f916f3d00b Mon Sep 17 00:00:00 2001 From: Ruchira Sasanka Date: Fri, 12 Oct 2001 17:46:27 +0000 Subject: [PATCH] --added support for implicit operands in machine instructions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@727 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h | 3 +++ include/llvm/CodeGen/FunctionLiveVarInfo.h | 3 +++ lib/Analysis/LiveVar/BBLiveVar.h | 6 ++++++ lib/Target/SparcV9/LiveVar/BBLiveVar.h | 6 ++++++ 4 files changed, 18 insertions(+) diff --git a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h index 6283a45aa91..ba442579fea 100644 --- a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h +++ b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h @@ -139,6 +139,9 @@ class MethodLiveVarInfo const LiveVarSet * getLiveVarSetAfterMInst(const MachineInstr *const MInst, const BasicBlock *const CurBB); + // TODO: Put a method to invalidate all LVBBs, delete existin BBLivar in + // BB2BBLVMap + // inline invalidate diff --git a/include/llvm/CodeGen/FunctionLiveVarInfo.h b/include/llvm/CodeGen/FunctionLiveVarInfo.h index 6283a45aa91..ba442579fea 100644 --- a/include/llvm/CodeGen/FunctionLiveVarInfo.h +++ b/include/llvm/CodeGen/FunctionLiveVarInfo.h @@ -139,6 +139,9 @@ class MethodLiveVarInfo const LiveVarSet * getLiveVarSetAfterMInst(const MachineInstr *const MInst, const BasicBlock *const CurBB); + // TODO: Put a method to invalidate all LVBBs, delete existin BBLivar in + // BB2BBLVMap + // inline invalidate diff --git a/lib/Analysis/LiveVar/BBLiveVar.h b/lib/Analysis/LiveVar/BBLiveVar.h index 55a6c3abd51..6d7d4eb5334 100644 --- a/lib/Analysis/LiveVar/BBLiveVar.h +++ b/lib/Analysis/LiveVar/BBLiveVar.h @@ -35,6 +35,12 @@ class BBLiveVar const LiveVarSet *const InSetOfThisBB, const BasicBlock *const PredBB); + // To add an operand which is a def + void addDef(const Value *Op); + + // To add an operand which is a use + void addUse(const Value *Op); + public: BBLiveVar( const BasicBlock* baseBB, unsigned int POId); diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.h b/lib/Target/SparcV9/LiveVar/BBLiveVar.h index 55a6c3abd51..6d7d4eb5334 100644 --- a/lib/Target/SparcV9/LiveVar/BBLiveVar.h +++ b/lib/Target/SparcV9/LiveVar/BBLiveVar.h @@ -35,6 +35,12 @@ class BBLiveVar const LiveVarSet *const InSetOfThisBB, const BasicBlock *const PredBB); + // To add an operand which is a def + void addDef(const Value *Op); + + // To add an operand which is a use + void addUse(const Value *Op); + public: BBLiveVar( const BasicBlock* baseBB, unsigned int POId);