2014-05-24 12:50:23 +00:00
|
|
|
//===-- AArch64TargetInfo.cpp - AArch64 Target Implementation -----------------===//
|
2014-03-29 10:18:08 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/ADT/Triple.h"
|
|
|
|
#include "llvm/Support/TargetRegistry.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
namespace llvm {
|
2014-05-24 12:42:26 +00:00
|
|
|
Target TheAArch64leTarget;
|
|
|
|
Target TheAArch64beTarget;
|
2014-05-24 12:50:23 +00:00
|
|
|
Target TheARM64leTarget;
|
|
|
|
Target TheARM64beTarget;
|
2014-03-29 10:18:08 +00:00
|
|
|
} // end namespace llvm
|
|
|
|
|
2014-05-24 12:50:23 +00:00
|
|
|
extern "C" void LLVMInitializeAArch64TargetInfo() {
|
2014-04-23 10:26:40 +00:00
|
|
|
RegisterTarget<Triple::arm64, /*HasJIT=*/true> X(TheARM64leTarget, "arm64",
|
2014-05-24 12:50:23 +00:00
|
|
|
"AArch64 (little endian)");
|
2014-04-23 10:26:40 +00:00
|
|
|
RegisterTarget<Triple::arm64_be, /*HasJIT=*/true> Y(TheARM64beTarget, "arm64_be",
|
2014-05-24 12:50:23 +00:00
|
|
|
"AArch64 (big endian)");
|
2014-05-24 12:42:26 +00:00
|
|
|
|
|
|
|
RegisterTarget<Triple::aarch64, /*HasJIT=*/true> Z(
|
2014-05-24 12:50:23 +00:00
|
|
|
TheAArch64leTarget, "aarch64", "AArch64 (little endian)");
|
2014-05-24 12:42:26 +00:00
|
|
|
RegisterTarget<Triple::aarch64_be, /*HasJIT=*/true> W(
|
2014-05-24 12:50:23 +00:00
|
|
|
TheAArch64beTarget, "aarch64_be", "AArch64 (big endian)");
|
2014-03-29 10:18:08 +00:00
|
|
|
}
|