Disable stack coloring with register for now. It's not able to set kill markers.
[llvm/avr.git] / lib / Target / XCore / XCoreTargetMachine.h
blob136cea29e753e90961e77f24f0e79b1fd4b27e6d
1 //===-- XCoreTargetMachine.h - Define TargetMachine for XCore ---*- 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 declares the XCore specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef XCORETARGETMACHINE_H
15 #define XCORETARGETMACHINE_H
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetData.h"
19 #include "XCoreFrameInfo.h"
20 #include "XCoreSubtarget.h"
21 #include "XCoreInstrInfo.h"
22 #include "XCoreISelLowering.h"
24 namespace llvm {
26 class XCoreTargetMachine : public LLVMTargetMachine {
27 XCoreSubtarget Subtarget;
28 const TargetData DataLayout; // Calculates type size & alignment
29 XCoreInstrInfo InstrInfo;
30 XCoreFrameInfo FrameInfo;
31 XCoreTargetLowering TLInfo;
33 protected:
34 virtual const TargetAsmInfo *createTargetAsmInfo() const;
36 public:
37 XCoreTargetMachine(const Target &T, const std::string &TT,
38 const std::string &FS);
40 virtual const XCoreInstrInfo *getInstrInfo() const { return &InstrInfo; }
41 virtual const XCoreFrameInfo *getFrameInfo() const { return &FrameInfo; }
42 virtual const XCoreSubtarget *getSubtargetImpl() const { return &Subtarget; }
43 virtual XCoreTargetLowering *getTargetLowering() const {
44 return const_cast<XCoreTargetLowering*>(&TLInfo);
47 virtual const TargetRegisterInfo *getRegisterInfo() const {
48 return &InstrInfo.getRegisterInfo();
50 virtual const TargetData *getTargetData() const { return &DataLayout; }
52 // Pass Pipeline Configuration
53 virtual bool addInstSelector(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
56 } // end namespace llvm
58 #endif