OLD | NEW |
---|---|
1 //===-- ARMSubtarget.h - Define Subtarget for the ARM ----------*- C++ -*--===// | 1 //===-- ARMSubtarget.h - Define Subtarget for the ARM ----------*- C++ -*--===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file declares the ARM specific subclass of TargetSubtargetInfo. | 10 // This file declares the ARM specific subclass of TargetSubtargetInfo. |
(...skipping 22 matching lines...) Expand all Loading... | |
33 #include <string> | 33 #include <string> |
34 | 34 |
35 #define GET_SUBTARGETINFO_HEADER | 35 #define GET_SUBTARGETINFO_HEADER |
36 #include "ARMGenSubtargetInfo.inc" | 36 #include "ARMGenSubtargetInfo.inc" |
37 | 37 |
38 namespace llvm { | 38 namespace llvm { |
39 class GlobalValue; | 39 class GlobalValue; |
40 class StringRef; | 40 class StringRef; |
41 class TargetOptions; | 41 class TargetOptions; |
42 | 42 |
43 extern cl::opt<bool> EnableARMDwarfEH; // @LOCALMOD | |
44 | |
43 class ARMSubtarget : public ARMGenSubtargetInfo { | 45 class ARMSubtarget : public ARMGenSubtargetInfo { |
44 protected: | 46 protected: |
45 enum ARMProcFamilyEnum { | 47 enum ARMProcFamilyEnum { |
46 Others, CortexA5, CortexA7, CortexA8, CortexA9, CortexA12, CortexA15, | 48 Others, CortexA5, CortexA7, CortexA8, CortexA9, CortexA12, CortexA15, |
47 CortexR5, Swift, CortexA53, CortexA57, Krait | 49 CortexR5, Swift, CortexA53, CortexA57, Krait |
48 }; | 50 }; |
49 enum ARMProcClassEnum { | 51 enum ARMProcClassEnum { |
50 None, AClass, RClass, MClass | 52 None, AClass, RClass, MClass |
51 }; | 53 }; |
52 | 54 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 } | 378 } |
377 | 379 |
378 // ARM Targets that support EHABI exception handling standard | 380 // ARM Targets that support EHABI exception handling standard |
379 // Darwin uses SjLj. Other targets might need more checks. | 381 // Darwin uses SjLj. Other targets might need more checks. |
380 bool isTargetEHABICompatible() const { | 382 bool isTargetEHABICompatible() const { |
381 return (TargetTriple.getEnvironment() == Triple::EABI || | 383 return (TargetTriple.getEnvironment() == Triple::EABI || |
382 TargetTriple.getEnvironment() == Triple::GNUEABI || | 384 TargetTriple.getEnvironment() == Triple::GNUEABI || |
383 TargetTriple.getEnvironment() == Triple::EABIHF || | 385 TargetTriple.getEnvironment() == Triple::EABIHF || |
384 TargetTriple.getEnvironment() == Triple::GNUEABIHF || | 386 TargetTriple.getEnvironment() == Triple::GNUEABIHF || |
385 TargetTriple.getEnvironment() == Triple::Android) && | 387 TargetTriple.getEnvironment() == Triple::Android) && |
386 !isTargetDarwin() && !isTargetWindows(); | 388 !isTargetDarwin() && !isTargetWindows() && !EnableARMDwarfEH;//@LOCALMOD |
JF
2014/11/19 19:32:05
!isTargetNaCl() ?
Derek Schuff
2014/11/19 19:56:48
isTargetNaCl doesn't work for Non-SFI mode, which
| |
387 } | 389 } |
388 | 390 |
389 bool isTargetHardFloat() const { | 391 bool isTargetHardFloat() const { |
390 // FIXME: this is invalid for WindowsCE | 392 // FIXME: this is invalid for WindowsCE |
391 return TargetTriple.getEnvironment() == Triple::GNUEABIHF || | 393 return TargetTriple.getEnvironment() == Triple::GNUEABIHF || |
392 TargetTriple.getEnvironment() == Triple::EABIHF || | 394 TargetTriple.getEnvironment() == Triple::EABIHF || |
393 isTargetWindows(); | 395 isTargetWindows(); |
394 } | 396 } |
395 bool isTargetAndroid() const { | 397 bool isTargetAndroid() const { |
396 return TargetTriple.getEnvironment() == Triple::Android; | 398 return TargetTriple.getEnvironment() == Triple::Android; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
453 | 455 |
454 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect | 456 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect |
455 /// symbol. | 457 /// symbol. |
456 bool GVIsIndirectSymbol(const GlobalValue *GV, Reloc::Model RelocM) const; | 458 bool GVIsIndirectSymbol(const GlobalValue *GV, Reloc::Model RelocM) const; |
457 | 459 |
458 bool useInlineJumpTables() const {return UseInlineJumpTables;} // @LOCALMOD | 460 bool useInlineJumpTables() const {return UseInlineJumpTables;} // @LOCALMOD |
459 }; | 461 }; |
460 } // End llvm namespace | 462 } // End llvm namespace |
461 | 463 |
462 #endif // ARMSUBTARGET_H | 464 #endif // ARMSUBTARGET_H |
OLD | NEW |