mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
f7a3c50183
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113235 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
//===-- PTXAsmPrinter.cpp - PTX LLVM assembly writer ----------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains a printer that converts from our internal representation
|
|
// of machine-dependent LLVM code to PTX assembly language.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "PTX.h"
|
|
#include "PTXTargetMachine.h"
|
|
#include "llvm/CodeGen/AsmPrinter.h"
|
|
#include "llvm/Target/TargetRegistry.h"
|
|
|
|
using namespace llvm;
|
|
|
|
namespace {
|
|
class PTXAsmPrinter : public AsmPrinter {
|
|
public:
|
|
explicit PTXAsmPrinter(TargetMachine &TM, MCStreamer &Streamer) :
|
|
AsmPrinter(TM, Streamer) {}
|
|
const char *getPassName() const { return "PTX Assembly Printer"; }
|
|
};
|
|
} // namespace
|
|
|
|
// Force static initialization.
|
|
extern "C" void LLVMInitializePTXAsmPrinter()
|
|
{
|
|
RegisterAsmPrinter<PTXAsmPrinter> X(ThePTXTarget);
|
|
}
|