2009-10-14 13:57:32 -04:00
|
|
|
//===-- XCoreTargetInfo.cpp - XCore Target Implementation -----------------===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "XCore.h"
|
2013-04-08 14:41:23 -04:00
|
|
|
#include "llvm/IR/Module.h"
|
2011-10-20 17:10:27 -04:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2009-10-14 13:57:32 -04:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
2017-01-02 14:17:04 -05:00
|
|
|
Target &llvm::getTheXCoreTarget() {
|
|
|
|
|
static Target TheXCoreTarget;
|
|
|
|
|
return TheXCoreTarget;
|
|
|
|
|
}
|
2009-10-14 13:57:32 -04:00
|
|
|
|
2015-05-27 14:44:32 -04:00
|
|
|
extern "C" void LLVMInitializeXCoreTargetInfo() {
|
2017-12-18 15:10:56 -05:00
|
|
|
RegisterTarget<Triple::xcore> X(getTheXCoreTarget(), "xcore", "XCore",
|
|
|
|
|
"XCore");
|
2009-10-14 13:57:32 -04:00
|
|
|
}
|