forked from OSchip/llvm-project
Make UpdateValueMap, createResultReg, etc. protected instead of private so they can used by target hooks.
llvm-svn: 55691
This commit is contained in:
parent
2fcb26cc75
commit
fa67546ef9
|
@ -208,12 +208,15 @@ protected:
|
||||||
/// from a specified index of a superregister.
|
/// from a specified index of a superregister.
|
||||||
unsigned FastEmitInst_extractsubreg(unsigned Op0, uint32_t Idx);
|
unsigned FastEmitInst_extractsubreg(unsigned Op0, uint32_t Idx);
|
||||||
|
|
||||||
private:
|
|
||||||
unsigned getRegForValue(Value *V,
|
unsigned getRegForValue(Value *V,
|
||||||
DenseMap<const Value*, unsigned> &ValueMap);
|
DenseMap<const Value*, unsigned> &ValueMap);
|
||||||
|
|
||||||
|
void UpdateValueMap(Instruction* I, unsigned Reg,
|
||||||
|
DenseMap<const Value*, unsigned> &ValueMap);
|
||||||
|
|
||||||
unsigned createResultReg(const TargetRegisterClass *RC);
|
unsigned createResultReg(const TargetRegisterClass *RC);
|
||||||
|
|
||||||
|
private:
|
||||||
bool SelectBinaryOp(Instruction *I, ISD::NodeType ISDOpcode,
|
bool SelectBinaryOp(Instruction *I, ISD::NodeType ISDOpcode,
|
||||||
DenseMap<const Value*, unsigned> &ValueMap);
|
DenseMap<const Value*, unsigned> &ValueMap);
|
||||||
|
|
||||||
|
@ -224,10 +227,7 @@ private:
|
||||||
DenseMap<const Value*, unsigned> &ValueMap);
|
DenseMap<const Value*, unsigned> &ValueMap);
|
||||||
|
|
||||||
bool SelectCast(Instruction *I, ISD::NodeType Opcode,
|
bool SelectCast(Instruction *I, ISD::NodeType Opcode,
|
||||||
DenseMap<const Value*, unsigned> &ValueMap);
|
DenseMap<const Value*, unsigned> &ValueMap);
|
||||||
|
|
||||||
void UpdateValueMap(Instruction* I, unsigned Reg,
|
|
||||||
DenseMap<const Value*, unsigned> &ValueMap);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue