mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
revert r76602, 76603, and r76615, pending design discussions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,9 +27,7 @@
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/Dump.h"
|
||||
#include <cmath>
|
||||
#include <sstream>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -81,7 +79,7 @@ namespace llvm {
|
||||
/// FunctionSize - The number of instructions present in the function
|
||||
uint64_t FunctionSize;
|
||||
|
||||
typedef DenseMap<const MachineInstr*, unsigned> Mi2IndexMap;
|
||||
typedef DenseMap<MachineInstr*, unsigned> Mi2IndexMap;
|
||||
Mi2IndexMap mi2iMap_;
|
||||
|
||||
typedef std::vector<MachineInstr*> Index2MiMap;
|
||||
@@ -200,7 +198,7 @@ namespace llvm {
|
||||
}
|
||||
|
||||
/// getInstructionIndex - returns the base index of instr
|
||||
unsigned getInstructionIndex(const MachineInstr* instr) const {
|
||||
unsigned getInstructionIndex(MachineInstr* instr) const {
|
||||
Mi2IndexMap::const_iterator it = mi2iMap_.find(instr);
|
||||
assert(it != mi2iMap_.end() && "Invalid instruction!");
|
||||
return it->second;
|
||||
@@ -540,26 +538,6 @@ namespace llvm {
|
||||
void printRegName(unsigned reg) const;
|
||||
};
|
||||
|
||||
// IntervalPrefixPrinter - Print live interval indices before each
|
||||
// instruction.
|
||||
class IntervalPrefixPrinter : public PrefixPrinter {
|
||||
private:
|
||||
const LiveIntervals &liinfo;
|
||||
|
||||
public:
|
||||
IntervalPrefixPrinter(const LiveIntervals &lii)
|
||||
: liinfo(lii) {};
|
||||
|
||||
std::string operator()(const MachineBasicBlock &) const {
|
||||
return("");
|
||||
};
|
||||
|
||||
std::string operator()(const MachineInstr &instr) const {
|
||||
std::stringstream out;
|
||||
out << liinfo.getInstructionIndex(&instr);
|
||||
return(out.str());
|
||||
};
|
||||
};
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user