clang 18.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 |
namespace | clang::interp |
Macros | |
#define | TYPE_SWITCH_CASE(Name, B) case Name: { using T = PrimConv<Name>::T; B; break; } |
Helper macro to simplify type switches. | |
#define | TYPE_SWITCH(Expr, B) |
#define | INT_TYPE_SWITCH(Expr, B) |
#define | COMPOSITE_TYPE_SWITCH(Expr, B, D) |
Enumerations | |
enum | clang::interp::PrimType : unsigned { clang::interp::PT_Sint8 , clang::interp::PT_Uint8 , clang::interp::PT_Sint16 , clang::interp::PT_Uint16 , clang::interp::PT_Sint32 , clang::interp::PT_Uint32 , clang::interp::PT_Sint64 , clang::interp::PT_Uint64 , clang::interp::PT_IntAP , clang::interp::PT_IntAPS , clang::interp::PT_Bool , clang::interp::PT_Float , clang::interp::PT_Ptr , clang::interp::PT_FnPtr } |
Enumeration of the primitive types of the VM. More... | |
enum class | clang::interp::CastKind : uint8_t { clang::interp::Reinterpret } |
Functions | |
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 148 of file PrimType.h.
#define INT_TYPE_SWITCH | ( | Expr, | |
B | |||
) |
Definition at line 129 of file PrimType.h.
#define TYPE_SWITCH | ( | Expr, | |
B | |||
) |
Definition at line 109 of file PrimType.h.
#define TYPE_SWITCH_CASE | ( | Name, | |
B | |||
) | case Name: { using T = PrimConv<Name>::T; B; break; } |
Helper macro to simplify type switches.
The macro implicitly exposes a type T in the scope of the inner block.
Definition at line 107 of file PrimType.h.