mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
78a0e1bd53
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77723 91177308-0d34-0410-b5e6-96231b3b80d8
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
//===-- SPUTargetAsmInfo.h - Cell SPU asm properties -----------*- C++ -*--===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declaration of the SPUTargetAsmInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SPUTARGETASMINFO_H
|
|
#define SPUTARGETASMINFO_H
|
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
|
#include "SPUTargetMachine.h"
|
|
#include "SPUSubtarget.h"
|
|
|
|
namespace llvm {
|
|
|
|
// Forward declaration.
|
|
class SPUTargetMachine;
|
|
|
|
template <class BaseTAI>
|
|
struct SPUTargetAsmInfo : public BaseTAI {
|
|
explicit SPUTargetAsmInfo(const SPUTargetMachine &TM):
|
|
BaseTAI(TM) {
|
|
/* (unused today)
|
|
* const SPUSubtarget *Subtarget = &TM.getSubtarget<SPUSubtarget>(); */
|
|
|
|
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);
|
|
};
|
|
} // namespace llvm
|
|
|
|
#endif /* SPUTARGETASMINFO_H */
|