llvm.org GIT mirror llvm / 869eca1
Target/PPC: Add a TargetTriple field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129809 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6969 , HasSTFIWX(false)
7070 , HasLazyResolverStubs(false)
7171 , IsJITCodeModel(false)
72 , DarwinVers(0) {
72 , DarwinVers(0)
73 , TargetTriple(TT) {
7374
7475 // Determine default and user specified characteristics
7576 std::string CPU = "generic";
1313 #ifndef POWERPCSUBTARGET_H
1414 #define POWERPCSUBTARGET_H
1515
16 #include "llvm/ADT/Triple.h"
1617 #include "llvm/Target/TargetInstrItineraries.h"
1718 #include "llvm/Target/TargetSubtarget.h"
1819
6768 /// DarwinVers - Nonzero if this is a darwin platform. Otherwise, the numeric
6869 /// version of the platform, e.g. 8 = 10.4 (Tiger), 9 = 10.5 (Leopard), etc.
6970 unsigned char DarwinVers; // Is any darwin-ppc platform.
71
72 /// TargetTriple - What processor and OS we're targeting.
73 Triple TargetTriple;
74
7075 public:
7176 /// This constructor initializes the data members to match that
7277 /// of the specified triple.
133138 bool hasAltivec() const { return HasAltivec; }
134139 bool isGigaProcessor() const { return IsGigaProcessor; }
135140
141 const Triple &getTargetTriple() const { return TargetTriple; }
142
136143 /// isDarwin - True if this is any darwin platform.
137144 bool isDarwin() const { return DarwinVers != 0; }
138145 /// isDarwin - True if this is darwin9 (leopard, 10.5) or above.