blob: 454f4259ff3f00a1e21d2ddd0acbe062ac71603f [file] [log] [blame]
Daniel Dunbar0eb66992009-07-15 06:35:19 +00001//===-- PIC16TargetInfo.cpp - PIC16 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 "llvm/Module.h"
11#include "llvm/Target/TargetRegistry.h"
12using namespace llvm;
13
14Target ThePIC16Target;
15
16static unsigned PIC16_JITMatchQuality() {
17 return 0;
18}
19
20static unsigned PIC16_TripleMatchQuality(const std::string &TT) {
21 return 0;
22}
23
24static unsigned PIC16_ModuleMatchQuality(const Module &M) {
25 return 0;
26}
27
28Target TheCooperTarget;
29
30static unsigned Cooper_JITMatchQuality() {
31 return 0;
32}
33
34static unsigned Cooper_TripleMatchQuality(const std::string &TT) {
35 return 0;
36}
37
38static unsigned Cooper_ModuleMatchQuality(const Module &M) {
39 return 0;
40}
41
42extern "C" void LLVMInitializePIC16TargetInfo() {
43 TargetRegistry::RegisterTarget(ThePIC16Target, "pic16",
44 "PIC16 14-bit [experimental]",
45 &PIC16_TripleMatchQuality,
46 &PIC16_ModuleMatchQuality,
47 &PIC16_JITMatchQuality);
48
49 TargetRegistry::RegisterTarget(TheCooperTarget, "cooper",
50 "PIC16 Cooper [experimental]",
51 &Cooper_TripleMatchQuality,
52 &Cooper_ModuleMatchQuality,
53 &Cooper_JITMatchQuality);
54}