mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
land David Blaikie's patch to de-constify Type, with a few tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -58,7 +58,7 @@ class AddressingModeMatcher {
|
||||
|
||||
/// AccessTy/MemoryInst - This is the type for the access (e.g. double) and
|
||||
/// the memory instruction that we're computing this address for.
|
||||
const Type *AccessTy;
|
||||
Type *AccessTy;
|
||||
Instruction *MemoryInst;
|
||||
|
||||
/// AddrMode - This is the addressing mode that we're building up. This is
|
||||
@ -71,7 +71,7 @@ class AddressingModeMatcher {
|
||||
bool IgnoreProfitability;
|
||||
|
||||
AddressingModeMatcher(SmallVectorImpl<Instruction*> &AMI,
|
||||
const TargetLowering &T, const Type *AT,
|
||||
const TargetLowering &T, Type *AT,
|
||||
Instruction *MI, ExtAddrMode &AM)
|
||||
: AddrModeInsts(AMI), TLI(T), AccessTy(AT), MemoryInst(MI), AddrMode(AM) {
|
||||
IgnoreProfitability = false;
|
||||
@ -81,7 +81,7 @@ public:
|
||||
/// Match - Find the maximal addressing mode that a load/store of V can fold,
|
||||
/// give an access type of AccessTy. This returns a list of involved
|
||||
/// instructions in AddrModeInsts.
|
||||
static ExtAddrMode Match(Value *V, const Type *AccessTy,
|
||||
static ExtAddrMode Match(Value *V, Type *AccessTy,
|
||||
Instruction *MemoryInst,
|
||||
SmallVectorImpl<Instruction*> &AddrModeInsts,
|
||||
const TargetLowering &TLI) {
|
||||
|
@ -39,7 +39,7 @@ private:
|
||||
void *AV;
|
||||
|
||||
/// ProtoType holds the type of the values being rewritten.
|
||||
const Type *ProtoType;
|
||||
Type *ProtoType;
|
||||
|
||||
// PHI nodes are given a name based on ProtoName.
|
||||
std::string ProtoName;
|
||||
@ -56,7 +56,7 @@ public:
|
||||
|
||||
/// Initialize - Reset this object to get ready for a new set of SSA
|
||||
/// updates with type 'Ty'. PHI nodes get a name based on 'Name'.
|
||||
void Initialize(const Type *Ty, StringRef Name);
|
||||
void Initialize(Type *Ty, StringRef Name);
|
||||
|
||||
/// AddAvailableValue - Indicate that a rewritten value is available at the
|
||||
/// end of the specified block with the specified value.
|
||||
|
Reference in New Issue
Block a user