/* C++11: An rvalue reference modifying a member function. The one
subtree is the type which is being referenced. */
DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS,
- /* C++23: A member function with explict object parameter. */
+ /* C++23: A member function with explicit object parameter. */
DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION,
/* A vendor qualifier. The left subtree is the type which is being
qualified, and the right subtree is the name of the
or as a whole via LINKED_LIST_MUTATIVE_OPS_PROTOTYPE for the prototypes, and
LINKED_LIST_MUTATIVE_OPS_DECL for the implementations. */
-/* Append the given node new_ to the exising list.
+/* Append the given node new_ to the existing list.
Precondition: prev and next of new_ must be NULL. */
#define LINKED_LIST_APPEND(LTYPE) LTYPE##_append
unsigned int exp_start;
unsigned int exp_len;
/* Bias added to a "true" exponent to form the biased exponent. It
- is intentionally signed as, otherwize, -exp_bias can turn into a
+ is intentionally signed as, otherwise, -exp_bias can turn into a
very large number (e.g., given the exp_bias of 0x3fff and a 64
bit long, the equation (long)(1 - exp_bias) evaluates to
4294950914) instead of -16382). */
Then, as we set up the binding context to compile a code snippet at
point 3, we may choose to activate c_1, o_0 and p upfront,
declaring and discarding c, c_0 and o, and then reentering the
- funciton scope to declare c_1, o_0 and p; or we can wait for oracle
+ function scope to declare c_1, o_0 and p; or we can wait for oracle
lookups of c, o or p. If c is looked up, and the debugger resolves
c in the scope to c_1, it is expected to enter the function scope
from the top level, declare c, leave it, reenter it, declare c_0,
SYM_KIND, in addition to any other applicable flags, and pass as
NAME a string starting with the two-character mangling for operator
name: "ps" for unary plus, "mL" for multiply and assign, *=; etc.
- Use "cv" for type converstion operators (the target type portion
+ Use "cv" for type conversion operators (the target type portion
may be omitted, as it is taken from the return type in SYM_TYPE).
For operator"", use "li" followed by the identifier (the mangled
name mandates digits specifying the length of the identifier; if
| GOMP_MAP_FLAG_SPECIAL_2
| GOMP_MAP_FLAG_SPECIAL | 0),
/* On a location of a pointer/reference that is assumed to be already mapped
- earlier, store the translated address of the preceeding mapping.
+ earlier, store the translated address of the preceding mapping.
No refcount is bumped by this, and the store is done unconditionally. */
GOMP_MAP_ALWAYS_POINTER = (GOMP_MAP_FLAG_SPECIAL_2
| GOMP_MAP_FLAG_SPECIAL | 1),
/* Target argument index of THREAD_LIMIT. */
#define GOMP_TARGET_ARG_THREAD_LIMIT (2 << 8)
-/* If the value is directly embeded in target argument, it should be a 16-bit
+/* If the value is directly embedded in target argument, it should be a 16-bit
at most and shifted by this many bits. */
#define GOMP_TARGET_ARG_VALUE_SHIFT 16
*/
HSA_AGENT_INFO_FEATURE = 2,
/**
- * @deprecated Query ::HSA_ISA_INFO_MACHINE_MODELS for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_MACHINE_MODELS for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
*/
HSA_AGENT_INFO_MACHINE_MODEL = 3,
/**
- * @deprecated Query ::HSA_ISA_INFO_PROFILES for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_PROFILES for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
HSA_AGENT_INFO_PROFILE = 4,
/**
* @deprecated Query ::HSA_ISA_INFO_DEFAULT_FLOAT_ROUNDING_MODES for a given
- * intruction set architecture supported by the agent instead. If more than
+ * instruction set architecture supported by the agent instead. If more than
* one ISA is supported by the agent, the returned value corresponds to the
* first ISA enumerated by ::hsa_agent_iterate_isas.
*
HSA_AGENT_INFO_DEFAULT_FLOAT_ROUNDING_MODE = 5,
/**
* @deprecated Query ::HSA_ISA_INFO_BASE_PROFILE_DEFAULT_FLOAT_ROUNDING_MODES
- * for a given intruction set architecture supported by the agent instead. If
+ * for a given instruction set architecture supported by the agent instead. If
* more than one ISA is supported by the agent, the returned value corresponds
* to the first ISA enumerated by ::hsa_agent_iterate_isas.
*
*/
HSA_AGENT_INFO_BASE_PROFILE_DEFAULT_FLOAT_ROUNDING_MODES = 23,
/**
- * @deprecated Query ::HSA_ISA_INFO_FAST_F16_OPERATION for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_FAST_F16_OPERATION for a given instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
HSA_AGENT_INFO_FAST_F16_OPERATION = 24,
/**
* @deprecated Query ::HSA_WAVEFRONT_INFO_SIZE for a given wavefront and
- * intruction set architecture supported by the agent instead. If more than
+ * instruction set architecture supported by the agent instead. If more than
* one ISA is supported by the agent, the returned value corresponds to the
* first ISA enumerated by ::hsa_agent_iterate_isas and the first wavefront
* enumerated by ::hsa_isa_iterate_wavefronts for that ISA.
*/
HSA_AGENT_INFO_WAVEFRONT_SIZE = 6,
/**
- * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_DIM for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_DIM for a given instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
*/
HSA_AGENT_INFO_WORKGROUP_MAX_DIM = 7,
/**
- * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_SIZE for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_SIZE for a given instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
*/
HSA_AGENT_INFO_WORKGROUP_MAX_SIZE = 8,
/**
- * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_DIM for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_DIM for a given instruction set
* architecture supported by the agent instead.
*
* Maximum number of work-items of each dimension of a grid. Each maximum must
*/
HSA_AGENT_INFO_GRID_MAX_DIM = 9,
/**
- * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_SIZE for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_SIZE for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
*/
HSA_AGENT_INFO_GRID_MAX_SIZE = 10,
/**
- * @deprecated Query ::HSA_ISA_INFO_FBARRIER_MAX_SIZE for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_FBARRIER_MAX_SIZE for a given instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
} hsa_exception_policy_t;
/**
- * @deprecated Use ::hsa_isa_get_exception_policies for a given intruction set
+ * @deprecated Use ::hsa_isa_get_exception_policies for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, this function uses the first value returned by
* ::hsa_agent_iterate_isas.
/**
* Updates to memory in this region can be performed by a single agent at
* a time. If a different agent in the system is allowed to access the
- * region, the application must explicitely invoke ::hsa_memory_assign_agent
+ * region, the application must explicitly invoke ::hsa_memory_assign_agent
* in order to transfer ownership to that agent for a particular buffer.
*/
HSA_REGION_GLOBAL_FLAG_COARSE_GRAINED = 4
* @brief Change the ownership of a global, coarse-grained buffer.
*
* @details The contents of a coarse-grained buffer are visible to an agent
- * only after ownership has been explicitely transferred to that agent. Once the
+ * only after ownership has been explicitly transferred to that agent. Once the
* operation completes, the previous owner cannot longer access the data in the
* buffer.
*
volatile hsa_signal_value_t** value_ptr);
/**
- * @brief Asyncronous signal handler function type.
+ * @brief Asynchronous signal handler function type.
*
* @details Type definition of callback function to be used with
* hsa_amd_signal_async_handler. This callback is invoked if the associated
* locked memory, then the overlap area is kept locked (i.e. multiple mappings are permitted).
* In this case, the same input @p host_ptr may give different locked @p agent_ptr and when it
* does, they are not necessarily coherent (i.e. accessing either @p agent_ptr is not equivalent).
- * Acesses to the memory via @p agent_ptr have the same access properties as memory allocated from
+ * Accesses to the memory via @p agent_ptr have the same access properties as memory allocated from
* @p pool as determined by ::hsa_amd_memory_pool_get_info and ::hsa_amd_agent_memory_pool_get_info
* (ex. coarse/fine grain, platform atomic support, link info). Physical composition and placement
* of the memory (ex. page size, NUMA binding) is not changed.
* @param[in] alloc Function pointer to an allocator used to allocate the
* @p accessible array. If NULL @p accessible will not be returned.
*
- * @param[out] num_agents_accessible Recieves the count of agents in
+ * @param[out] num_agents_accessible Receives the count of agents in
* @p accessible. If NULL @p accessible will not be returned.
*
- * @param[out] accessible Recieves a pointer to the array, allocated by @p alloc,
+ * @param[out] accessible Receives a pointer to the array, allocated by @p alloc,
* holding the list of agents which may directly access the allocation.
* May be NULL.
*
* @param[in] ptr Pointer to the first byte of an allocation known to ROCr
* with which to associate @p userdata.
*
- * @param[in] userdata Abitrary pointer to associate with the allocation.
+ * @param[in] userdata Arbitrary pointer to associate with the allocation.
*
* @retval HSA_STATUS_SUCCESS @p userdata successfully stored.
*
* @param[in] mapping_agents List of agents to access the shared memory.
* Ignored if @p num_agents is zero.
*
- * @param[out] mapped_ptr Recieves a process local pointer to the shared memory.
+ * @param[out] mapped_ptr Receives a process local pointer to the shared memory.
*
* @retval HSA_STATUS_SUCCESS if memory is successfully imported.
*
*
* @param[in] handle Pointer to the identifier for the shared signal.
*
- * @param[out] signal Recieves a process local signal handle to the shared signal.
+ * @param[out] signal Receives a process local signal handle to the shared signal.
*
* @retval HSA_STATUS_SUCCESS if the signal is successfully imported.
*
} hsa_amd_queue_priority_t;
/**
- * @brief Modifies the dispatch and wavefront scheduling prioirty for a
+ * @brief Modifies the dispatch and wavefront scheduling priority for a
* given compute queue. The default is HSA_AMD_QUEUE_PRIORITY_NORMAL.
*
* @param[in] queue Compute queue to apply new priority to.
Copyright (C) 1997-2026 Free Software Foundation, Inc.
Note - certain prototypes declared in this header file are for
- functions whoes implementation copyright does not belong to the
+ functions whose implementation copyright does not belong to the
FSF. Those prototypes are present in this file for reference
purposes only and their presence in this file should not construed
as an indication of ownership by the FSF of the implementation of
/* Append stdout to existing file instead of truncating it. */
#define PEX_STDOUT_APPEND 0x100
-/* Thes same as PEX_STDOUT_APPEND, but for STDERR. */
+/* The same as PEX_STDOUT_APPEND, but for STDERR. */
#define PEX_STDERR_APPEND 0x200
/* Execute one program. Returns NULL on success. On error returns an
#elif __riscv_xlen == 64
#define MULUW3 "call __muldi3"
#else
-#error unsupport xlen
+#error unsupported xlen
#endif /* __riscv_xlen */
/* We rely on the fact that MULUW3 doesn't clobber the t-registers.
It can get better register allocation result. */
#error cannot find uint64_t type
#endif
-/* Detect endianess based on gcc's (>=4.6.0) __BYTE_ORDER__ macro. */
+/* Detect endianness based on gcc's (>=4.6.0) __BYTE_ORDER__ macro. */
#if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \
defined(__ORDER_LITTLE_ENDIAN__) && defined(__ORDER_PDP_ENDIAN__)
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#include <machine/endian.h>
#endif
-/* Detect endianess based on __BYTE_ORDER. */
+/* Detect endianness based on __BYTE_ORDER. */
#ifdef __BYTE_ORDER
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define PLUGIN_LITTLE_ENDIAN 1
#define PLUGIN_BIG_ENDIAN 1
#endif
-/* Detect endianess based on _BYTE_ORDER. */
+/* Detect endianness based on _BYTE_ORDER. */
#elif defined _BYTE_ORDER
#if _BYTE_ORDER == _LITTLE_ENDIAN
#define PLUGIN_LITTLE_ENDIAN 1
char unused;
char section_kind;
#else
-#error "Could not detect architecture endianess"
+#error "Could not detect architecture endianness"
#endif
int visibility;
uint64_t size;
size_t* len);
/* The linker's interface for specifying the desired order of sections.
- The sections should be specifed using the array SECTION_LIST in the
+ The sections should be specified using the array SECTION_LIST in the
order in which they should appear in the final layout. NUM_SECTIONS
specifies the number of entries in each array. This should be invoked
in the all_symbols_read handler. */
/* The root of the tree. */
splay_tree_node root;
- /* The comparision function. */
+ /* The comparison function. */
splay_tree_compare_fn comp;
/* The deallocate-key function. NULL if no cleanup is necessary. */