gem5  v21.2.1.1
Macros
compiler.hh File Reference
#include <memory>
#include "config/have_deprecated_namespace.hh"

Go to the source code of this file.

Macros

#define GEM5_CLASS_VAR_USED
 
#define M5_VAR_USED   GEM5_VAR_USED
 
#define M5_NODISCARD   GEM5_NO_DISCARD
 
#define M5_FALLTHROUGH   GEM5_FALLTHROUGH
 
#define M5_ATTR_PACKED   GEM5_PACKED
 
#define M5_NO_INLINE   GEM5_NO_INLINE
 
#define M5_PUBLIC   GEM5_PUBLIC
 
#define M5_LOCAL   GEM5_LOCAL
 
#define M5_WEAK   GEM5_WEAK
 
#define M5_ALIGNED(x)   GEM5_ALIGNED(x)
 
#define M5_UNREACHABLE   GEM5_UNREACHABLE
 
#define M5_LIKELY(x)   GEM5_LIKELY(x)
 
#define M5_UNLIKELY(x)   GEM5_UNLIKELY(x)
 
#define M5_FOR_EACH_IN_PACK(...)   GEM5_FOR_EACH_IN_PACK(__VA_ARGS__)
 
#define M5_CLASS_VAR_USED   GEM5_CLASS_VAR_USED
 
#define GEM5_FALLTHROUGH
 
#define GEM5_DEPRECATED(message)
 
#define GEM5_DEPRECATED_ENUM_VAL(message)
 
#define GEM5_NO_DISCARD   [[nodiscard]]
 
#define GEM5_VAR_USED   [[maybe_unused]]
 

Macro Definition Documentation

◆ GEM5_CLASS_VAR_USED

#define GEM5_CLASS_VAR_USED

Definition at line 141 of file compiler.hh.

◆ GEM5_DEPRECATED

#define GEM5_DEPRECATED (   message)
Value:
[[deprecated(message " The GEM5_DEPRECATED macro is also deprecated, "\
"please use the [[deprecated()]] attribute directly.")]]

Definition at line 163 of file compiler.hh.

◆ GEM5_DEPRECATED_ENUM_VAL

#define GEM5_DEPRECATED_ENUM_VAL (   message)
Value:
[[deprecated(message " The GEM5_DEPRECATED_ENUM_VAL macro is also "\
"deprecated, please use the [[deprecated()]] attribute "\
"directly.")]]

Definition at line 166 of file compiler.hh.

◆ GEM5_FALLTHROUGH

#define GEM5_FALLTHROUGH
Value:
GEM5_DEPRECATED_MACRO_STMT(GEM5_FALLTHROUGH,,\
"Please use the [[fallthrough]] attribute directly."); [[fallthrough]]

Definition at line 161 of file compiler.hh.

◆ GEM5_NO_DISCARD

#define GEM5_NO_DISCARD   [[nodiscard]]

Definition at line 173 of file compiler.hh.

◆ GEM5_VAR_USED

#define GEM5_VAR_USED   [[maybe_unused]]

Definition at line 174 of file compiler.hh.

◆ M5_ALIGNED

#define M5_ALIGNED (   x)    GEM5_ALIGNED(x)

Definition at line 153 of file compiler.hh.

◆ M5_ATTR_PACKED

#define M5_ATTR_PACKED   GEM5_PACKED

Definition at line 148 of file compiler.hh.

◆ M5_CLASS_VAR_USED

#define M5_CLASS_VAR_USED   GEM5_CLASS_VAR_USED

Definition at line 158 of file compiler.hh.

◆ M5_FALLTHROUGH

#define M5_FALLTHROUGH   GEM5_FALLTHROUGH

Definition at line 147 of file compiler.hh.

◆ M5_FOR_EACH_IN_PACK

#define M5_FOR_EACH_IN_PACK (   ...)    GEM5_FOR_EACH_IN_PACK(__VA_ARGS__)

Definition at line 157 of file compiler.hh.

◆ M5_LIKELY

#define M5_LIKELY (   x)    GEM5_LIKELY(x)

Definition at line 155 of file compiler.hh.

◆ M5_LOCAL

#define M5_LOCAL   GEM5_LOCAL

Definition at line 151 of file compiler.hh.

◆ M5_NO_INLINE

#define M5_NO_INLINE   GEM5_NO_INLINE

Definition at line 149 of file compiler.hh.

◆ M5_NODISCARD

#define M5_NODISCARD   GEM5_NO_DISCARD

Definition at line 146 of file compiler.hh.

◆ M5_PUBLIC

#define M5_PUBLIC   GEM5_PUBLIC

Definition at line 150 of file compiler.hh.

◆ M5_UNLIKELY

#define M5_UNLIKELY (   x)    GEM5_UNLIKELY(x)

Definition at line 156 of file compiler.hh.

◆ M5_UNREACHABLE

#define M5_UNREACHABLE   GEM5_UNREACHABLE

Definition at line 154 of file compiler.hh.

◆ M5_VAR_USED

#define M5_VAR_USED   GEM5_VAR_USED

Definition at line 145 of file compiler.hh.

◆ M5_WEAK

#define M5_WEAK   GEM5_WEAK

Definition at line 152 of file compiler.hh.

GEM5_FALLTHROUGH
#define GEM5_FALLTHROUGH
Definition: compiler.hh:161

Generated on Wed May 4 2022 12:14:15 for gem5 by doxygen 1.8.17