mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
32 lines
920 B
C++
32 lines
920 B
C++
|
//===-- 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)
|
||
|
{
|
||
|
}
|