blob: 0554646bb6bed7b9674f30a78824b86fc252901c [file] [log] [blame]
Tony Linthicum1213a7a2011-12-12 21:14:40 +00001//===-- HexagonTargetInfo.cpp - Hexagon Target Implementation ------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "Hexagon.h"
Chandler Carruth9fb823b2013-01-02 11:36:10 +000011#include "llvm/IR/Module.h"
Tony Linthicum1213a7a2011-12-12 21:14:40 +000012#include "llvm/Support/TargetRegistry.h"
13using namespace llvm;
14
Mehdi Aminif42454b2016-10-09 23:00:34 +000015Target &llvm::getTheHexagonTarget() {
16 static Target TheHexagonTarget;
17 return TheHexagonTarget;
18}
Tony Linthicum1213a7a2011-12-12 21:14:40 +000019
20extern "C" void LLVMInitializeHexagonTargetInfo() {
Mehdi Aminif42454b2016-10-09 23:00:34 +000021 RegisterTarget<Triple::hexagon, /*HasJIT=*/false> X(getTheHexagonTarget(),
22 "hexagon", "Hexagon");
Tony Linthicum1213a7a2011-12-12 21:14:40 +000023}