1 //===-- MSILTargetInfo.cpp - MSIL Target Implementation -------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Module.h"
11 #include "llvm/Target/TargetRegistry.h"
16 static unsigned MSIL_JITMatchQuality() {
20 static unsigned MSIL_TripleMatchQuality(const std::string &TT) {
21 // This class always works, but shouldn't be the default in most cases.
25 static unsigned MSIL_ModuleMatchQuality(const Module &M) {
26 // This class always works, but shouldn't be the default in most cases.
30 extern "C" void LLVMInitializeMSILTargetInfo() {
31 TargetRegistry::RegisterTarget(TheMSILTarget, "msil",
33 &MSIL_TripleMatchQuality,
34 &MSIL_ModuleMatchQuality,
35 &MSIL_JITMatchQuality);