2007-12-05 01:24:05 +00:00
|
|
|
//===-- SPUTargetAsmInfo.cpp - Cell SPU asm properties ----------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the SPUTargetAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "SPUTargetAsmInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
2009-08-02 04:44:33 +00:00
|
|
|
SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo() {
|
|
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
SetDirective = "\t.set";
|
|
|
|
Data64bitsDirective = "\t.quad\t";
|
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
LCOMMDirective = "\t.lcomm\t";
|
|
|
|
InlineAsmStart = "# InlineAsm Start";
|
|
|
|
InlineAsmEnd = "# InlineAsm End";
|
|
|
|
|
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
|
|
|
|
2009-01-26 22:33:37 +00:00
|
|
|
// Has leb128, .loc and .file
|
|
|
|
HasLEB128 = true;
|
|
|
|
HasDotLocAndDotFile = true;
|
|
|
|
|
|
|
|
SupportsDebugInformation = true;
|
|
|
|
NeedsSet = true;
|
|
|
|
|
|
|
|
// Exception handling is not supported on CellSPU (think about it: you only
|
|
|
|
// have 256K for code+data. Would you support exception handling?)
|
|
|
|
SupportsExceptionHandling = false;
|
2007-12-05 01:24:05 +00:00
|
|
|
}
|
2008-11-07 04:36:25 +00:00
|
|
|
|