14#ifndef LLVM_SUPPORT_VIRTUALOUTPUTCONFIG_H
15#define LLVM_SUPPORT_VIRTUALOUTPUTCONFIG_H
42#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT) \
43 constexpr bool get##NAME() const { return NAME; } \
44 constexpr bool getNo##NAME() const { return !NAME; } \
45 constexpr OutputConfig &set##NAME(bool Value) { \
49 constexpr OutputConfig &set##NAME() { return set##NAME(true); } \
50 constexpr OutputConfig &setNo##NAME() { return set##NAME(false); }
51#include "llvm/Support/VirtualOutputConfig.def"
59 constexpr bool getBinary()
const {
return !getText(); }
69#include
"llvm/Support/VirtualOutputConfig.def"
74#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT) \
75 if (NAME != RHS.NAME) \
77#include "llvm/Support/VirtualOutputConfig.def"
83#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT) bool NAME : 1;
84#include "llvm/Support/VirtualOutputConfig.def"
90 vfs::OutputConfig Config);
@ DEFAULT
Default weight is used in cases when there is no dedicated execution weight set.
#define LLVM_ABI_FOR_TEST
#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT)
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
Full configuration for an output for use by the OutputBackend.
bool operator==(OutputConfig RHS) const
constexpr bool getTextWithCRLF() const
constexpr OutputConfig & setBinary()
LLVM_ABI_FOR_TEST void print(raw_ostream &OS) const
constexpr OutputConfig & setTextWithCRLF(bool Value)
LLVM_ABI_FOR_TEST OutputConfig & setOpenFlags(const sys::fs::OpenFlags &Flags)
Updates Text and CRLF flags based on sys::fs::OF_Text and sys::fs::OF_CRLF in Flags.
constexpr bool getBinary() const
constexpr OutputConfig & setTextWithCRLF()
bool operator!=(OutputConfig RHS) const
Unused and empty base class to allow OutputConfig constructor to be constexpr, with commas before eve...