mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Rename Method to Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,7 +28,7 @@ class Value;
|
||||
class Instruction;
|
||||
class TerminatorInst;
|
||||
class BasicBlock;
|
||||
class Method;
|
||||
class Function;
|
||||
class TargetMachine;
|
||||
class SchedGraphEdge;
|
||||
class SchedGraphNode;
|
||||
@@ -339,7 +339,7 @@ class SchedGraphSet :
|
||||
private std::hash_map<const BasicBlock*, SchedGraph*>
|
||||
{
|
||||
private:
|
||||
const Method* method;
|
||||
const Function* method;
|
||||
|
||||
public:
|
||||
typedef std::hash_map<const BasicBlock*, SchedGraph*> map_base;
|
||||
@@ -347,7 +347,7 @@ public:
|
||||
using map_base::const_iterator;
|
||||
|
||||
public:
|
||||
/*ctor*/ SchedGraphSet (const Method* _method,
|
||||
/*ctor*/ SchedGraphSet (const Function * function,
|
||||
const TargetMachine& target);
|
||||
/*dtor*/ ~SchedGraphSet ();
|
||||
|
||||
@@ -379,7 +379,7 @@ private:
|
||||
//
|
||||
// Graph builder
|
||||
//
|
||||
void buildGraphsForMethod (const Method *method,
|
||||
void buildGraphsForMethod (const Function *F,
|
||||
const TargetMachine& target);
|
||||
};
|
||||
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#include <list>
|
||||
#include <ext/hash_set>
|
||||
#include <iostream>
|
||||
class Method;
|
||||
class Function;
|
||||
class MachineInstr;
|
||||
class SchedulingManager;
|
||||
class MethodLiveVarInfo;
|
||||
@@ -125,7 +125,8 @@ private:
|
||||
|
||||
class SchedPriorities: public NonCopyable {
|
||||
public:
|
||||
SchedPriorities(const Method *M, const SchedGraph *G, MethodLiveVarInfo &LVI);
|
||||
SchedPriorities(const Function *F, const SchedGraph *G,
|
||||
MethodLiveVarInfo &LVI);
|
||||
|
||||
|
||||
// This must be called before scheduling begins.
|
||||
|
@@ -1,4 +1,4 @@
|
||||
//===-- LiveRangeInfo.h - Track all LiveRanges for a Method ------*- C++ -*-==//
|
||||
//===-- LiveRangeInfo.h - Track all LiveRanges for a Function ----*- C++ -*-==//
|
||||
//
|
||||
// This file contains the class LiveRangeInfo which constructs and keeps
|
||||
// the LiveRangMap which contains all the live ranges used in a method.
|
||||
@@ -28,7 +28,7 @@ class RegClass;
|
||||
class MachineRegInfo;
|
||||
class TargetMachine;
|
||||
class Value;
|
||||
class Method;
|
||||
class Function;
|
||||
class Instruction;
|
||||
|
||||
typedef std::hash_map<const Value*, LiveRange*> LiveRangeMapType;
|
||||
@@ -42,7 +42,7 @@ typedef std::vector<const MachineInstr*> CallRetInstrListType;
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
class LiveRangeInfo {
|
||||
const Method *const Meth; // Method for which live range info is held
|
||||
const Function *const Meth; // Func for which live range info is held
|
||||
LiveRangeMapType LiveRangeMap; // A map from Value * to LiveRange * to
|
||||
// record all live ranges in a method
|
||||
// created by constructLiveRanges
|
||||
@@ -64,11 +64,11 @@ class LiveRangeInfo {
|
||||
|
||||
void suggestRegs4CallRets();
|
||||
|
||||
const Method* getMethod() { return Meth; }
|
||||
const Function *getMethod() { return Meth; }
|
||||
|
||||
public:
|
||||
|
||||
LiveRangeInfo(const Method *M,
|
||||
LiveRangeInfo(const Function *F,
|
||||
const TargetMachine& tm,
|
||||
std::vector<RegClass *> & RCList);
|
||||
|
||||
|
Reference in New Issue
Block a user