blob: 2a88fe52c9afb2ff52ca20778ec4ce57b75c7343 [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
Daniel Dunbar56e29472009-07-15 06:35:19 +000017static unsigned PIC16_TripleMatchQuality(const std::string &TT) {
18 return 0;
19}
20
21static unsigned PIC16_ModuleMatchQuality(const Module &M) {
22 return 0;
23}
24
Daniel Dunbar67038c12009-07-18 23:03:22 +000025Target llvm::TheCooperTarget;
Daniel Dunbar56e29472009-07-15 06:35:19 +000026
Daniel Dunbar56e29472009-07-15 06:35:19 +000027static unsigned Cooper_TripleMatchQuality(const std::string &TT) {
28 return 0;
29}
30
31static unsigned Cooper_ModuleMatchQuality(const Module &M) {
32 return 0;
33}
34
35extern "C" void LLVMInitializePIC16TargetInfo() {
36 TargetRegistry::RegisterTarget(ThePIC16Target, "pic16",
37 "PIC16 14-bit [experimental]",
38 &PIC16_TripleMatchQuality,
Daniel Dunbar691a4782009-07-25 10:09:50 +000039 &PIC16_ModuleMatchQuality);
Daniel Dunbar56e29472009-07-15 06:35:19 +000040
41 TargetRegistry::RegisterTarget(TheCooperTarget, "cooper",
42 "PIC16 Cooper [experimental]",
43 &Cooper_TripleMatchQuality,
Daniel Dunbar691a4782009-07-25 10:09:50 +000044 &Cooper_ModuleMatchQuality);
Daniel Dunbar56e29472009-07-15 06:35:19 +000045}