LLVM 17.0.0git
Classes | Macros | Functions | Variables
COFFDirectiveParser.cpp File Reference
#include "COFFDirectiveParser.h"
#include <array>
#include "COFFOptions.inc"

Go to the source code of this file.

Classes

class  COFFOptTable
 

Macros

#define DEBUG_TYPE   "jitlink"
 
#define PREFIX(NAME, VALUE)
 
#define PREFIX_UNION(VALUES)   VALUES
 
#define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X7, X8, X9, X10, X11, X12)
 

Functions

static constexpr const ArrayRef< StringLiteralPrefixTable (PrefixTable_init, std::size(PrefixTable_init) - 1)
 

Variables

static constexpr const StringLiteral PrefixTable_init []
 
static constexpr opt::OptTable::Info infoTable []
 
static COFFOptTable optTable
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "jitlink"

Definition at line 20 of file COFFDirectiveParser.cpp.

◆ OPTION

#define OPTION (   X1,
  X2,
  ID,
  KIND,
  GROUP,
  ALIAS,
  X7,
  X8,
  X9,
  X10,
  X11,
  X12 
)
Value:
{X1, \
X2, \
X10, \
X11, \
COFF_OPT_##ID, \
opt::Option::KIND##Class, \
X9, \
X8, \
COFF_OPT_##GROUP, \
COFF_OPT_##ALIAS, \
X7, \
X12},
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition: CallingConv.h:24

◆ PREFIX

#define PREFIX (   NAME,
  VALUE 
)
Value:
static constexpr StringLiteral NAME##_init[] = VALUE; \
static constexpr ArrayRef<StringLiteral> NAME(NAME##_init, \
std::size(NAME##_init) - 1);
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
Definition: StringRef.h:851

Definition at line 23 of file COFFDirectiveParser.cpp.

◆ PREFIX_UNION

#define PREFIX_UNION (   VALUES)    VALUES

Function Documentation

◆ PrefixTable()

static constexpr const ArrayRef< StringLiteral > PrefixTable ( PrefixTable_init  ,
std::size(PrefixTable_init) -  1 
)
staticconstexpr

Variable Documentation

◆ infoTable

constexpr opt::OptTable::Info infoTable[]
staticconstexpr
Initial value:
= {
#define OPTION(X1, X2, ID, KIND, GROUP, ALIAS, X7, X8, X9, X10, X11, X12)
}

Definition at line 39 of file COFFDirectiveParser.cpp.

◆ optTable

COFFOptTable optTable
static

Definition at line 62 of file COFFDirectiveParser.cpp.

Referenced by llvm::jitlink::COFFDirectiveParser::parse().

◆ PrefixTable_init

constexpr const StringLiteral PrefixTable_init[]
staticconstexpr
Initial value:
=
#define PREFIX_UNION(VALUES)

Definition at line 30 of file COFFDirectiveParser.cpp.