2007-12-29 20:36:04 +00:00
|
|
|
//===-- SPUTargetAsmInfo.h - Cell SPU asm properties -----------*- C++ -*--===//
|
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
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declaration of the SPUTargetAsmInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2008-11-07 04:36:25 +00:00
|
|
|
#ifndef SPUTARGETASMINFO_H
|
|
|
|
#define SPUTARGETASMINFO_H
|
2007-12-05 01:24:05 +00:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
2008-11-07 04:36:25 +00:00
|
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
|
|
|
#include "SPUTargetMachine.h"
|
|
|
|
#include "SPUSubtarget.h"
|
2007-12-05 01:24:05 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
// Forward declaration.
|
|
|
|
class SPUTargetMachine;
|
2008-11-07 04:36:25 +00:00
|
|
|
|
|
|
|
template <class BaseTAI>
|
|
|
|
struct SPUTargetAsmInfo : public BaseTAI {
|
|
|
|
explicit SPUTargetAsmInfo(const SPUTargetMachine &TM):
|
|
|
|
BaseTAI(TM) {
|
|
|
|
/* (unused today)
|
|
|
|
* const SPUSubtarget *Subtarget = &TM.getSubtarget<SPUSubtarget>(); */
|
2007-12-05 01:24:05 +00:00
|
|
|
|
2008-11-07 04:36:25 +00:00
|
|
|
BaseTAI::ZeroDirective = "\t.space\t";
|
|
|
|
BaseTAI::SetDirective = "\t.set";
|
|
|
|
BaseTAI::Data64bitsDirective = "\t.quad\t";
|
|
|
|
BaseTAI::AlignmentIsInBytes = false;
|
|
|
|
BaseTAI::LCOMMDirective = "\t.lcomm\t";
|
|
|
|
BaseTAI::InlineAsmStart = "# InlineAsm Start";
|
|
|
|
BaseTAI::InlineAsmEnd = "# InlineAsm End";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SPULinuxTargetAsmInfo : public SPUTargetAsmInfo<ELFTargetAsmInfo> {
|
|
|
|
explicit SPULinuxTargetAsmInfo(const SPUTargetMachine &TM);
|
2007-12-05 01:24:05 +00:00
|
|
|
};
|
|
|
|
} // namespace llvm
|
|
|
|
|
2008-11-07 04:36:25 +00:00
|
|
|
#endif /* SPUTARGETASMINFO_H */
|