forked from OSchip/llvm-project
parent
e9feb71497
commit
edfad17d9b
|
@ -131,7 +131,6 @@ InstructionSelect()
|
||||||
/// getGlobalBaseReg - Output the instructions required to put the
|
/// getGlobalBaseReg - Output the instructions required to put the
|
||||||
/// GOT address into a register.
|
/// GOT address into a register.
|
||||||
SDNode *MipsDAGToDAGISel::getGlobalBaseReg() {
|
SDNode *MipsDAGToDAGISel::getGlobalBaseReg() {
|
||||||
MachineFunction *MF = BB->getParent();
|
|
||||||
unsigned GlobalBaseReg = getInstrInfo()->getGlobalBaseReg(MF);
|
unsigned GlobalBaseReg = getInstrInfo()->getGlobalBaseReg(MF);
|
||||||
return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode();
|
return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode();
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,10 +142,6 @@ namespace {
|
||||||
/// make the right decision when generating code for different targets.
|
/// make the right decision when generating code for different targets.
|
||||||
const X86Subtarget *Subtarget;
|
const X86Subtarget *Subtarget;
|
||||||
|
|
||||||
/// CurBB - Current BB being isel'd.
|
|
||||||
///
|
|
||||||
MachineBasicBlock *CurBB;
|
|
||||||
|
|
||||||
/// OptForSize - If true, selector should try to optimize for code size
|
/// OptForSize - If true, selector should try to optimize for code size
|
||||||
/// instead of performance.
|
/// instead of performance.
|
||||||
bool OptForSize;
|
bool OptForSize;
|
||||||
|
@ -639,8 +635,7 @@ void X86DAGToDAGISel::PreprocessForFPConvert() {
|
||||||
/// InstructionSelectBasicBlock - This callback is invoked by SelectionDAGISel
|
/// InstructionSelectBasicBlock - This callback is invoked by SelectionDAGISel
|
||||||
/// when it has created a SelectionDAG for us to codegen.
|
/// when it has created a SelectionDAG for us to codegen.
|
||||||
void X86DAGToDAGISel::InstructionSelect() {
|
void X86DAGToDAGISel::InstructionSelect() {
|
||||||
CurBB = BB; // BB can change as result of isel.
|
const Function *F = MF->getFunction();
|
||||||
const Function *F = CurDAG->getMachineFunction().getFunction();
|
|
||||||
OptForSize = F->hasFnAttr(Attribute::OptimizeForSize);
|
OptForSize = F->hasFnAttr(Attribute::OptimizeForSize);
|
||||||
|
|
||||||
DEBUG(BB->dump());
|
DEBUG(BB->dump());
|
||||||
|
@ -1405,7 +1400,6 @@ bool X86DAGToDAGISel::TryFoldLoad(SDValue P, SDValue N,
|
||||||
/// initialize the global base register, if necessary.
|
/// initialize the global base register, if necessary.
|
||||||
///
|
///
|
||||||
SDNode *X86DAGToDAGISel::getGlobalBaseReg() {
|
SDNode *X86DAGToDAGISel::getGlobalBaseReg() {
|
||||||
MachineFunction *MF = CurBB->getParent();
|
|
||||||
unsigned GlobalBaseReg = getInstrInfo()->getGlobalBaseReg(MF);
|
unsigned GlobalBaseReg = getInstrInfo()->getGlobalBaseReg(MF);
|
||||||
return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode();
|
return CurDAG->getRegister(GlobalBaseReg, TLI.getPointerTy()).getNode();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue