Disable stack coloring with register for now. It's not able to set kill markers.
[llvm/avr.git] / lib / Target / Blackfin / BlackfinTargetMachine.cpp
blob943ce17d4f7f11906205cd3edaab8a5bbd48e8db
1 //===-- BlackfinTargetMachine.cpp - Define TargetMachine for Blackfin -----===//
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 //
11 //===----------------------------------------------------------------------===//
13 #include "BlackfinTargetMachine.h"
14 #include "Blackfin.h"
15 #include "BlackfinTargetAsmInfo.h"
16 #include "llvm/PassManager.h"
17 #include "llvm/Target/TargetRegistry.h"
19 using namespace llvm;
21 extern "C" void LLVMInitializeBlackfinTarget() {
22 RegisterTargetMachine<BlackfinTargetMachine> X(TheBlackfinTarget);
25 const TargetAsmInfo* BlackfinTargetMachine::createTargetAsmInfo() const {
26 return new BlackfinTargetAsmInfo();
29 BlackfinTargetMachine::BlackfinTargetMachine(const Target &T,
30 const std::string &TT,
31 const std::string &FS)
32 : LLVMTargetMachine(T),
33 DataLayout("e-p:32:32-i64:32-f64:32"),
34 Subtarget(TT, FS),
35 TLInfo(*this),
36 InstrInfo(Subtarget),
37 FrameInfo(TargetFrameInfo::StackGrowsDown, 4, 0) {
40 bool BlackfinTargetMachine::addInstSelector(PassManagerBase &PM,
41 CodeGenOpt::Level OptLevel) {
42 PM.add(createBlackfinISelDag(*this, OptLevel));
43 return false;