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"
24 class PPCSubtarget : public TargetSubtarget {
26 /// stackAlignment - The minimum alignment known to hold of the stack frame on
27 /// entry to the function and which must be maintained by every function.
28 unsigned StackAlignment;
30 /// Used by the ISel to turn in optimizations for POWER4-derived architectures
37 /// This constructor initializes the data members to match that
38 /// of the specified module.
40 PPCSubtarget(const Module &M, const std::string &FS);
42 /// getStackAlignment - Returns the minimum alignment known to hold of the
43 /// stack frame on entry to the function and which must be maintained by every
44 /// function for this subtarget.
45 unsigned getStackAlignment() const { return StackAlignment; }
47 bool hasFSQRT() const { return HasFSQRT; }
49 bool isAIX() const { return IsAIX; }
50 bool isDarwin() const { return IsDarwin; }
51 bool is64Bit() const { return Is64Bit; }
52 bool isGigaProcessor() const { return IsGigaProcessor; }
54 } // End llvm namespace