diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h b/contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h index e4ee118ed2..638fa04638 100644 --- a/contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h +++ b/contrib/libs/llvm12/include/llvm/MC/MCAsmInfo.h @@ -61,15 +61,15 @@ enum LCOMMType { NoAlignment, ByteAlignment, Log2Alignment }; /// This class is intended to be used as a base class for asm /// properties and features specific to the target. class MCAsmInfo { -public: - /// Assembly character literal syntax types. - enum AsmCharLiteralSyntax { - ACLS_Unknown, /// Unknown; character literals not used by LLVM for this - /// target. - ACLS_SingleQuotePrefix, /// The desired character is prefixed by a single - /// quote, e.g., `'A`. - }; - +public: + /// Assembly character literal syntax types. + enum AsmCharLiteralSyntax { + ACLS_Unknown, /// Unknown; character literals not used by LLVM for this + /// target. + ACLS_SingleQuotePrefix, /// The desired character is prefixed by a single + /// quote, e.g., `'A`. + }; + protected: //===------------------------------------------------------------------===// // Properties to be set by the target writer, used to configure asm printer. @@ -193,9 +193,9 @@ protected: /// alignment is supported. bool UseDotAlignForAlignment = false; - /// True if the target supports LEB128 directives. - bool HasLEB128Directives = true; - + /// True if the target supports LEB128 directives. + bool HasLEB128Directives = true; + //===--- Data Emission Directives -------------------------------------===// /// This should be set to the directive used to get some number of zero (and @@ -219,16 +219,16 @@ protected: /// doesn't support this, it can be set to null. Defaults to "\t.asciz\t" const char *AscizDirective; - /// This directive accepts a comma-separated list of bytes for emission as a - /// string of bytes. For targets that do not support this, it shall be set to - /// null. Defaults to null. - const char *ByteListDirective = nullptr; - - /// Form used for character literals in the assembly syntax. Useful for - /// producing strings as byte lists. If a target does not use or support - /// this, it shall be set to ACLS_Unknown. Defaults to ACLS_Unknown. - AsmCharLiteralSyntax CharacterLiteralSyntax = ACLS_Unknown; - + /// This directive accepts a comma-separated list of bytes for emission as a + /// string of bytes. For targets that do not support this, it shall be set to + /// null. Defaults to null. + const char *ByteListDirective = nullptr; + + /// Form used for character literals in the assembly syntax. Useful for + /// producing strings as byte lists. If a target does not use or support + /// this, it shall be set to ACLS_Unknown. Defaults to ACLS_Unknown. + AsmCharLiteralSyntax CharacterLiteralSyntax = ACLS_Unknown; + /// These directives are used to output some unit of integer data to the /// current section. If a data directive is set to null, smaller data /// directives will be used to emit the large sizes. Defaults to "\t.byte\t", @@ -238,9 +238,9 @@ protected: const char *Data32bitsDirective; const char *Data64bitsDirective; - /// True if data directives support signed values - bool SupportsSignedData = true; - + /// True if data directives support signed values + bool SupportsSignedData = true; + /// If non-null, a directive that is used to emit a word which should be /// relocated as a 64-bit GP-relative offset, e.g. .gpdword on Mips. Defaults /// to nullptr. @@ -413,12 +413,12 @@ protected: //===--- Integrated Assembler Information ----------------------------===// - // Generated object files can use all ELF features supported by GNU ld of - // this binutils version and later. INT_MAX means all features can be used, - // regardless of GNU ld support. The default value is referenced by - // clang/Driver/Options.td. - std::pair<int, int> BinutilsVersion = {2, 26}; - + // Generated object files can use all ELF features supported by GNU ld of + // this binutils version and later. INT_MAX means all features can be used, + // regardless of GNU ld support. The default value is referenced by + // clang/Driver/Options.td. + std::pair<int, int> BinutilsVersion = {2, 26}; + /// Should we use the integrated assembler? /// The integrated assembler should be enabled by default (by the /// constructors) when failing to parse a valid piece of assembly (inline @@ -474,7 +474,7 @@ public: const char *getData16bitsDirective() const { return Data16bitsDirective; } const char *getData32bitsDirective() const { return Data32bitsDirective; } const char *getData64bitsDirective() const { return Data64bitsDirective; } - bool supportsSignedData() const { return SupportsSignedData; } + bool supportsSignedData() const { return SupportsSignedData; } const char *getGPRel64Directive() const { return GPRel64Directive; } const char *getGPRel32Directive() const { return GPRel32Directive; } const char *getDTPRel64Directive() const { return DTPRel64Directive; } @@ -591,18 +591,18 @@ public: return UseDotAlignForAlignment; } - bool hasLEB128Directives() const { return HasLEB128Directives; } - + bool hasLEB128Directives() const { return HasLEB128Directives; } + const char *getZeroDirective() const { return ZeroDirective; } bool doesZeroDirectiveSupportNonZeroValue() const { return ZeroDirectiveSupportsNonZeroValue; } const char *getAsciiDirective() const { return AsciiDirective; } const char *getAscizDirective() const { return AscizDirective; } - const char *getByteListDirective() const { return ByteListDirective; } - AsmCharLiteralSyntax characterLiteralSyntax() const { - return CharacterLiteralSyntax; - } + const char *getByteListDirective() const { return ByteListDirective; } + AsmCharLiteralSyntax characterLiteralSyntax() const { + return CharacterLiteralSyntax; + } bool getAlignmentIsInBytes() const { return AlignmentIsInBytes; } unsigned getTextAlignFillValue() const { return TextAlignFillValue; } const char *getGlobalDirective() const { return GlobalDirective; } @@ -686,17 +686,17 @@ public: return InitialFrameState; } - void setBinutilsVersion(std::pair<int, int> Value) { - BinutilsVersion = Value; - } - + void setBinutilsVersion(std::pair<int, int> Value) { + BinutilsVersion = Value; + } + /// Return true if assembly (inline or otherwise) should be parsed. bool useIntegratedAssembler() const { return UseIntegratedAssembler; } - bool binutilsIsAtLeast(int Major, int Minor) const { - return BinutilsVersion >= std::make_pair(Major, Minor); - } - + bool binutilsIsAtLeast(int Major, int Minor) const { + return BinutilsVersion >= std::make_pair(Major, Minor); + } + /// Set whether assembly (inline or otherwise) should be parsed. virtual void setUseIntegratedAssembler(bool Value) { UseIntegratedAssembler = Value; |