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-07-23 12:58:11 +00:00
|
|
|
Target TheARM64Target;
|
2014-03-29 10:18:08 +00:00
|
|
|
} // end namespace llvm
|
|
|
|
|
2014-05-24 12:50:23 +00:00
|
|
|
extern "C" void LLVMInitializeAArch64TargetInfo() {
|
2014-07-23 12:32:47 +00:00
|
|
|
// Now register the "arm64" name for use with "-march". We don't want it to
|
|
|
|
// take possession of the Triple::aarch64 tag though.
|
2014-08-08 08:27:44 +00:00
|
|
|
TargetRegistry::RegisterTarget(TheARM64Target, "arm64",
|
|
|
|
"ARM64 (little endian)",
|
|
|
|
[](Triple::ArchType) { return false; }, true);
|
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-07-23 12:32:47 +00:00
|
|
|
|
2014-03-29 10:18:08 +00:00
|
|
|
}
|