LLVM 20.0.0git
Macros
CommandFlags.cpp File Reference
#include "llvm/CodeGen/CommandFlags.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/SubtargetFeature.h"
#include "llvm/TargetParser/Triple.h"
#include <optional>

Go to the source code of this file.

Macros

#define CGOPT(TY, NAME)
 
#define CGLIST(TY, NAME)
 
#define CGOPT_EXP(TY, NAME)
 
#define CGBINDOPT(NAME)
 
#define HANDLE_BOOL_ATTR(CL, AttrName)
 

Macro Definition Documentation

◆ CGBINDOPT

#define CGBINDOPT (   NAME)
Value:
do { \
NAME##View = std::addressof(NAME); \
} while (0)

◆ CGLIST

#define CGLIST (   TY,
  NAME 
)
Value:
static cl::list<TY> *NAME##View; \
std::vector<TY> codegen::get##NAME() { \
assert(NAME##View && "RegisterCodeGenFlags not created."); \
return *NAME##View; \
}

Definition at line 39 of file CommandFlags.cpp.

◆ CGOPT

#define CGOPT (   TY,
  NAME 
)
Value:
static cl::opt<TY> *NAME##View; \
TY codegen::get##NAME() { \
assert(NAME##View && "RegisterCodeGenFlags not created."); \
return *NAME##View; \
}

Definition at line 32 of file CommandFlags.cpp.

◆ CGOPT_EXP

#define CGOPT_EXP (   TY,
  NAME 
)
Value:
CGOPT(TY, NAME) \
std::optional<TY> codegen::getExplicit##NAME() { \
if (NAME##View->getNumOccurrences()) { \
TY res = *NAME##View; \
return res; \
} \
return std::nullopt; \
}
#define CGOPT(TY, NAME)

Definition at line 47 of file CommandFlags.cpp.

◆ HANDLE_BOOL_ATTR

#define HANDLE_BOOL_ATTR (   CL,
  AttrName 
)
Value:
do { \
if (CL->getNumOccurrences() > 0 && !F.hasFnAttribute(AttrName)) \
renderBoolStringAttr(NewAttrs, AttrName, *CL); \
} while (0)
#define F(x, y, z)
Definition: MD5.cpp:55

Definition at line 658 of file CommandFlags.cpp.