blob: f4e568bfef501aae9ae5cda4d9850979966ae492 [file] [log] [blame]
Misha Brukman5dfe3a92004-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 Brukmanf2f8cfb2004-08-17 05:08:44 +000010// This file declares the PowerPC-specific subclass of TargetMachine.
Misha Brukman5dfe3a92004-06-21 16:55:25 +000011//
12//===----------------------------------------------------------------------===//
13
Misha Brukman01458812004-08-11 00:11:25 +000014#ifndef POWERPC_TARGETMACHINE_H
15#define POWERPC_TARGETMACHINE_H
Misha Brukman5dfe3a92004-06-21 16:55:25 +000016
Nate Begemanca068e82004-08-14 22:16:36 +000017#include "PowerPCFrameInfo.h"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000018#include "llvm/Target/TargetMachine.h"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000019#include "llvm/PassManager.h"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000020
21namespace llvm {
22
Misha Brukmane2eceb52004-07-23 16:08:20 +000023class GlobalValue;
Misha Brukman5dfe3a92004-06-21 16:55:25 +000024class IntrinsicLowering;
25
26class PowerPCTargetMachine : public TargetMachine {
Nate Begemanca068e82004-08-14 22:16:36 +000027 PowerPCFrameInfo FrameInfo;
Misha Brukmane2eceb52004-07-23 16:08:20 +000028
Misha Brukman01458812004-08-11 00:11:25 +000029protected:
30 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
Chris Lattner942d7b52004-11-23 05:55:38 +000031 const TargetData &TD, const PowerPCFrameInfo &TFI);
Misha Brukman5dfe3a92004-06-21 16:55:25 +000032public:
Misha Brukman5dfe3a92004-06-21 16:55:25 +000033 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
Nate Begeman7a4fe9b2004-08-11 07:40:04 +000034
35 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
Misha Brukman5dfe3a92004-06-21 16:55:25 +000036};
37
38} // end namespace llvm
39
40#endif