1 //===-- PIC16TargetInfo.cpp - PIC16 Target Implementation -----------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #include "llvm/Module.h"
12 #include "llvm/Target/TargetRegistry.h"
15 Target llvm::ThePIC16Target;
17 static unsigned PIC16_TripleMatchQuality(const std::string &TT) {
21 Target llvm::TheCooperTarget;
23 static unsigned Cooper_TripleMatchQuality(const std::string &TT) {
27 extern "C" void LLVMInitializePIC16TargetInfo() {
28 TargetRegistry::RegisterTarget(ThePIC16Target, "pic16",
29 "PIC16 14-bit [experimental]",
30 &PIC16_TripleMatchQuality);
32 TargetRegistry::RegisterTarget(TheCooperTarget, "cooper",
33 "PIC16 Cooper [experimental]",
34 &Cooper_TripleMatchQuality);