Add TargetInfo libraries for all targets.
[oota-llvm.git] / lib / Target / PIC16 / TargetInfo / PIC16TargetInfo.cpp
1 //===-- 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"
12 using namespace llvm;
13
14 Target ThePIC16Target;
15
16 static unsigned PIC16_JITMatchQuality() {
17   return 0;
18 }
19
20 static unsigned PIC16_TripleMatchQuality(const std::string &TT) {
21   return 0;
22 }
23
24 static unsigned PIC16_ModuleMatchQuality(const Module &M) {
25   return 0;
26 }
27
28 Target TheCooperTarget;
29
30 static unsigned Cooper_JITMatchQuality() {
31   return 0;
32 }
33
34 static unsigned Cooper_TripleMatchQuality(const std::string &TT) {
35   return 0;
36 }
37
38 static unsigned Cooper_ModuleMatchQuality(const Module &M) {
39   return 0;
40 }
41
42 extern "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 }