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