2009-07-15 14:35:19 +08:00
|
|
|
//===-- ARMTargetInfo.cpp - ARM Target Implementation ---------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-03-23 07:51:00 +08:00
|
|
|
#include "MCTargetDesc/ARMMCTargetDesc.h"
|
2013-01-02 19:36:10 +08:00
|
|
|
#include "llvm/IR/Module.h"
|
2011-08-25 02:08:43 +08:00
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
2009-07-15 14:35:19 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
2014-04-01 23:19:30 +08:00
|
|
|
Target llvm::TheARMLETarget, llvm::TheARMBETarget;
|
|
|
|
Target llvm::TheThumbLETarget, llvm::TheThumbBETarget;
|
2009-07-15 14:35:19 +08:00
|
|
|
|
|
|
|
extern "C" void LLVMInitializeARMTargetInfo() {
|
2009-07-26 13:03:33 +08:00
|
|
|
RegisterTarget<Triple::arm, /*HasJIT=*/true>
|
2014-04-01 23:19:30 +08:00
|
|
|
X(TheARMLETarget, "arm", "ARM");
|
2014-03-28 22:35:30 +08:00
|
|
|
RegisterTarget<Triple::armeb, /*HasJIT=*/true>
|
2014-04-01 23:19:30 +08:00
|
|
|
Y(TheARMBETarget, "armeb", "ARM (big endian)");
|
2009-07-15 14:35:19 +08:00
|
|
|
|
2009-07-26 13:03:33 +08:00
|
|
|
RegisterTarget<Triple::thumb, /*HasJIT=*/true>
|
2014-04-01 23:19:30 +08:00
|
|
|
A(TheThumbLETarget, "thumb", "Thumb");
|
2014-03-28 22:35:30 +08:00
|
|
|
RegisterTarget<Triple::thumbeb, /*HasJIT=*/true>
|
2014-04-01 23:19:30 +08:00
|
|
|
B(TheThumbBETarget, "thumbeb", "Thumb (big endian)");
|
2009-07-15 14:35:19 +08:00
|
|
|
}
|