PageRenderTime 38ms CodeModel.GetById 29ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 1ms

/3rd_party/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp

https://code.google.com/p/softart/
C++ | 23 lines | 12 code | 3 blank | 8 comment | 0 complexity | 95a5c0d3b60fc104ff82b642ac17ce8a MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, JSON, MPL-2.0-no-copyleft-exception, GPL-2.0, GPL-3.0, LGPL-3.0, BSD-2-Clause
 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"
13using namespace llvm;
14
15Target llvm::TheSparcTarget;
16Target llvm::TheSparcV9Target;
17
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}