1 //=====-- PowerPCSubtarget.h - Define Subtarget for the PPC ---*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Nate Begeman and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the X86 specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #ifndef POWERPCSUBTARGET_H
15 #define POWERPCSUBTARGET_H
17 #include "llvm/Target/TargetSubtarget.h"
22 class PPCSubtarget : public TargetSubtarget {
24 /// stackAlignment - The minimum alignment known to hold of the stack frame on
25 /// entry to the function and which must be maintained by every function.
26 unsigned StackAlignment;
28 /// Used by the ISel to turn in optimizations for POWER4-derived architectures
33 /// This constructor initializes the data members to match that
34 /// of the specified module.
36 PPCSubtarget(const Module &M);
38 /// getStackAlignment - Returns the minimum alignment known to hold of the
39 /// stack frame on entry to the function and which must be maintained by every
40 /// function for this subtarget.
41 unsigned getStackAlignment() const { return StackAlignment; }
43 bool isAIX() const { return IsAIX; }
44 bool isDarwin() const { return IsDarwin; }
46 bool isGigaProcessor() const { return IsGigaProcessor; }
48 } // End llvm namespace