Chris Lattner | 621c44d | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 1 | //===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===// |
Scott Michel | 5c93da4 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 081ce94 | 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 | 5c93da4 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Chris Lattner | 621c44d | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 10 | // This file contains the declarations of the SPUMCAsmInfo properties. |
Scott Michel | 5c93da4 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Chris Lattner | 621c44d | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 14 | #include "SPUMCAsmInfo.h" |
Scott Michel | 5c93da4 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 15 | using namespace llvm; |
| 16 | |
Chris Lattner | 50f82ef | 2010-01-20 06:34:14 +0000 | [diff] [blame] | 17 | SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT) { |
Chris Lattner | ccab6f7 | 2009-08-02 04:44:33 +0000 | [diff] [blame] | 18 | ZeroDirective = "\t.space\t"; |
| 19 | SetDirective = "\t.set"; |
| 20 | Data64bitsDirective = "\t.quad\t"; |
| 21 | AlignmentIsInBytes = false; |
Chris Lattner | d70deeb | 2010-01-23 07:47:02 +0000 | [diff] [blame^] | 22 | HasLCOMMDirective = true; |
Chris Lattner | ccab6f7 | 2009-08-02 04:44:33 +0000 | [diff] [blame] | 23 | |
Scott Michel | f9f42e6 | 2008-01-29 02:16:57 +0000 | [diff] [blame] | 24 | PCSymbol = "."; |
Scott Michel | 5c93da4 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 25 | CommentString = "#"; |
| 26 | GlobalPrefix = ""; |
| 27 | PrivateGlobalPrefix = ".L"; |
Scott Michel | 06eabde | 2008-12-27 04:51:36 +0000 | [diff] [blame] | 28 | |
Scott Michel | c899a12 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 29 | // Has leb128, .loc and .file |
| 30 | HasLEB128 = true; |
| 31 | HasDotLocAndDotFile = true; |
| 32 | |
Scott Michel | c899a12 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 33 | SupportsDebugInformation = true; |
| 34 | NeedsSet = true; |
Scott Michel | c899a12 | 2009-01-26 22:33:37 +0000 | [diff] [blame] | 35 | |
| 36 | // Exception handling is not supported on CellSPU (think about it: you only |
| 37 | // have 256K for code+data. Would you support exception handling?) |
Jim Grosbach | 29feb6a | 2009-08-11 00:09:57 +0000 | [diff] [blame] | 38 | ExceptionsType = ExceptionHandling::None; |
Scott Michel | 5c93da4 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 39 | } |
Scott Michel | 1e5a4ba | 2008-11-07 04:36:25 +0000 | [diff] [blame] | 40 | |