1 //===-- SparcTargetInfo.cpp - Sparc 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 10 #include "Sparc.h" 11 #include "llvm/IR/Module.h" 12 #include "llvm/Support/TargetRegistry.h" 13 using namespace llvm; 14 15 Target llvm::TheSparcTarget; 16 Target llvm::TheSparcV9Target; 17 LLVMInitializeSparcTargetInfo()18extern "C" void LLVMInitializeSparcTargetInfo() { 19 RegisterTarget<Triple::sparc, /*HasJIT=*/ true> 20 X(TheSparcTarget, "sparc", "Sparc"); 21 RegisterTarget<Triple::sparcv9, /*HasJIT=*/ true> 22 Y(TheSparcV9Target, "sparcv9", "Sparc V9"); 23 } 24