2009-08-22 20:48:53 +00:00
|
|
|
//===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
|
2007-12-05 01:24:05 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-12-05 01:24:05 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-08-22 20:48:53 +00:00
|
|
|
// This file contains the declarations of the SPUMCAsmInfo properties.
|
2007-12-05 01:24:05 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-22 20:48:53 +00:00
|
|
|
#include "SPUMCAsmInfo.h"
|
2007-12-05 01:24:05 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2010-07-14 22:38:02 +00:00
|
|
|
SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, StringRef TT) {
|
2011-07-15 02:09:41 +00:00
|
|
|
IsLittleEndian = false;
|
|
|
|
|
2009-08-02 04:44:33 +00:00
|
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
Data64bitsDirective = "\t.quad\t";
|
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
|
2008-01-29 02:16:57 +00:00
|
|
|
PCSymbol = ".";
|
2007-12-05 01:24:05 +00:00
|
|
|
CommentString = "#";
|
|
|
|
GlobalPrefix = "";
|
|
|
|
PrivateGlobalPrefix = ".L";
|
2008-12-27 04:51:36 +00:00
|
|
|
|
2010-11-18 02:04:25 +00:00
|
|
|
// Has leb128
|
2009-01-26 22:33:37 +00:00
|
|
|
HasLEB128 = true;
|
|
|
|
|
|
|
|
SupportsDebugInformation = true;
|
|
|
|
|
|
|
|
// Exception handling is not supported on CellSPU (think about it: you only
|
|
|
|
// have 256K for code+data. Would you support exception handling?)
|
2009-08-11 00:09:57 +00:00
|
|
|
ExceptionsType = ExceptionHandling::None;
|
2010-03-05 18:55:36 +00:00
|
|
|
|
|
|
|
// SPU assembly requires ".section" before ".bss"
|
|
|
|
UsesELFSectionDirectiveForBSS = true;
|
2007-12-05 01:24:05 +00:00
|
|
|
}
|
2008-11-07 04:36:25 +00:00
|
|
|
|