LLVM: lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

16

17using namespace llvm;

18

30

36

38

39

40

47

48

50

51

54

58

61}

62

69

73

74

75 if (STI->hasFeature(AMDGPU::FeatureNSAEncoding))

76 return 20;

77

78

79 if (STI->hasFeature(AMDGPU::FeatureGFX950Insts) ||

80 STI->hasFeature(AMDGPU::FeatureGFX1250Insts))

81 return 16;

82

83

84 if (STI->hasFeature(AMDGPU::FeatureVOP3Literal))

85 return 12;

86

87 return 8;

88}

const MCAsmInfo::AtSpecifier atSpecifiers[]

Definition AMDGPUMCAsmInfo.cpp:19

Provides AMDGPU specific target descriptions.

unsigned getMaxInstLength(const MCSubtargetInfo *STI) const override

Returns the maximum possible encoded instruction size in bytes.

Definition AMDGPUMCAsmInfo.cpp:70

AMDGPUMCAsmInfo(const Triple &TT, const MCTargetOptions &Options)

Definition AMDGPUMCAsmInfo.cpp:31

bool shouldOmitSectionDirective(StringRef SectionName) const override

Return true if the .section directive should be omitted when emitting SectionName.

Definition AMDGPUMCAsmInfo.cpp:63

unsigned MinInstAlignment

Every possible instruction length is a multiple of this value.

bool HasNoDeadStrip

True if this target supports the MachO .no_dead_strip directive.

void initializeAtSpecifiers(ArrayRef< AtSpecifier >)

bool UseIntegratedAssembler

Should we use the integrated assembler?

bool UsesSetToEquateSymbol

Use .set instead of = to equate a symbol to an expression.

unsigned MaxInstLength

This is the maximum possible length of an instruction, which is needed to compute the size of an inli...

const char * InlineAsmStart

If these are nonempty, they contain a directive to emit before and after an inline assembly statement...

bool UsesELFSectionDirectiveForBSS

This is true if this target uses ELF '.section' directive before the '.bss' one.

bool SupportsDebugInformation

True if target supports emission of debugging information.

bool StackGrowsUp

True if target stack grow up. Default is false.

const char * InlineAsmEnd

const char * SeparatorString

This string, if specified, is used to separate instructions from each other when on the same line.

virtual bool shouldOmitSectionDirective(StringRef SectionName) const

Return true if the .section directive should be omitted when emitting SectionName.

bool UsesCFIWithoutEH

True if target uses CFI unwind information for other purposes than EH (debugging / sanitizers) when E...

bool HasSingleParameterDotFile

True if the target has a single parameter .file directive, this is true for ELF targets.

bool COMMDirectiveAlignmentIsInBytes

True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n).

bool DwarfRegNumForCFI

True if dwarf register numbers are printed instead of symbolic register names in ....

unsigned CodePointerSize

Code pointer size in bytes. Default is 4.

StringRef CommentString

This indicates the comment string used by the assembler.

Generic base class for all target subtargets.

bool hasFeature(unsigned Feature) const

const Triple & getTargetTriple() const

StringRef - Represent a constant reference to a string, i.e.

Triple - Helper class for working with autoconf configuration names.

ArchType getArch() const

Get the parsed architecture type of this triple.

This is an optimization pass for GlobalISel generic memory operations.