LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
lib
Target
XCore
TargetInfo
XCoreTargetInfo.cpp
Go to the documentation of this file.
1
//===-- XCoreTargetInfo.cpp - XCore 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 "
XCore.h
"
11
#include "
llvm/IR/Module.h
"
12
#include "
llvm/Support/TargetRegistry.h
"
13
using namespace
llvm;
14
15
Target
&
llvm::getTheXCoreTarget
() {
16
static
Target
TheXCoreTarget;
17
return
TheXCoreTarget;
18
}
19
20
extern
"C"
void
LLVMInitializeXCoreTargetInfo
() {
21
RegisterTarget<Triple::xcore>
X
(
getTheXCoreTarget
(),
"xcore"
,
"XCore"
);
22
}
llvm::RegisterTarget
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
Definition:
TargetRegistry.h:865
LLVMInitializeXCoreTargetInfo
void LLVMInitializeXCoreTargetInfo()
Definition:
XCoreTargetInfo.cpp:20
X
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
llvm::getTheXCoreTarget
Target & getTheXCoreTarget()
Definition:
XCoreTargetInfo.cpp:15
Module.h
Module.h This file contains the declarations for the Module class.
llvm::Target
Target - Wrapper for Target specific information.
Definition:
TargetRegistry.h:87
TargetRegistry.h
XCore.h
Generated on Wed Mar 8 2017 17:33:20 for LLVM by
1.8.6