OLD | NEW |
1 //===--- TargetInfo.h - Expose information about the target -----*- C++ -*-===// | 1 //===--- TargetInfo.h - Expose information about the target -----*- 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 /// \file | 10 /// \file |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 /// \return False on error. | 771 /// \return False on error. |
772 virtual bool handleTargetFeatures(std::vector<std::string> &Features, | 772 virtual bool handleTargetFeatures(std::vector<std::string> &Features, |
773 DiagnosticsEngine &Diags) { | 773 DiagnosticsEngine &Diags) { |
774 return true; | 774 return true; |
775 } | 775 } |
776 | 776 |
777 /// \brief Determine whether the given target has the given feature. | 777 /// \brief Determine whether the given target has the given feature. |
778 virtual bool hasFeature(StringRef Feature) const { | 778 virtual bool hasFeature(StringRef Feature) const { |
779 return false; | 779 return false; |
780 } | 780 } |
| 781 |
| 782 // @LOCALMOD-START |
| 783 /// Handle arguments passed to LLVM's option processing. |
| 784 /// |
| 785 /// \return False on error. |
| 786 virtual bool handleLLVMArgs(std::vector<std::string> &Args) { |
| 787 return true; |
| 788 } |
| 789 // @LOCALMOD-END |
781 | 790 |
782 // \brief Returns maximal number of args passed in registers. | 791 // \brief Returns maximal number of args passed in registers. |
783 unsigned getRegParmMax() const { | 792 unsigned getRegParmMax() const { |
784 assert(RegParmMax < 7 && "RegParmMax value is larger than AST can handle"); | 793 assert(RegParmMax < 7 && "RegParmMax value is larger than AST can handle"); |
785 return RegParmMax; | 794 return RegParmMax; |
786 } | 795 } |
787 | 796 |
788 /// \brief Whether the target supports thread-local storage. | 797 /// \brief Whether the target supports thread-local storage. |
789 bool isTLSSupported() const { | 798 bool isTLSSupported() const { |
790 return TLSSupported; | 799 return TLSSupported; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 Addl = nullptr; | 893 Addl = nullptr; |
885 NumAddl = 0; | 894 NumAddl = 0; |
886 } | 895 } |
887 virtual bool validateAsmConstraint(const char *&Name, | 896 virtual bool validateAsmConstraint(const char *&Name, |
888 TargetInfo::ConstraintInfo &info) const= 0; | 897 TargetInfo::ConstraintInfo &info) const= 0; |
889 }; | 898 }; |
890 | 899 |
891 } // end namespace clang | 900 } // end namespace clang |
892 | 901 |
893 #endif | 902 #endif |
OLD | NEW |