clang 20.0.0git
|
#include "llvm/Support/raw_ostream.h"
#include <climits>
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
Namespaces | |
namespace | clang |
The JSON file list parser is used to communicate input to InstallAPI. | |
namespace | clang::interp |
Macros | |
#define | TYPE_SWITCH_CASE(Name, B) |
Helper macro to simplify type switches. | |
#define | TYPE_SWITCH(Expr, B) |
#define | INT_TYPE_SWITCH(Expr, B) |
#define | INT_TYPE_SWITCH_NO_BOOL(Expr, B) |
#define | COMPOSITE_TYPE_SWITCH(Expr, B, D) |
Enumerations | |
enum | clang::interp::PrimType : unsigned { clang::interp::PT_Sint8 = 0 , clang::interp::PT_Uint8 = 1 , clang::interp::PT_Sint16 = 2 , clang::interp::PT_Uint16 = 3 , clang::interp::PT_Sint32 = 4 , clang::interp::PT_Uint32 = 5 , clang::interp::PT_Sint64 = 6 , clang::interp::PT_Uint64 = 7 , clang::interp::PT_IntAP = 8 , clang::interp::PT_IntAPS = 9 , clang::interp::PT_Bool = 10 , clang::interp::PT_FixedPoint = 11 , clang::interp::PT_Float = 12 , clang::interp::PT_Ptr = 13 , clang::interp::PT_FnPtr = 14 , clang::interp::PT_MemberPtr = 15 } |
Enumeration of the primitive types of the VM. More... | |
enum class | clang::interp::CastKind : uint8_t { clang::interp::Reinterpret , clang::interp::Atomic } |
Functions | |
constexpr bool | clang::interp::isPtrType (PrimType T) |
llvm::raw_ostream & | clang::interp::operator<< (llvm::raw_ostream &OS, interp::CastKind CK) |
constexpr bool | clang::interp::isIntegralType (PrimType T) |
size_t | clang::interp::primSize (PrimType Type) |
Returns the size of a primitive type in bytes. | |
constexpr size_t | clang::interp::align (size_t Size) |
Aligns a size to the pointer alignment. | |
constexpr bool | clang::interp::aligned (uintptr_t Value) |
static bool | clang::interp::aligned (const void *P) |
#define COMPOSITE_TYPE_SWITCH | ( | Expr, | |
B, | |||
D | |||
) |
Definition at line 212 of file PrimType.h.
#define INT_TYPE_SWITCH | ( | Expr, | |
B | |||
) |
Definition at line 175 of file PrimType.h.
#define INT_TYPE_SWITCH_NO_BOOL | ( | Expr, | |
B | |||
) |
Definition at line 194 of file PrimType.h.
#define TYPE_SWITCH | ( | Expr, | |
B | |||
) |
Definition at line 153 of file PrimType.h.
#define TYPE_SWITCH_CASE | ( | Name, | |
B | |||
) |
Helper macro to simplify type switches.
The macro implicitly exposes a type T in the scope of the inner block.
Definition at line 147 of file PrimType.h.