LLVM  16.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::MCTargetOptions Class Reference

#include "llvm/MC/MCTargetOptions.h"

Collaboration diagram for llvm::MCTargetOptions:
Collaboration graph
[legend]

Public Types

enum  AsmInstrumentation { AsmInstrumentationNone, AsmInstrumentationAddress }
 
enum  DwarfDirectory { DisableDwarfDirectory, EnableDwarfDirectory, DefaultDwarfDirectory }
 

Public Member Functions

 MCTargetOptions ()
 
StringRef getABIName () const
 getABIName - If this returns a non-empty string this represents the textual name of the ABI that we want the backend to use, e.g. More...
 
StringRef getAssemblyLanguage () const
 getAssemblyLanguage - If this returns a non-empty string this represents the textual name of the assembly language that we will use for this target, e.g. More...
 

Public Attributes

bool MCRelaxAll: 1
 
bool MCNoExecStack: 1
 
bool MCFatalWarnings: 1
 
bool MCNoWarn: 1
 
bool MCNoDeprecatedWarn: 1
 
bool MCNoTypeCheck: 1
 
bool MCSaveTempLabels: 1
 
bool MCIncrementalLinkerCompatible: 1
 
bool ShowMCEncoding: 1
 
bool ShowMCInst: 1
 
bool AsmVerbose: 1
 
bool PreserveAsmComments: 1
 Preserve Comments in Assembly. More...
 
bool Dwarf64: 1
 
EmitDwarfUnwindType EmitDwarfUnwind
 
int DwarfVersion = 0
 
DwarfDirectory MCUseDwarfDirectory
 
std::string ABIName
 
std::string AssemblyLanguage
 
std::string SplitDwarfFile
 
const char * Argv0 = nullptr
 
ArrayRef< std::string > CommandLineArgs
 
std::vector< std::string > IASSearchPaths
 Additional paths to search for .include directives when using the integrated assembler. More...
 

Detailed Description

Definition at line 37 of file MCTargetOptions.h.

Member Enumeration Documentation

◆ AsmInstrumentation

Enumerator
AsmInstrumentationNone 
AsmInstrumentationAddress 

Definition at line 39 of file MCTargetOptions.h.

◆ DwarfDirectory

Enumerator
DisableDwarfDirectory 
EnableDwarfDirectory 
DefaultDwarfDirectory 

Definition at line 65 of file MCTargetOptions.h.

Constructor & Destructor Documentation

◆ MCTargetOptions()

MCTargetOptions::MCTargetOptions ( )

Definition at line 14 of file MCTargetOptions.cpp.

Member Function Documentation

◆ getABIName()

StringRef MCTargetOptions::getABIName ( ) const

getABIName - If this returns a non-empty string this represents the textual name of the ABI that we want the backend to use, e.g.

o32, or aapcs-linux.

Definition at line 23 of file MCTargetOptions.cpp.

References ABIName.

Referenced by llvm::LoongArchTargetMachine::getSubtargetImpl(), and llvm::RISCVTargetMachine::getSubtargetImpl().

◆ getAssemblyLanguage()

StringRef MCTargetOptions::getAssemblyLanguage ( ) const

getAssemblyLanguage - If this returns a non-empty string this represents the textual name of the assembly language that we will use for this target, e.g.

masm.

Definition at line 27 of file MCTargetOptions.cpp.

References AssemblyLanguage.

Member Data Documentation

◆ ABIName

std::string llvm::MCTargetOptions::ABIName

Definition at line 76 of file MCTargetOptions.h.

Referenced by getABIName().

◆ Argv0

const char* llvm::MCTargetOptions::Argv0 = nullptr

Definition at line 80 of file MCTargetOptions.h.

◆ AsmVerbose

bool llvm::MCTargetOptions::AsmVerbose

Definition at line 54 of file MCTargetOptions.h.

Referenced by llvm::LLVMTargetMachine::createMCStreamer().

◆ AssemblyLanguage

std::string llvm::MCTargetOptions::AssemblyLanguage

Definition at line 77 of file MCTargetOptions.h.

Referenced by getAssemblyLanguage().

◆ CommandLineArgs

ArrayRef<std::string> llvm::MCTargetOptions::CommandLineArgs

Definition at line 81 of file MCTargetOptions.h.

◆ Dwarf64

bool llvm::MCTargetOptions::Dwarf64

Definition at line 59 of file MCTargetOptions.h.

Referenced by llvm::DwarfDebug::DwarfDebug().

◆ DwarfVersion

int llvm::MCTargetOptions::DwarfVersion = 0

Definition at line 63 of file MCTargetOptions.h.

Referenced by llvm::DwarfDebug::DwarfDebug().

◆ EmitDwarfUnwind

EmitDwarfUnwindType llvm::MCTargetOptions::EmitDwarfUnwind

Definition at line 61 of file MCTargetOptions.h.

Referenced by llvm::LLVMTargetMachine::addPassesToEmitMC().

◆ IASSearchPaths

std::vector<std::string> llvm::MCTargetOptions::IASSearchPaths

Additional paths to search for .include directives when using the integrated assembler.

Definition at line 85 of file MCTargetOptions.h.

◆ MCFatalWarnings

bool llvm::MCTargetOptions::MCFatalWarnings

Definition at line 46 of file MCTargetOptions.h.

◆ MCIncrementalLinkerCompatible

bool llvm::MCTargetOptions::MCIncrementalLinkerCompatible

◆ MCNoDeprecatedWarn

bool llvm::MCTargetOptions::MCNoDeprecatedWarn

Definition at line 48 of file MCTargetOptions.h.

◆ MCNoExecStack

bool llvm::MCTargetOptions::MCNoExecStack

Definition at line 45 of file MCTargetOptions.h.

◆ MCNoTypeCheck

bool llvm::MCTargetOptions::MCNoTypeCheck

Definition at line 49 of file MCTargetOptions.h.

◆ MCNoWarn

bool llvm::MCTargetOptions::MCNoWarn

Definition at line 47 of file MCTargetOptions.h.

◆ MCRelaxAll

bool llvm::MCTargetOptions::MCRelaxAll

◆ MCSaveTempLabels

bool llvm::MCTargetOptions::MCSaveTempLabels

◆ MCUseDwarfDirectory

DwarfDirectory llvm::MCTargetOptions::MCUseDwarfDirectory

Definition at line 74 of file MCTargetOptions.h.

Referenced by llvm::LLVMTargetMachine::createMCStreamer().

◆ PreserveAsmComments

bool llvm::MCTargetOptions::PreserveAsmComments

Preserve Comments in Assembly.

Definition at line 57 of file MCTargetOptions.h.

Referenced by llvm::LLVMTargetMachine::initAsmInfo().

◆ ShowMCEncoding

bool llvm::MCTargetOptions::ShowMCEncoding

◆ ShowMCInst

bool llvm::MCTargetOptions::ShowMCInst

Definition at line 53 of file MCTargetOptions.h.

Referenced by llvm::LLVMTargetMachine::createMCStreamer().

◆ SplitDwarfFile

std::string llvm::MCTargetOptions::SplitDwarfFile

Definition at line 78 of file MCTargetOptions.h.

Referenced by llvm::DwarfDebug::DwarfDebug().


The documentation for this class was generated from the following files: