mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
46
include/llvm/Analysis/LiveVar/LiveVarMap.h
Normal file
46
include/llvm/Analysis/LiveVar/LiveVarMap.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* Title: ValueSet.h
|
||||
Author: Ruchira Sasanka
|
||||
Date: Jun 30, 01
|
||||
Purpose: This file contains the class for a map between the BasicBlock class
|
||||
and the BBLiveVar class, which is a wrapper class of BasicBlock
|
||||
used for the live variable analysis. The reverse mapping can
|
||||
be found in the BBLiveVar class (It has a pointer to the
|
||||
corresponding BasicBlock)
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LIVE_VAR_MAP_H
|
||||
#define LIVE_VAR_MAP_H
|
||||
|
||||
#include <hash_map>
|
||||
|
||||
class BasicBlock;
|
||||
class BBLiveVar;
|
||||
|
||||
|
||||
struct hashFuncInst { // sturcture containing the hash function for Inst
|
||||
inline size_t operator () (const Instruction *val) const {
|
||||
return (size_t) val;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct hashFuncBB { // sturcture containing the hash function for BB
|
||||
inline size_t operator () (const BasicBlock *val) const {
|
||||
return (size_t) val;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
typedef hash_map<const BasicBlock *,
|
||||
BBLiveVar *, hashFuncBB > BBToBBLiveVarMapType;
|
||||
|
||||
typedef hash_map<const Instruction *, const LiveVarSet *,
|
||||
hashFuncInst> InstToLiveVarSetMapType;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user