blob: f4e568bfef501aae9ae5cda4d9850979966ae492 [file] [log] [blame]
Misha Brukmane05203f2004-06-21 16:55:25 +00001//===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- C++ -*-=//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Misha Brukman38c61502004-08-17 05:08:44 +000010// This file declares the PowerPC-specific subclass of TargetMachine.
Misha Brukmane05203f2004-06-21 16:55:25 +000011//
12//===----------------------------------------------------------------------===//
13
Misha Brukmane67a2122004-08-11 00:11:25 +000014#ifndef POWERPC_TARGETMACHINE_H
15#define POWERPC_TARGETMACHINE_H
Misha Brukmane05203f2004-06-21 16:55:25 +000016
Nate Begeman412602d2004-08-14 22:16:36 +000017#include "PowerPCFrameInfo.h"
Misha Brukmane05203f2004-06-21 16:55:25 +000018#include "llvm/Target/TargetMachine.h"
Misha Brukmane05203f2004-06-21 16:55:25 +000019#include "llvm/PassManager.h"
Misha Brukmane05203f2004-06-21 16:55:25 +000020
21namespace llvm {
22
Misha Brukman7dba17d2004-07-23 16:08:20 +000023class GlobalValue;
Misha Brukmane05203f2004-06-21 16:55:25 +000024class IntrinsicLowering;
25
26class PowerPCTargetMachine : public TargetMachine {
Nate Begeman412602d2004-08-14 22:16:36 +000027 PowerPCFrameInfo FrameInfo;
Misha Brukman7dba17d2004-07-23 16:08:20 +000028
Misha Brukmane67a2122004-08-11 00:11:25 +000029protected:
30 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
Chris Lattnerae670d52004-11-23 05:55:38 +000031 const TargetData &TD, const PowerPCFrameInfo &TFI);
Misha Brukmane05203f2004-06-21 16:55:25 +000032public:
Misha Brukmane05203f2004-06-21 16:55:25 +000033 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
Nate Begemanf17ea0f2004-08-11 07:40:04 +000034
35 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
Misha Brukmane05203f2004-06-21 16:55:25 +000036};
37
38} // end namespace llvm
39
40#endif