LLVM
5.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lib
Target
Nios2
TargetInfo
Nios2TargetInfo.cpp
Go to the documentation of this file.
1
//===-- Nios2TargetInfo.cpp - Nios2 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 "
Nios2.h
"
11
#include "
llvm/Support/TargetRegistry.h
"
12
13
using namespace
llvm;
14
15
Target
&
llvm::getTheNios2Target
() {
16
static
Target
TheNios2Target;
17
return
TheNios2Target;
18
}
19
20
extern
"C"
void
LLVMInitializeNios2TargetInfo
() {
21
RegisterTarget
<
Triple::nios2
,
22
/*HasJIT=*/
true
>
23
X
(
getTheNios2Target
(),
"nios2"
,
"Nios2"
);
24
}
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition:
TargetRegistry.h:888
LLVMInitializeNios2TargetInfo
void LLVMInitializeNios2TargetInfo()
Definition:
Nios2TargetInfo.cpp:20
llvm::getTheNios2Target
Target & getTheNios2Target()
Definition:
Nios2TargetInfo.cpp:15
Nios2.h
X
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
llvm::Target
Target - Wrapper for Target specific information.
Definition:
TargetRegistry.h:96
llvm::Triple::nios2
Definition:
Triple.h:62
TargetRegistry.h
Generated on Fri Sep 1 2017 14:14:56 for LLVM by
1.8.6