blob: 1889df41dcb378c9a0b284bae288ca7678e5c7a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//===-- PTXTargetMachine.cpp - Define TargetMachine for PTX ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Top-level implementation for the PTX target.
//
//===----------------------------------------------------------------------===//
#include "PTX.h"
#include "PTXTargetMachine.h"
#include "llvm/Target/TargetRegistry.h"
using namespace llvm;
extern "C" void LLVMInitializePTXTarget()
{
// Register the target
RegisterTargetMachine<PTXTargetMachine> X(ThePTXTarget);
}
PTXTargetMachine::PTXTargetMachine(const Target &T,
const std::string &TT,
const std::string &FS) :
LLVMTargetMachine(T, TT)
{
}
|