14#ifndef LLVM_SUPPORT_VIRTUALOUTPUTCONFIG_H
15#define LLVM_SUPPORT_VIRTUALOUTPUTCONFIG_H
40#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT) \
41 constexpr bool get##NAME() const { return NAME; } \
42 constexpr bool getNo##NAME() const { return !NAME; } \
43 constexpr OutputConfig &set##NAME(bool Value) { \
47 constexpr OutputConfig &set##NAME() { return set##NAME(true); } \
48 constexpr OutputConfig &setNo##NAME() { return set##NAME(false); }
49#include "llvm/Support/VirtualOutputConfig.def"
57 constexpr bool getBinary()
const {
return !getText(); }
67#include
"llvm/Support/VirtualOutputConfig.def"
72#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT) \
73 if (NAME != RHS.NAME) \
75#include "llvm/Support/VirtualOutputConfig.def"
81#define HANDLE_OUTPUT_CONFIG_FLAG(NAME, DEFAULT) bool NAME : 1;
82#include "llvm/Support/VirtualOutputConfig.def"
87raw_ostream &
operator<<(raw_ostream &OS, vfs::OutputConfig Config);
@ DEFAULT
Default weight is used in cases when there is no dedicated execution weight set.
#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()
void print(raw_ostream &OS) const
constexpr OutputConfig & setTextWithCRLF(bool Value)
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...