begining alpha subtarget support

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth
2005-09-29 22:54:56 +00:00
parent c7a37a52cd
commit 120ab480ab
7 changed files with 86 additions and 19 deletions

View File

@ -18,6 +18,7 @@
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Support/Debug.h"
#include <iostream>
using namespace llvm;
@ -62,8 +63,11 @@ AlphaTargetMachine::AlphaTargetMachine(const Module &M, IntrinsicLowering *IL,
const std::string &FS)
: TargetMachine("alpha", IL, true),
FrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0),
JITInfo(*this)
{}
JITInfo(*this),
Subtarget(M, FS)
{
DEBUG(std::cerr << "FS is " << FS << "\n");
}
/// addPassesToEmitFile - Add passes to the specified pass manager to implement
/// a static compiler for this target.