change TLS_ADDR lowering to lower to a real mem operand, instead of matching as
[oota-llvm.git] / lib / Target / XCore / XCoreTargetAsmInfo.h
1 //=====-- XCoreTargetAsmInfo.h - XCore asm properties ---------*- C++ -*--====//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the XCoreTargetAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef XCORETARGETASMINFO_H
15 #define XCORETARGETASMINFO_H
16
17 #include "llvm/Target/ELFTargetAsmInfo.h"
18
19 namespace llvm {
20
21   // Forward declarations.
22   class XCoreTargetMachine;
23   class XCoreSubtarget;
24
25   class XCoreTargetAsmInfo : public ELFTargetAsmInfo {
26   private:
27     const XCoreSubtarget *Subtarget;
28   public:
29     explicit XCoreTargetAsmInfo(const XCoreTargetMachine &TM);
30     
31     virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
32     virtual std::string printSectionFlags(unsigned flags) const;
33     const Section* MergeableConstSection(const GlobalVariable *GV) const;
34     inline const Section* MergeableConstSection(const Type *Ty) const;
35     const Section* MergeableStringSection(const GlobalVariable *GV) const;
36     virtual const Section*
37     SelectSectionForMachineConst(const Type *Ty) const;
38     virtual unsigned
39     SectionFlagsForGlobal(const GlobalValue *GV = NULL,
40                           const char* name = NULL) const;
41   };
42
43 } // namespace llvm
44
45 #endif