SgStorageModifier::storage_modifier_enum¶
Storage Modifiers (only one value can be specified)
Synopsis¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
enum storage_modifier_enum; Description¶
Storage modifiers are used to specify location or properties of declarations. For example, static variables in functions are stored in global scope, register variables are a hint to store the value in a CPU register (mosty ignored by modern compilers).
Only one value can be specified (at least in C and C++)
Members¶
| Name | Description |
|---|---|
e_unknown | error value |
e_default | default value |
e_extern | extern storage modifier |
e_static | static storage modifier |
e_auto | auto storage value |
e_unspecified | previous (old) default value, not included in C++ grammar definition of storage modifier |
e_register | register storage modifier |
e_mutable | mutable storage modifier |
e_typedef | not used, not included in C++ grammar definition of storage modifier |
e_asm | not used, not included in C++ grammar definition of storage modifier |
e_contiguous | Contiguous array memory-storage attribute |
e_cuda_global | CUDA, in device's global memory |
e_cuda_constant | CUDA, in device's constant memory |
e_cuda_shared | CUDA, in device's shared memory |
e_cuda_dynamic_shared | |
e_cuda_device_memory | CUDA, in device's global memory |
e_cuda_managed | CUDA, memory managed between host and device |
e_cuda_unified | CUDA, unified memory |
e_cuda_pinned | CUDA, in host's page-locked memory |
e_cuda_texture | CUDA, in device's texture memory (read only) |
e_last_modifier | last value (upper bound on range of values, used in error checking) |
Created with MrDocs