LLVM API Documentation

SPUTargetAsmInfo.cpp

Go to the documentation of this file.
00001 //===-- SPUTargetAsmInfo.cpp - Cell SPU asm properties ----------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file contains the declarations of the SPUTargetAsmInfo properties.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "SPUTargetAsmInfo.h"
00015 using namespace llvm;
00016 
00017 SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const Target &T, const StringRef &TT) {
00018   ZeroDirective = "\t.space\t";
00019   SetDirective = "\t.set";
00020   Data64bitsDirective = "\t.quad\t";
00021   AlignmentIsInBytes = false;
00022   LCOMMDirective = "\t.lcomm\t";
00023       
00024   PCSymbol = ".";
00025   CommentString = "#";
00026   GlobalPrefix = "";
00027   PrivateGlobalPrefix = ".L";
00028 
00029   // Has leb128, .loc and .file
00030   HasLEB128 = true;
00031   HasDotLocAndDotFile = true;
00032 
00033   SupportsDebugInformation = true;
00034   NeedsSet = true;
00035 
00036   // Exception handling is not supported on CellSPU (think about it: you only
00037   // have 256K for code+data. Would you support exception handling?)
00038   ExceptionsType = ExceptionHandling::None;
00039 }
00040