mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Add new helpers for registering targets.
- Less boilerplate == good. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,21 +17,17 @@
|
||||
#include "SPUTargetMachine.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/Target/TargetMachineRegistry.h"
|
||||
#include "llvm/CodeGen/RegAllocRegistry.h"
|
||||
#include "llvm/CodeGen/SchedulerRegistry.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
// Register the targets
|
||||
RegisterTarget<SPUTargetMachine>
|
||||
CELLSPU(TheCellSPUTarget, "cellspu", "STI CBEA Cell SPU [experimental]");
|
||||
extern "C" void LLVMInitializeCellSPUTarget() {
|
||||
// Register the target.
|
||||
RegisterTargetMachine<SPUTargetMachine> X(TheCellSPUTarget);
|
||||
}
|
||||
|
||||
// Force static initialization.
|
||||
extern "C" void LLVMInitializeCellSPUTarget() { }
|
||||
|
||||
const std::pair<unsigned, int> *
|
||||
SPUFrameInfo::getCalleeSaveSpillSlots(unsigned &NumEntries) const {
|
||||
NumEntries = 1;
|
||||
|
||||
Reference in New Issue
Block a user