LLVM API Documentation
00001 //===-- SparcTargetInfo.cpp - Sparc Target Implementation -----------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #include "Sparc.h" 00011 #include "llvm/IR/Module.h" 00012 #include "llvm/Support/TargetRegistry.h" 00013 using namespace llvm; 00014 00015 Target llvm::TheSparcTarget; 00016 Target llvm::TheSparcV9Target; 00017 00018 extern "C" void LLVMInitializeSparcTargetInfo() { 00019 RegisterTarget<Triple::sparc, /*HasJIT=*/ true> 00020 X(TheSparcTarget, "sparc", "Sparc"); 00021 RegisterTarget<Triple::sparcv9, /*HasJIT=*/ true> 00022 Y(TheSparcV9Target, "sparcv9", "Sparc V9"); 00023 }