2006-09-07 22:05:02 +00:00
|
|
|
//=====-- ARMTargetAsmInfo.h - ARM 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.
|
2006-09-07 22:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declaration of the ARMTargetAsmInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef ARMTARGETASMINFO_H
|
|
|
|
#define ARMTARGETASMINFO_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
2008-08-07 09:54:23 +00:00
|
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
|
|
|
#include "llvm/Target/DarwinTargetAsmInfo.h"
|
|
|
|
|
2007-05-02 01:02:40 +00:00
|
|
|
#include "ARMSubtarget.h"
|
2006-09-07 22:05:02 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
// Forward declaration.
|
|
|
|
class ARMTargetMachine;
|
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
struct ARMTargetAsmInfo : public virtual TargetAsmInfo {
|
2007-09-25 20:27:06 +00:00
|
|
|
explicit ARMTargetAsmInfo(const ARMTargetMachine &TM);
|
2007-04-23 20:04:35 +00:00
|
|
|
|
2007-05-02 01:02:40 +00:00
|
|
|
const ARMSubtarget *Subtarget;
|
2007-04-29 19:17:45 +00:00
|
|
|
|
|
|
|
virtual unsigned getInlineAsmLength(const char *Str) const;
|
2007-05-02 01:02:40 +00:00
|
|
|
unsigned countArguments(const char *p) const;
|
|
|
|
unsigned countString(const char *p) const;
|
2006-09-07 22:05:02 +00:00
|
|
|
};
|
|
|
|
|
2008-08-07 09:54:23 +00:00
|
|
|
struct ARMDarwinTargetAsmInfo : public virtual ARMTargetAsmInfo,
|
|
|
|
public virtual DarwinTargetAsmInfo {
|
|
|
|
explicit ARMDarwinTargetAsmInfo(const ARMTargetMachine &TM);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ARMELFTargetAsmInfo : public virtual ARMTargetAsmInfo,
|
|
|
|
public virtual ELFTargetAsmInfo {
|
|
|
|
explicit ARMELFTargetAsmInfo(const ARMTargetMachine &TM);
|
|
|
|
};
|
2006-09-07 22:05:02 +00:00
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|