mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Eliminate unnecessary LLVMContexts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4e6a5df5d
commit
43ea505fb0
@ -30,7 +30,6 @@ namespace llvm {
|
|||||||
class BasicBlock;
|
class BasicBlock;
|
||||||
class Function;
|
class Function;
|
||||||
class SparseSolver;
|
class SparseSolver;
|
||||||
class LLVMContext;
|
|
||||||
class raw_ostream;
|
class raw_ostream;
|
||||||
|
|
||||||
template<typename T> class SmallVectorImpl;
|
template<typename T> class SmallVectorImpl;
|
||||||
@ -120,8 +119,6 @@ class SparseSolver {
|
|||||||
/// compute transfer functions.
|
/// compute transfer functions.
|
||||||
AbstractLatticeFunction *LatticeFunc;
|
AbstractLatticeFunction *LatticeFunc;
|
||||||
|
|
||||||
LLVMContext *Context;
|
|
||||||
|
|
||||||
DenseMap<Value*, LatticeVal> ValueState; // The state each value is in.
|
DenseMap<Value*, LatticeVal> ValueState; // The state each value is in.
|
||||||
SmallPtrSet<BasicBlock*, 16> BBExecutable; // The bbs that are executable.
|
SmallPtrSet<BasicBlock*, 16> BBExecutable; // The bbs that are executable.
|
||||||
|
|
||||||
@ -137,8 +134,8 @@ class SparseSolver {
|
|||||||
SparseSolver(const SparseSolver&); // DO NOT IMPLEMENT
|
SparseSolver(const SparseSolver&); // DO NOT IMPLEMENT
|
||||||
void operator=(const SparseSolver&); // DO NOT IMPLEMENT
|
void operator=(const SparseSolver&); // DO NOT IMPLEMENT
|
||||||
public:
|
public:
|
||||||
explicit SparseSolver(AbstractLatticeFunction *Lattice, LLVMContext *C)
|
explicit SparseSolver(AbstractLatticeFunction *Lattice)
|
||||||
: LatticeFunc(Lattice), Context(C) {}
|
: LatticeFunc(Lattice) {}
|
||||||
~SparseSolver() {
|
~SparseSolver() {
|
||||||
delete LatticeFunc;
|
delete LatticeFunc;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ namespace llvm {
|
|||||||
class Instruction;
|
class Instruction;
|
||||||
class APInt;
|
class APInt;
|
||||||
class TargetData;
|
class TargetData;
|
||||||
class LLVMContext;
|
|
||||||
|
|
||||||
/// ComputeMaskedBits - Determine which of the bits specified in Mask are
|
/// ComputeMaskedBits - Determine which of the bits specified in Mask are
|
||||||
/// known to be either zero or one and return them in the KnownZero/KnownOne
|
/// known to be either zero or one and return them in the KnownZero/KnownOne
|
||||||
|
@ -38,7 +38,6 @@ class CallGraph;
|
|||||||
class TargetData;
|
class TargetData;
|
||||||
class Loop;
|
class Loop;
|
||||||
class LoopInfo;
|
class LoopInfo;
|
||||||
class LLVMContext;
|
|
||||||
class AllocaInst;
|
class AllocaInst;
|
||||||
template <typename T> class SmallVectorImpl;
|
template <typename T> class SmallVectorImpl;
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ class PHINode;
|
|||||||
class AllocaInst;
|
class AllocaInst;
|
||||||
class ConstantExpr;
|
class ConstantExpr;
|
||||||
class TargetData;
|
class TargetData;
|
||||||
class LLVMContext;
|
|
||||||
struct DbgInfoIntrinsic;
|
struct DbgInfoIntrinsic;
|
||||||
|
|
||||||
template<typename T> class SmallVectorImpl;
|
template<typename T> class SmallVectorImpl;
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/Instructions.h"
|
#include "llvm/Instructions.h"
|
||||||
#include "llvm/LLVMContext.h"
|
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
@ -155,7 +154,7 @@ void SparseSolver::getFeasibleSuccessors(TerminatorInst &TI,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Constant condition variables mean the branch can only go a single way
|
// Constant condition variables mean the branch can only go a single way
|
||||||
Succs[C == ConstantInt::getFalse(*Context)] = true;
|
Succs[C->isNullValue()] = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user