mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Convert tabs to spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include <malloc.h>
|
||||
#elif !defined(__GNUC__)
|
||||
# ifdef _AIX
|
||||
# pragma alloca
|
||||
# pragma alloca
|
||||
# else
|
||||
# ifndef alloca
|
||||
char * alloca ();
|
||||
|
@@ -88,19 +88,16 @@ public:
|
||||
// for the given function. The rest must be implemented by the
|
||||
// machine-specific subclass.
|
||||
//
|
||||
virtual int getIncomingArgOffset (MachineFunction& mcInfo,
|
||||
virtual int getIncomingArgOffset(MachineFunction& mcInfo,
|
||||
unsigned argNum) const;
|
||||
virtual int getOutgoingArgOffset (MachineFunction& mcInfo,
|
||||
virtual int getOutgoingArgOffset(MachineFunction& mcInfo,
|
||||
unsigned argNum) const;
|
||||
|
||||
virtual int getFirstAutomaticVarOffset (MachineFunction& mcInfo,
|
||||
virtual int getFirstAutomaticVarOffset(MachineFunction& mcInfo,
|
||||
bool& growUp) const;
|
||||
virtual int getRegSpillAreaOffset (MachineFunction& mcInfo,
|
||||
bool& growUp) const;
|
||||
virtual int getTmpAreaOffset (MachineFunction& mcInfo,
|
||||
bool& growUp) const;
|
||||
virtual int getDynamicAreaOffset (MachineFunction& mcInfo,
|
||||
virtual int getRegSpillAreaOffset(MachineFunction& mcInfo,
|
||||
bool& growUp) const;
|
||||
virtual int getTmpAreaOffset(MachineFunction& mcInfo, bool& growUp) const;
|
||||
virtual int getDynamicAreaOffset(MachineFunction& mcInfo, bool& growUp) const;
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
@@ -139,8 +139,8 @@ private:
|
||||
numBubbles = delta.numBubbles;
|
||||
}
|
||||
|
||||
void addUsageDelta (const InstrRUsageDelta& delta);
|
||||
void setMaxSlots (int maxNumSlots) {
|
||||
void addUsageDelta(const InstrRUsageDelta& delta);
|
||||
void setMaxSlots(int maxNumSlots) {
|
||||
feasibleSlots.resize(maxNumSlots);
|
||||
}
|
||||
|
||||
@@ -173,14 +173,14 @@ private:
|
||||
TargetSchedInfo(const TargetSchedInfo &); // DO NOT IMPLEMENT
|
||||
void operator=(const TargetSchedInfo &); // DO NOT IMPLEMENT
|
||||
public:
|
||||
/*ctor*/ TargetSchedInfo (const TargetMachine& tgt,
|
||||
TargetSchedInfo(const TargetMachine& tgt,
|
||||
int _numSchedClasses,
|
||||
const InstrClassRUsage* _classRUsages,
|
||||
const InstrRUsageDelta* _usageDeltas,
|
||||
const InstrIssueDelta* _issueDeltas,
|
||||
unsigned _numUsageDeltas,
|
||||
unsigned _numIssueDeltas);
|
||||
/*dtor*/ virtual ~TargetSchedInfo() {}
|
||||
virtual ~TargetSchedInfo() {}
|
||||
|
||||
inline const TargetInstrInfo& getInstrInfo() const {
|
||||
return *mii;
|
||||
@@ -199,21 +199,21 @@ public:
|
||||
return classRUsages[sc].maxNumIssue;
|
||||
}
|
||||
|
||||
inline InstrSchedClass getSchedClass (MachineOpCode opCode) const {
|
||||
inline InstrSchedClass getSchedClass(MachineOpCode opCode) const {
|
||||
return getInstrInfo().getSchedClass(opCode);
|
||||
}
|
||||
|
||||
inline bool instrCanUseSlot (MachineOpCode opCode,
|
||||
inline bool instrCanUseSlot(MachineOpCode opCode,
|
||||
unsigned s) const {
|
||||
assert(s < getInstrRUsage(opCode).feasibleSlots.size() && "Invalid slot!");
|
||||
return getInstrRUsage(opCode).feasibleSlots[s];
|
||||
}
|
||||
|
||||
inline int getLongestIssueConflict () const {
|
||||
inline int getLongestIssueConflict() const {
|
||||
return longestIssueConflict;
|
||||
}
|
||||
|
||||
inline int getMinIssueGap (MachineOpCode fromOp,
|
||||
inline int getMinIssueGap(MachineOpCode fromOp,
|
||||
MachineOpCode toOp) const {
|
||||
assert(fromOp < (int) issueGaps.size());
|
||||
const std::vector<int>& toGaps = issueGaps[fromOp];
|
||||
@@ -226,15 +226,15 @@ public:
|
||||
return conflictLists[opCode];
|
||||
}
|
||||
|
||||
inline bool isSingleIssue (MachineOpCode opCode) const {
|
||||
inline bool isSingleIssue(MachineOpCode opCode) const {
|
||||
return getInstrRUsage(opCode).isSingleIssue;
|
||||
}
|
||||
|
||||
inline bool breaksIssueGroup (MachineOpCode opCode) const {
|
||||
inline bool breaksIssueGroup(MachineOpCode opCode) const {
|
||||
return getInstrRUsage(opCode).breaksGroup;
|
||||
}
|
||||
|
||||
inline unsigned numBubblesAfter (MachineOpCode opCode) const {
|
||||
inline unsigned numBubblesAfter(MachineOpCode opCode) const {
|
||||
return getInstrRUsage(opCode).numBubbles;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ public:
|
||||
|
||||
|
||||
protected:
|
||||
virtual void initializeResources ();
|
||||
virtual void initializeResources();
|
||||
|
||||
private:
|
||||
void computeInstrResources(const std::vector<InstrRUsage>& instrRUForClasses);
|
||||
|
Reference in New Issue
Block a user