From d8e4ed2686cfcc1857d1ea15d2797d6c92c09f6c Mon Sep 17 00:00:00 2001 From: Justin Holewinski Date: Wed, 28 Sep 2011 14:32:04 +0000 Subject: PTX: MC-ize the PTX back-end (patch 1 of N) Lay some groundwork for converting to MC-based asm printer. This is the first of probably many patches to bring the back-end back up-to-date with all of the recent MC changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140697 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PTX/PTX.td | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/Target/PTX/PTX.td') diff --git a/lib/Target/PTX/PTX.td b/lib/Target/PTX/PTX.td index 7d0be8bfe5..693bb9c483 100644 --- a/lib/Target/PTX/PTX.td +++ b/lib/Target/PTX/PTX.td @@ -121,10 +121,21 @@ include "PTXInstrInfo.td" def PTXInstrInfo : InstrInfo; +//===----------------------------------------------------------------------===// +// Assembly printer +//===----------------------------------------------------------------------===// +// PTX uses the MC printer for asm output, so make sure the TableGen +// AsmWriter bits get associated with the correct class. +def PTXAsmWriter : AsmWriter { + string AsmWriterClassName = "InstPrinter"; + bit isMCAsmWriter = 1; +} + //===----------------------------------------------------------------------===// // Target Declaration //===----------------------------------------------------------------------===// def PTX : Target { let InstructionSet = PTXInstrInfo; + let AssemblyWriters = [PTXAsmWriter]; } -- cgit v1.2.3