mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Move CurDebugLoc into SelectionDAGLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9411cd2570
commit
66978ee977
@ -79,9 +79,6 @@ class SelectionDAG {
|
|||||||
MachineModuleInfo *MMI;
|
MachineModuleInfo *MMI;
|
||||||
DwarfWriter *DW;
|
DwarfWriter *DW;
|
||||||
|
|
||||||
/// CurDebugLoc - current file + line number. Changes as we build the DAG.
|
|
||||||
DebugLoc CurDebugLoc;
|
|
||||||
|
|
||||||
/// EntryNode - The starting token.
|
/// EntryNode - The starting token.
|
||||||
SDNode EntryNode;
|
SDNode EntryNode;
|
||||||
|
|
||||||
@ -140,7 +137,6 @@ public:
|
|||||||
FunctionLoweringInfo &getFunctionLoweringInfo() const { return FLI; }
|
FunctionLoweringInfo &getFunctionLoweringInfo() const { return FLI; }
|
||||||
MachineModuleInfo *getMachineModuleInfo() const { return MMI; }
|
MachineModuleInfo *getMachineModuleInfo() const { return MMI; }
|
||||||
DwarfWriter *getDwarfWriter() const { return DW; }
|
DwarfWriter *getDwarfWriter() const { return DW; }
|
||||||
DebugLoc getCurDebugLoc() const { return CurDebugLoc; }
|
|
||||||
|
|
||||||
/// viewGraph - Pop up a GraphViz/gv window with the DAG rendered using 'dot'.
|
/// viewGraph - Pop up a GraphViz/gv window with the DAG rendered using 'dot'.
|
||||||
///
|
///
|
||||||
@ -199,8 +195,6 @@ public:
|
|||||||
return Root = N;
|
return Root = N;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCurDebugLoc(DebugLoc dl) { CurDebugLoc = dl; }
|
|
||||||
|
|
||||||
/// Combine - This iterates over the nodes in the SelectionDAG, folding
|
/// Combine - This iterates over the nodes in the SelectionDAG, folding
|
||||||
/// certain types of nodes together, or eliminating superfluous nodes. The
|
/// certain types of nodes together, or eliminating superfluous nodes. The
|
||||||
/// Level argument controls whether Combine is allowed to produce nodes and
|
/// Level argument controls whether Combine is allowed to produce nodes and
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -164,6 +164,9 @@ public:
|
|||||||
class SelectionDAGLowering {
|
class SelectionDAGLowering {
|
||||||
MachineBasicBlock *CurMBB;
|
MachineBasicBlock *CurMBB;
|
||||||
|
|
||||||
|
/// CurDebugLoc - current file + line number. Changes as we build the DAG.
|
||||||
|
DebugLoc CurDebugLoc;
|
||||||
|
|
||||||
DenseMap<const Value*, SDValue> NodeMap;
|
DenseMap<const Value*, SDValue> NodeMap;
|
||||||
|
|
||||||
/// PendingLoads - Loads are not emitted to the program immediately. We bunch
|
/// PendingLoads - Loads are not emitted to the program immediately. We bunch
|
||||||
@ -356,7 +359,8 @@ public:
|
|||||||
|
|
||||||
SelectionDAGLowering(SelectionDAG &dag, TargetLowering &tli,
|
SelectionDAGLowering(SelectionDAG &dag, TargetLowering &tli,
|
||||||
FunctionLoweringInfo &funcinfo)
|
FunctionLoweringInfo &funcinfo)
|
||||||
: TLI(tli), DAG(dag), FuncInfo(funcinfo) {
|
: CurDebugLoc(DebugLoc::getUnknownLoc()),
|
||||||
|
TLI(tli), DAG(dag), FuncInfo(funcinfo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void init(GCFunctionInfo *gfi, AliasAnalysis &aa);
|
void init(GCFunctionInfo *gfi, AliasAnalysis &aa);
|
||||||
@ -382,6 +386,8 @@ public:
|
|||||||
///
|
///
|
||||||
SDValue getControlRoot();
|
SDValue getControlRoot();
|
||||||
|
|
||||||
|
DebugLoc getCurDebugLoc() const { return CurDebugLoc; }
|
||||||
|
|
||||||
void CopyValueToVirtualRegister(Value *V, unsigned Reg);
|
void CopyValueToVirtualRegister(Value *V, unsigned Reg);
|
||||||
|
|
||||||
void visit(Instruction &I);
|
void visit(Instruction &I);
|
||||||
@ -531,6 +537,8 @@ private:
|
|||||||
|
|
||||||
const char *implVisitBinaryAtomic(CallInst& I, ISD::NodeType Op);
|
const char *implVisitBinaryAtomic(CallInst& I, ISD::NodeType Op);
|
||||||
const char *implVisitAluOverflow(CallInst &I, ISD::NodeType Op);
|
const char *implVisitAluOverflow(CallInst &I, ISD::NodeType Op);
|
||||||
|
|
||||||
|
void setCurDebugLoc(DebugLoc dl) { CurDebugLoc = dl; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/// AddCatchInfo - Extract the personality and type infos from an eh.selector
|
/// AddCatchInfo - Extract the personality and type infos from an eh.selector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user