Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 1 | //===-- SPUTargetAsmInfo.h - Cell SPU asm properties -----------*- C++ -*--===// |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the declaration of the SPUTargetAsmInfo class. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 14 | #ifndef SPUTARGETASMINFO_H |
| 15 | #define SPUTARGETASMINFO_H |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 16 | |
| 17 | #include "llvm/Target/TargetAsmInfo.h" |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 18 | #include "SPUTargetMachine.h" |
| 19 | #include "SPUSubtarget.h" |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 20 | |
| 21 | namespace llvm { |
| 22 | |
| 23 | // Forward declaration. |
| 24 | class SPUTargetMachine; |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 25 | |
| 26 | template <class BaseTAI> |
| 27 | struct SPUTargetAsmInfo : public BaseTAI { |
Chris Lattner | 8d4a0a3 | 2009-08-02 04:27:24 +0000 | [diff] [blame] | 28 | explicit SPUTargetAsmInfo(const SPUTargetMachine &TM) { |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 29 | /* (unused today) |
| 30 | * const SPUSubtarget *Subtarget = &TM.getSubtarget<SPUSubtarget>(); */ |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 31 | |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 32 | BaseTAI::ZeroDirective = "\t.space\t"; |
| 33 | BaseTAI::SetDirective = "\t.set"; |
| 34 | BaseTAI::Data64bitsDirective = "\t.quad\t"; |
| 35 | BaseTAI::AlignmentIsInBytes = false; |
| 36 | BaseTAI::LCOMMDirective = "\t.lcomm\t"; |
| 37 | BaseTAI::InlineAsmStart = "# InlineAsm Start"; |
| 38 | BaseTAI::InlineAsmEnd = "# InlineAsm End"; |
| 39 | } |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 40 | }; |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 41 | |
Chris Lattner | 8d4a0a3 | 2009-08-02 04:27:24 +0000 | [diff] [blame] | 42 | struct SPULinuxTargetAsmInfo : public SPUTargetAsmInfo<TargetAsmInfo> { |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 43 | explicit SPULinuxTargetAsmInfo(const SPUTargetMachine &TM); |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 44 | }; |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 45 | } // namespace llvm |
| 46 | |
Scott Michel | d03eeaf | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 47 | #endif /* SPUTARGETASMINFO_H */ |