Project Alice
Loading...
Searching...
No Matches
Target information
Collaboration diagram for Target information:

Macros

#define LLVM_TARGET(TargetName)    void LLVMInitialize##TargetName##TargetInfo(void);
 
#define LLVM_TARGET(TargetName)   void LLVMInitialize##TargetName##Target(void);
 
#define LLVM_TARGET(TargetName)    void LLVMInitialize##TargetName##TargetMC(void);
 
#define LLVM_TARGET(TargetName)   LLVMInitialize##TargetName##TargetInfo();
 
#define LLVM_TARGET(TargetName)   LLVMInitialize##TargetName##Target();
 
#define LLVM_TARGET(TargetName)   LLVMInitialize##TargetName##TargetMC();
 
#define LLVM_ASM_PRINTER(TargetName)    void LLVMInitialize##TargetName##AsmPrinter(void);
 
#define LLVM_ASM_PRINTER(TargetName)   LLVMInitialize##TargetName##AsmPrinter();
 
#define LLVM_ASM_PARSER(TargetName)    void LLVMInitialize##TargetName##AsmParser(void);
 
#define LLVM_ASM_PARSER(TargetName)   LLVMInitialize##TargetName##AsmParser();
 
#define LLVM_DISASSEMBLER(TargetName)    void LLVMInitialize##TargetName##Disassembler(void);
 
#define LLVM_DISASSEMBLER(TargetName)    LLVMInitialize##TargetName##Disassembler();
 

Typedefs

typedef struct LLVMOpaqueTargetData * LLVMTargetDataRef
 
typedef struct LLVMOpaqueTargetLibraryInfotData * LLVMTargetLibraryInfoRef
 
typedef struct LLVMOpaqueTargetMachineOptions * LLVMTargetMachineOptionsRef
 
typedef struct LLVMOpaqueTargetMachine * LLVMTargetMachineRef
 
typedef struct LLVMTarget * LLVMTargetRef
 

Enumerations

enum  LLVMByteOrdering { LLVMBigEndian , LLVMLittleEndian }
 
enum  LLVMCodeGenOptLevel { LLVMCodeGenLevelNone , LLVMCodeGenLevelLess , LLVMCodeGenLevelDefault , LLVMCodeGenLevelAggressive }
 
enum  LLVMRelocMode {
  LLVMRelocDefault , LLVMRelocStatic , LLVMRelocPIC , LLVMRelocDynamicNoPic ,
  LLVMRelocROPI , LLVMRelocRWPI , LLVMRelocROPI_RWPI
}
 
enum  LLVMCodeModel {
  LLVMCodeModelDefault , LLVMCodeModelJITDefault , LLVMCodeModelTiny , LLVMCodeModelSmall ,
  LLVMCodeModelKernel , LLVMCodeModelMedium , LLVMCodeModelLarge
}
 
enum  LLVMCodeGenFileType { LLVMAssemblyFile , LLVMObjectFile }
 
enum  LLVMGlobalISelAbortMode { LLVMGlobalISelAbortEnable , LLVMGlobalISelAbortDisable , LLVMGlobalISelAbortDisableWithDiag }
 

Functions

LLVMTargetDataRef LLVMGetModuleDataLayout (LLVMModuleRef M)
 
void LLVMSetModuleDataLayout (LLVMModuleRef M, LLVMTargetDataRef DL)
 
LLVMTargetDataRef LLVMCreateTargetData (const char *StringRep)
 
void LLVMDisposeTargetData (LLVMTargetDataRef TD)
 
void LLVMAddTargetLibraryInfo (LLVMTargetLibraryInfoRef TLI, LLVMPassManagerRef PM)
 
char * LLVMCopyStringRepOfTargetData (LLVMTargetDataRef TD)
 
enum LLVMByteOrdering LLVMByteOrder (LLVMTargetDataRef TD)
 
unsigned LLVMPointerSize (LLVMTargetDataRef TD)
 
unsigned LLVMPointerSizeForAS (LLVMTargetDataRef TD, unsigned AS)
 
LLVMTypeRef LLVMIntPtrType (LLVMTargetDataRef TD)
 
LLVMTypeRef LLVMIntPtrTypeForAS (LLVMTargetDataRef TD, unsigned AS)
 
LLVMTypeRef LLVMIntPtrTypeInContext (LLVMContextRef C, LLVMTargetDataRef TD)
 
LLVMTypeRef LLVMIntPtrTypeForASInContext (LLVMContextRef C, LLVMTargetDataRef TD, unsigned AS)
 
unsigned long long LLVMSizeOfTypeInBits (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 
unsigned long long LLVMStoreSizeOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 
unsigned long long LLVMABISizeOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 
unsigned LLVMABIAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 
unsigned LLVMCallFrameAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 
unsigned LLVMPreferredAlignmentOfType (LLVMTargetDataRef TD, LLVMTypeRef Ty)
 
unsigned LLVMPreferredAlignmentOfGlobal (LLVMTargetDataRef TD, LLVMValueRef GlobalVar)
 
unsigned LLVMElementAtOffset (LLVMTargetDataRef TD, LLVMTypeRef StructTy, unsigned long long Offset)
 
unsigned long long LLVMOffsetOfElement (LLVMTargetDataRef TD, LLVMTypeRef StructTy, unsigned Element)
 
LLVMTargetRef LLVMGetFirstTarget (void)
 
LLVMTargetRef LLVMGetNextTarget (LLVMTargetRef T)
 
LLVMTargetRef LLVMGetTargetFromName (const char *Name)
 
LLVMBool LLVMGetTargetFromTriple (const char *Triple, LLVMTargetRef *T, char **ErrorMessage)
 
const char * LLVMGetTargetName (LLVMTargetRef T)
 
const char * LLVMGetTargetDescription (LLVMTargetRef T)
 
LLVMBool LLVMTargetHasJIT (LLVMTargetRef T)
 
LLVMBool LLVMTargetHasTargetMachine (LLVMTargetRef T)
 
LLVMBool LLVMTargetHasAsmBackend (LLVMTargetRef T)
 
LLVMTargetMachineOptionsRef LLVMCreateTargetMachineOptions (void)
 
void LLVMDisposeTargetMachineOptions (LLVMTargetMachineOptionsRef Options)
 
void LLVMTargetMachineOptionsSetCPU (LLVMTargetMachineOptionsRef Options, const char *CPU)
 
void LLVMTargetMachineOptionsSetFeatures (LLVMTargetMachineOptionsRef Options, const char *Features)
 
void LLVMTargetMachineOptionsSetABI (LLVMTargetMachineOptionsRef Options, const char *ABI)
 
void LLVMTargetMachineOptionsSetCodeGenOptLevel (LLVMTargetMachineOptionsRef Options, LLVMCodeGenOptLevel Level)
 
void LLVMTargetMachineOptionsSetRelocMode (LLVMTargetMachineOptionsRef Options, LLVMRelocMode Reloc)
 
void LLVMTargetMachineOptionsSetCodeModel (LLVMTargetMachineOptionsRef Options, LLVMCodeModel CodeModel)
 
LLVMTargetMachineRef LLVMCreateTargetMachineWithOptions (LLVMTargetRef T, const char *Triple, LLVMTargetMachineOptionsRef Options)
 
LLVMTargetMachineRef LLVMCreateTargetMachine (LLVMTargetRef T, const char *Triple, const char *CPU, const char *Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel)
 
void LLVMDisposeTargetMachine (LLVMTargetMachineRef T)
 
LLVMTargetRef LLVMGetTargetMachineTarget (LLVMTargetMachineRef T)
 
char * LLVMGetTargetMachineTriple (LLVMTargetMachineRef T)
 
char * LLVMGetTargetMachineCPU (LLVMTargetMachineRef T)
 
char * LLVMGetTargetMachineFeatureString (LLVMTargetMachineRef T)
 
LLVMTargetDataRef LLVMCreateTargetDataLayout (LLVMTargetMachineRef T)
 
void LLVMSetTargetMachineAsmVerbosity (LLVMTargetMachineRef T, LLVMBool VerboseAsm)
 
void LLVMSetTargetMachineFastISel (LLVMTargetMachineRef T, LLVMBool Enable)
 
void LLVMSetTargetMachineGlobalISel (LLVMTargetMachineRef T, LLVMBool Enable)
 
void LLVMSetTargetMachineGlobalISelAbort (LLVMTargetMachineRef T, LLVMGlobalISelAbortMode Mode)
 
void LLVMSetTargetMachineMachineOutliner (LLVMTargetMachineRef T, LLVMBool Enable)
 
LLVMBool LLVMTargetMachineEmitToFile (LLVMTargetMachineRef T, LLVMModuleRef M, const char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage)
 
LLVMBool LLVMTargetMachineEmitToMemoryBuffer (LLVMTargetMachineRef T, LLVMModuleRef M, LLVMCodeGenFileType codegen, char **ErrorMessage, LLVMMemoryBufferRef *OutMemBuf)
 
char * LLVMGetDefaultTargetTriple (void)
 
char * LLVMNormalizeTargetTriple (const char *triple)
 
char * LLVMGetHostCPUName (void)
 
char * LLVMGetHostCPUFeatures (void)
 
void LLVMAddAnalysisPasses (LLVMTargetMachineRef T, LLVMPassManagerRef PM)
 

Detailed Description

Macro Definition Documentation

◆ LLVM_ASM_PARSER [1/2]

#define LLVM_ASM_PARSER (   TargetName)     void LLVMInitialize##TargetName##AsmParser(void);

Definition at line 62 of file Target.h.

◆ LLVM_ASM_PARSER [2/2]

#define LLVM_ASM_PARSER (   TargetName)    LLVMInitialize##TargetName##AsmParser();

Definition at line 62 of file Target.h.

◆ LLVM_ASM_PRINTER [1/2]

#define LLVM_ASM_PRINTER (   TargetName)     void LLVMInitialize##TargetName##AsmPrinter(void);

Definition at line 56 of file Target.h.

◆ LLVM_ASM_PRINTER [2/2]

#define LLVM_ASM_PRINTER (   TargetName)    LLVMInitialize##TargetName##AsmPrinter();

Definition at line 56 of file Target.h.

◆ LLVM_DISASSEMBLER [1/2]

#define LLVM_DISASSEMBLER (   TargetName)     void LLVMInitialize##TargetName##Disassembler(void);

Definition at line 68 of file Target.h.

◆ LLVM_DISASSEMBLER [2/2]

#define LLVM_DISASSEMBLER (   TargetName)     LLVMInitialize##TargetName##Disassembler();

Definition at line 68 of file Target.h.

◆ LLVM_TARGET [1/6]

#define LLVM_TARGET (   TargetName)     void LLVMInitialize##TargetName##TargetInfo(void);

Definition at line 50 of file Target.h.

◆ LLVM_TARGET [2/6]

#define LLVM_TARGET (   TargetName)    void LLVMInitialize##TargetName##Target(void);

Definition at line 50 of file Target.h.

◆ LLVM_TARGET [3/6]

#define LLVM_TARGET (   TargetName)     void LLVMInitialize##TargetName##TargetMC(void);

Definition at line 50 of file Target.h.

◆ LLVM_TARGET [4/6]

#define LLVM_TARGET (   TargetName)    LLVMInitialize##TargetName##TargetInfo();

Definition at line 50 of file Target.h.

◆ LLVM_TARGET [5/6]

#define LLVM_TARGET (   TargetName)    LLVMInitialize##TargetName##Target();

Definition at line 50 of file Target.h.

◆ LLVM_TARGET [6/6]

#define LLVM_TARGET (   TargetName)    LLVMInitialize##TargetName##TargetMC();

Definition at line 50 of file Target.h.

Typedef Documentation

◆ LLVMTargetDataRef

typedef struct LLVMOpaqueTargetData* LLVMTargetDataRef

Definition at line 37 of file Target.h.

◆ LLVMTargetLibraryInfoRef

typedef struct LLVMOpaqueTargetLibraryInfotData* LLVMTargetLibraryInfoRef

Definition at line 38 of file Target.h.

◆ LLVMTargetMachineOptionsRef

typedef struct LLVMOpaqueTargetMachineOptions* LLVMTargetMachineOptionsRef

Definition at line 34 of file TargetMachine.h.

◆ LLVMTargetMachineRef

typedef struct LLVMOpaqueTargetMachine* LLVMTargetMachineRef

Definition at line 35 of file TargetMachine.h.

◆ LLVMTargetRef

typedef struct LLVMTarget* LLVMTargetRef

Definition at line 36 of file TargetMachine.h.

Enumeration Type Documentation

◆ LLVMByteOrdering

Enumerator
LLVMBigEndian 
LLVMLittleEndian 

Definition at line 35 of file Target.h.

◆ LLVMCodeGenFileType

Enumerator
LLVMAssemblyFile 
LLVMObjectFile 

Definition at line 65 of file TargetMachine.h.

◆ LLVMCodeGenOptLevel

Enumerator
LLVMCodeGenLevelNone 
LLVMCodeGenLevelLess 
LLVMCodeGenLevelDefault 
LLVMCodeGenLevelAggressive 

Definition at line 38 of file TargetMachine.h.

◆ LLVMCodeModel

Enumerator
LLVMCodeModelDefault 
LLVMCodeModelJITDefault 
LLVMCodeModelTiny 
LLVMCodeModelSmall 
LLVMCodeModelKernel 
LLVMCodeModelMedium 
LLVMCodeModelLarge 

Definition at line 55 of file TargetMachine.h.

◆ LLVMGlobalISelAbortMode

Enumerator
LLVMGlobalISelAbortEnable 
LLVMGlobalISelAbortDisable 
LLVMGlobalISelAbortDisableWithDiag 

Definition at line 70 of file TargetMachine.h.

◆ LLVMRelocMode

Enumerator
LLVMRelocDefault 
LLVMRelocStatic 
LLVMRelocPIC 
LLVMRelocDynamicNoPic 
LLVMRelocROPI 
LLVMRelocRWPI 
LLVMRelocROPI_RWPI 

Definition at line 45 of file TargetMachine.h.

Function Documentation

◆ LLVMABIAlignmentOfType()

unsigned LLVMABIAlignmentOfType ( LLVMTargetDataRef  TD,
LLVMTypeRef  Ty 
)

Computes the ABI alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

◆ LLVMABISizeOfType()

unsigned long long LLVMABISizeOfType ( LLVMTargetDataRef  TD,
LLVMTypeRef  Ty 
)

Computes the ABI size of a type in bytes for a target. See the method llvm::DataLayout::getTypeAllocSize.

◆ LLVMAddAnalysisPasses()

void LLVMAddAnalysisPasses ( LLVMTargetMachineRef  T,
LLVMPassManagerRef  PM 
)

Adds the target-specific analysis passes to the pass manager.

◆ LLVMAddTargetLibraryInfo()

void LLVMAddTargetLibraryInfo ( LLVMTargetLibraryInfoRef  TLI,
LLVMPassManagerRef  PM 
)

Adds target library information to a pass manager. This does not take ownership of the target library info. See the method llvm::PassManagerBase::add.

◆ LLVMByteOrder()

enum LLVMByteOrdering LLVMByteOrder ( LLVMTargetDataRef  TD)

Returns the byte order of a target, either LLVMBigEndian or LLVMLittleEndian. See the method llvm::DataLayout::isLittleEndian.

◆ LLVMCallFrameAlignmentOfType()

unsigned LLVMCallFrameAlignmentOfType ( LLVMTargetDataRef  TD,
LLVMTypeRef  Ty 
)

Computes the call frame alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

◆ LLVMCopyStringRepOfTargetData()

char * LLVMCopyStringRepOfTargetData ( LLVMTargetDataRef  TD)

Converts target data to a target layout string. The string must be disposed with LLVMDisposeMessage. See the constructor llvm::DataLayout::DataLayout.

◆ LLVMCreateTargetData()

LLVMTargetDataRef LLVMCreateTargetData ( const char *  StringRep)

Creates target data from a target layout string. See the constructor llvm::DataLayout::DataLayout.

◆ LLVMCreateTargetDataLayout()

LLVMTargetDataRef LLVMCreateTargetDataLayout ( LLVMTargetMachineRef  T)

Create a DataLayout based on the targetMachine.

Here is the caller graph for this function:

◆ LLVMCreateTargetMachine()

LLVMTargetMachineRef LLVMCreateTargetMachine ( LLVMTargetRef  T,
const char *  Triple,
const char *  CPU,
const char *  Features,
LLVMCodeGenOptLevel  Level,
LLVMRelocMode  Reloc,
LLVMCodeModel  CodeModel 
)

Creates a new llvm::TargetMachine. See llvm::Target::createTargetMachine

Here is the caller graph for this function:

◆ LLVMCreateTargetMachineOptions()

LLVMTargetMachineOptionsRef LLVMCreateTargetMachineOptions ( void  )

Create a new set of options for an llvm::TargetMachine.

The returned option structure must be released with LLVMDisposeTargetMachineOptions() after the call to LLVMCreateTargetMachineWithOptions().

◆ LLVMCreateTargetMachineWithOptions()

LLVMTargetMachineRef LLVMCreateTargetMachineWithOptions ( LLVMTargetRef  T,
const char *  Triple,
LLVMTargetMachineOptionsRef  Options 
)

Create a new llvm::TargetMachine.

Parameters
Tthe target to create a machine for.
Triplea triple describing the target machine.
Optionsadditional configuration (see LLVMCreateTargetMachineOptions()).

◆ LLVMDisposeTargetData()

void LLVMDisposeTargetData ( LLVMTargetDataRef  TD)

Deallocates a TargetData. See the destructor llvm::DataLayout::~DataLayout.

Here is the caller graph for this function:

◆ LLVMDisposeTargetMachine()

void LLVMDisposeTargetMachine ( LLVMTargetMachineRef  T)

Dispose the LLVMTargetMachineRef instance generated by LLVMCreateTargetMachine.

Here is the caller graph for this function:

◆ LLVMDisposeTargetMachineOptions()

void LLVMDisposeTargetMachineOptions ( LLVMTargetMachineOptionsRef  Options)

Dispose of an LLVMTargetMachineOptionsRef instance.

◆ LLVMElementAtOffset()

unsigned LLVMElementAtOffset ( LLVMTargetDataRef  TD,
LLVMTypeRef  StructTy,
unsigned long long  Offset 
)

Computes the structure element that contains the byte offset for a target. See the method llvm::StructLayout::getElementContainingOffset.

◆ LLVMGetDefaultTargetTriple()

char * LLVMGetDefaultTargetTriple ( void  )

Get a triple for the host machine as a string. The result needs to be disposed with LLVMDisposeMessage.

Here is the caller graph for this function:

◆ LLVMGetFirstTarget()

LLVMTargetRef LLVMGetFirstTarget ( void  )

Returns the first llvm::Target in the registered targets list.

Here is the caller graph for this function:

◆ LLVMGetHostCPUFeatures()

char * LLVMGetHostCPUFeatures ( void  )

Get the host CPU's features as a string. The result needs to be disposed with LLVMDisposeMessage.

Here is the caller graph for this function:

◆ LLVMGetHostCPUName()

char * LLVMGetHostCPUName ( void  )

Get the host CPU as a string. The result needs to be disposed with LLVMDisposeMessage.

Here is the caller graph for this function:

◆ LLVMGetModuleDataLayout()

LLVMTargetDataRef LLVMGetModuleDataLayout ( LLVMModuleRef  M)

Obtain the data layout for a module.

See also
Module::getDataLayout()

◆ LLVMGetNextTarget()

LLVMTargetRef LLVMGetNextTarget ( LLVMTargetRef  T)

Returns the next llvm::Target given a previous one (or null if there's none)

◆ LLVMGetTargetDescription()

const char * LLVMGetTargetDescription ( LLVMTargetRef  T)

Returns the description of a target. See llvm::Target::getDescription

◆ LLVMGetTargetFromName()

LLVMTargetRef LLVMGetTargetFromName ( const char *  Name)

Finds the target corresponding to the given name and stores it in T. Returns 0 on success.

◆ LLVMGetTargetFromTriple()

LLVMBool LLVMGetTargetFromTriple ( const char *  Triple,
LLVMTargetRef T,
char **  ErrorMessage 
)

Finds the target corresponding to the given triple and stores it in T. Returns 0 on success. Optionally returns any error in ErrorMessage. Use LLVMDisposeMessage to dispose the message.

◆ LLVMGetTargetMachineCPU()

char * LLVMGetTargetMachineCPU ( LLVMTargetMachineRef  T)

Returns the cpu used creating this target machine. See llvm::TargetMachine::getCPU. The result needs to be disposed with LLVMDisposeMessage.

◆ LLVMGetTargetMachineFeatureString()

char * LLVMGetTargetMachineFeatureString ( LLVMTargetMachineRef  T)

Returns the feature string used creating this target machine. See llvm::TargetMachine::getFeatureString. The result needs to be disposed with LLVMDisposeMessage.

◆ LLVMGetTargetMachineTarget()

LLVMTargetRef LLVMGetTargetMachineTarget ( LLVMTargetMachineRef  T)

Returns the Target used in a TargetMachine

◆ LLVMGetTargetMachineTriple()

char * LLVMGetTargetMachineTriple ( LLVMTargetMachineRef  T)

Returns the triple used creating this target machine. See llvm::TargetMachine::getTriple. The result needs to be disposed with LLVMDisposeMessage.

◆ LLVMGetTargetName()

const char * LLVMGetTargetName ( LLVMTargetRef  T)

Returns the name of a target. See llvm::Target::getName

◆ LLVMIntPtrType()

LLVMTypeRef LLVMIntPtrType ( LLVMTargetDataRef  TD)

Returns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.

◆ LLVMIntPtrTypeForAS()

LLVMTypeRef LLVMIntPtrTypeForAS ( LLVMTargetDataRef  TD,
unsigned  AS 
)

Returns the integer type that is the same size as a pointer on a target. This version allows the address space to be specified. See the method llvm::DataLayout::getIntPtrType.

◆ LLVMIntPtrTypeForASInContext()

LLVMTypeRef LLVMIntPtrTypeForASInContext ( LLVMContextRef  C,
LLVMTargetDataRef  TD,
unsigned  AS 
)

Returns the integer type that is the same size as a pointer on a target. This version allows the address space to be specified. See the method llvm::DataLayout::getIntPtrType.

◆ LLVMIntPtrTypeInContext()

LLVMTypeRef LLVMIntPtrTypeInContext ( LLVMContextRef  C,
LLVMTargetDataRef  TD 
)

Returns the integer type that is the same size as a pointer on a target. See the method llvm::DataLayout::getIntPtrType.

◆ LLVMNormalizeTargetTriple()

char * LLVMNormalizeTargetTriple ( const char *  triple)

Normalize a target triple. The result needs to be disposed with LLVMDisposeMessage.

◆ LLVMOffsetOfElement()

unsigned long long LLVMOffsetOfElement ( LLVMTargetDataRef  TD,
LLVMTypeRef  StructTy,
unsigned  Element 
)

Computes the byte offset of the indexed struct element for a target. See the method llvm::StructLayout::getElementContainingOffset.

◆ LLVMPointerSize()

unsigned LLVMPointerSize ( LLVMTargetDataRef  TD)

Returns the pointer size in bytes for a target. See the method llvm::DataLayout::getPointerSize.

◆ LLVMPointerSizeForAS()

unsigned LLVMPointerSizeForAS ( LLVMTargetDataRef  TD,
unsigned  AS 
)

Returns the pointer size in bytes for a target for a specified address space. See the method llvm::DataLayout::getPointerSize.

◆ LLVMPreferredAlignmentOfGlobal()

unsigned LLVMPreferredAlignmentOfGlobal ( LLVMTargetDataRef  TD,
LLVMValueRef  GlobalVar 
)

Computes the preferred alignment of a global variable in bytes for a target. See the method llvm::DataLayout::getPreferredAlignment.

◆ LLVMPreferredAlignmentOfType()

unsigned LLVMPreferredAlignmentOfType ( LLVMTargetDataRef  TD,
LLVMTypeRef  Ty 
)

Computes the preferred alignment of a type in bytes for a target. See the method llvm::DataLayout::getTypeABISize.

◆ LLVMSetModuleDataLayout()

void LLVMSetModuleDataLayout ( LLVMModuleRef  M,
LLVMTargetDataRef  DL 
)

Set the data layout for a module.

See also
Module::setDataLayout()
Here is the caller graph for this function:

◆ LLVMSetTargetMachineAsmVerbosity()

void LLVMSetTargetMachineAsmVerbosity ( LLVMTargetMachineRef  T,
LLVMBool  VerboseAsm 
)

Set the target machine's ASM verbosity.

◆ LLVMSetTargetMachineFastISel()

void LLVMSetTargetMachineFastISel ( LLVMTargetMachineRef  T,
LLVMBool  Enable 
)

Enable fast-path instruction selection.

◆ LLVMSetTargetMachineGlobalISel()

void LLVMSetTargetMachineGlobalISel ( LLVMTargetMachineRef  T,
LLVMBool  Enable 
)

Enable global instruction selection.

◆ LLVMSetTargetMachineGlobalISelAbort()

void LLVMSetTargetMachineGlobalISelAbort ( LLVMTargetMachineRef  T,
LLVMGlobalISelAbortMode  Mode 
)

Set abort behaviour when global instruction selection fails to lower/select an instruction.

◆ LLVMSetTargetMachineMachineOutliner()

void LLVMSetTargetMachineMachineOutliner ( LLVMTargetMachineRef  T,
LLVMBool  Enable 
)

Enable the MachineOutliner pass.

◆ LLVMSizeOfTypeInBits()

unsigned long long LLVMSizeOfTypeInBits ( LLVMTargetDataRef  TD,
LLVMTypeRef  Ty 
)

Computes the size of a type in bytes for a target. See the method llvm::DataLayout::getTypeSizeInBits.

◆ LLVMStoreSizeOfType()

unsigned long long LLVMStoreSizeOfType ( LLVMTargetDataRef  TD,
LLVMTypeRef  Ty 
)

Computes the storage size of a type in bytes for a target. See the method llvm::DataLayout::getTypeStoreSize.

◆ LLVMTargetHasAsmBackend()

LLVMBool LLVMTargetHasAsmBackend ( LLVMTargetRef  T)

Returns if the target as an ASM backend (required for emitting output)

◆ LLVMTargetHasJIT()

LLVMBool LLVMTargetHasJIT ( LLVMTargetRef  T)

Returns if the target has a JIT

◆ LLVMTargetHasTargetMachine()

LLVMBool LLVMTargetHasTargetMachine ( LLVMTargetRef  T)

Returns if the target has a TargetMachine associated

◆ LLVMTargetMachineEmitToFile()

LLVMBool LLVMTargetMachineEmitToFile ( LLVMTargetMachineRef  T,
LLVMModuleRef  M,
const char *  Filename,
LLVMCodeGenFileType  codegen,
char **  ErrorMessage 
)

Emits an asm or object file for the given module to the filename. This wraps several c++ only classes (among them a file stream). Returns any error in ErrorMessage. Use LLVMDisposeMessage to dispose the message.

◆ LLVMTargetMachineEmitToMemoryBuffer()

LLVMBool LLVMTargetMachineEmitToMemoryBuffer ( LLVMTargetMachineRef  T,
LLVMModuleRef  M,
LLVMCodeGenFileType  codegen,
char **  ErrorMessage,
LLVMMemoryBufferRef OutMemBuf 
)

Compile the LLVM IR stored in M and store the result in OutMemBuf.

◆ LLVMTargetMachineOptionsSetABI()

void LLVMTargetMachineOptionsSetABI ( LLVMTargetMachineOptionsRef  Options,
const char *  ABI 
)

◆ LLVMTargetMachineOptionsSetCodeGenOptLevel()

void LLVMTargetMachineOptionsSetCodeGenOptLevel ( LLVMTargetMachineOptionsRef  Options,
LLVMCodeGenOptLevel  Level 
)

◆ LLVMTargetMachineOptionsSetCodeModel()

void LLVMTargetMachineOptionsSetCodeModel ( LLVMTargetMachineOptionsRef  Options,
LLVMCodeModel  CodeModel 
)

◆ LLVMTargetMachineOptionsSetCPU()

void LLVMTargetMachineOptionsSetCPU ( LLVMTargetMachineOptionsRef  Options,
const char *  CPU 
)

◆ LLVMTargetMachineOptionsSetFeatures()

void LLVMTargetMachineOptionsSetFeatures ( LLVMTargetMachineOptionsRef  Options,
const char *  Features 
)

Set the list of features for the target machine.

Parameters
Featuresa comma-separated list of features.

◆ LLVMTargetMachineOptionsSetRelocMode()

void LLVMTargetMachineOptionsSetRelocMode ( LLVMTargetMachineOptionsRef  Options,
LLVMRelocMode  Reloc 
)