Daniel Dunbar | 56e2947 | 2009-07-15 06:35:19 +0000 | [diff] [blame] | 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 | |
Daniel Dunbar | 67038c1 | 2009-07-18 23:03:22 +0000 | [diff] [blame^] | 10 | #include "PIC16.h" |
Daniel Dunbar | 56e2947 | 2009-07-15 06:35:19 +0000 | [diff] [blame] | 11 | #include "llvm/Module.h" |
| 12 | #include "llvm/Target/TargetRegistry.h" |
| 13 | using namespace llvm; |
| 14 | |
Daniel Dunbar | 67038c1 | 2009-07-18 23:03:22 +0000 | [diff] [blame^] | 15 | Target llvm::ThePIC16Target; |
Daniel Dunbar | 56e2947 | 2009-07-15 06:35:19 +0000 | [diff] [blame] | 16 | |
| 17 | static unsigned PIC16_JITMatchQuality() { |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | static unsigned PIC16_TripleMatchQuality(const std::string &TT) { |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | static unsigned PIC16_ModuleMatchQuality(const Module &M) { |
| 26 | return 0; |
| 27 | } |
| 28 | |
Daniel Dunbar | 67038c1 | 2009-07-18 23:03:22 +0000 | [diff] [blame^] | 29 | Target llvm::TheCooperTarget; |
Daniel Dunbar | 56e2947 | 2009-07-15 06:35:19 +0000 | [diff] [blame] | 30 | |
| 31 | static unsigned Cooper_JITMatchQuality() { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | static unsigned Cooper_TripleMatchQuality(const std::string &TT) { |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | static unsigned Cooper_ModuleMatchQuality(const Module &M) { |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | extern "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 | } |