2009-08-23 04:48:53 +08:00
|
|
|
//===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
|
2007-12-05 09:24:05 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 04:36:04 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-12-05 09:24:05 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-08-23 04:48:53 +08:00
|
|
|
// This file contains the declarations of the SPUMCAsmInfo properties.
|
2007-12-05 09:24:05 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-23 04:48:53 +08:00
|
|
|
#include "SPUMCAsmInfo.h"
|
2007-12-05 09:24:05 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
2010-07-15 06:38:02 +08:00
|
|
|
SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, StringRef TT) {
|
2009-08-02 12:44:33 +08:00
|
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
Data64bitsDirective = "\t.quad\t";
|
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
|
2008-01-29 10:16:57 +08:00
|
|
|
PCSymbol = ".";
|
2007-12-05 09:24:05 +08:00
|
|
|
CommentString = "#";
|
|
|
|
GlobalPrefix = "";
|
|
|
|
PrivateGlobalPrefix = ".L";
|
2008-12-27 12:51:36 +08:00
|
|
|
|
2010-11-18 10:04:25 +08:00
|
|
|
// Has leb128
|
2009-01-27 06:33:37 +08: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 08:09:57 +08:00
|
|
|
ExceptionsType = ExceptionHandling::None;
|
2010-03-06 02:55:36 +08:00
|
|
|
|
|
|
|
// SPU assembly requires ".section" before ".bss"
|
|
|
|
UsesELFSectionDirectiveForBSS = true;
|
2007-12-05 09:24:05 +08:00
|
|
|
}
|
2008-11-07 12:36:25 +08:00
|
|
|
|