Mercurial > hg > CbC > CbC_llvm
comparison lib/Target/Sparc/SparcSubtarget.h @ 33:e4204d083e25 LLVM3.5
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 54457678186b |
comparison
equal
deleted
inserted
replaced
1:f783a2dd24b1 | 33:e4204d083e25 |
---|---|
43 /// ParseSubtargetFeatures - Parses features string setting specified | 43 /// ParseSubtargetFeatures - Parses features string setting specified |
44 /// subtarget options. Definition of function is auto generated by tblgen. | 44 /// subtarget options. Definition of function is auto generated by tblgen. |
45 void ParseSubtargetFeatures(StringRef CPU, StringRef FS); | 45 void ParseSubtargetFeatures(StringRef CPU, StringRef FS); |
46 | 46 |
47 bool is64Bit() const { return Is64Bit; } | 47 bool is64Bit() const { return Is64Bit; } |
48 std::string getDataLayout() const { | |
49 const char *p; | |
50 if (is64Bit()) { | |
51 p = "E-p:64:64:64-i64:64:64-f64:64:64-f128:128:128-n32:64"; | |
52 } else { | |
53 p = "E-p:32:32:32-i64:64:64-f64:64:64-f128:64:64-n32"; | |
54 } | |
55 return std::string(p); | |
56 } | |
57 | 48 |
58 /// The 64-bit ABI uses biased stack and frame pointers, so the stack frame | 49 /// The 64-bit ABI uses biased stack and frame pointers, so the stack frame |
59 /// of the current function is the area from [%sp+BIAS] to [%fp+BIAS]. | 50 /// of the current function is the area from [%sp+BIAS] to [%fp+BIAS]. |
60 int64_t getStackPointerBias() const { | 51 int64_t getStackPointerBias() const { |
61 return is64Bit() ? 2047 : 0; | 52 return is64Bit() ? 2047 : 0; |