@@ -46,124 +46,124 @@ typedef struct
4646/* !
4747 * @brief Initializes a `value_t` instance to a default/void state.
4848 *
49- * @param p_value Pointer to the `value_t` instance to initialize.
50- * @post The `p_value `'s `type` will be set to `IR_TYPE_VOID`.
49+ * @param value Pointer to the `value_t` instance to initialize.
50+ * @post The `value `'s `type` will be set to `IR_TYPE_VOID`.
5151 * The contents of its `inner` union are considered undefined
5252 * for a void value.
5353 */
54- void value_init (value_t *p_value );
54+ void value_init (value_t *value );
5555
5656/* !
5757 * @brief Initializes a `value_t` instance to hold an unsigned 64-bit immediate
5858 * value.
5959 *
60- * @param p_value Pointer to the `value_t` instance to initialize.
60+ * @param value Pointer to the `value_t` instance to initialize.
6161 * @param u64 The 64-bit unsigned immediate value to store.
62- * @post The `p_value `'s `type` will be set to `IR_TYPE_U64` and its
62+ * @post The `value `'s `type` will be set to `IR_TYPE_U64` and its
6363 * `inner.immediate_u64` member will contain `u64`.
6464 */
65- void value_init_from_u64 (value_t *p_value , uint64_t u64 );
65+ void value_init_from_u64 (value_t *value , uint64_t u64 );
6666
6767/* !
6868 * @brief Initializes a `value_t` instance to hold an unsigned 32-bit immediate
6969 * value.
7070 *
71- * @param p_value Pointer to the `value_t` instance to initialize.
71+ * @param value Pointer to the `value_t` instance to initialize.
7272 * @param u32 The 32-bit unsigned immediate value to store.
73- * @post The `p_value `'s `type` will be set to `IR_TYPE_U32` and its
73+ * @post The `value `'s `type` will be set to `IR_TYPE_U32` and its
7474 * `inner.immediate_u32` member will contain `u32`.
7575 */
76- void value_init_from_u32 (value_t *p_value , uint32_t u32 );
76+ void value_init_from_u32 (value_t *value , uint32_t u32 );
7777
7878/* !
7979 * @brief Initializes a `value_t` instance to hold an unsigned 8-bit immediate
8080 * value.
8181 *
82- * @param p_value Pointer to the `value_t` instance to initialize.
82+ * @param value Pointer to the `value_t` instance to initialize.
8383 * @param u8 The 8-bit unsigned immediate value to store.
84- * @post The `p_value `'s `type` will be set to `IR_TYPE_U8` and its
84+ * @post The `value `'s `type` will be set to `IR_TYPE_U8` and its
8585 * `inner.immediate_u8` member will contain `u8`.
8686 */
87- void value_init_from_u8 (value_t *p_value , uint8_t u8 );
87+ void value_init_from_u8 (value_t *value , uint8_t u8 );
8888
8989/* !
9090 * @brief Initializes a `value_t` instance to hold a 1-bit boolean immediate
9191 * value.
9292 *
93- * @param p_value Pointer to the `value_t` instance to initialize.
93+ * @param value Pointer to the `value_t` instance to initialize.
9494 * @param u1 The boolean (1-bit) immediate value to store.
95- * @post The `p_value `'s `type` will be set to `IR_TYPE_U1` and its
95+ * @post The `value `'s `type` will be set to `IR_TYPE_U1` and its
9696 * `inner.immediate_u1` member will contain `u1`.
9797 */
98- void value_init_from_u1 (value_t *p_value , bool u1);
98+ void value_init_from_u1 (value_t *value , bool u1);
9999
100100/* !
101101 * @brief Initializes a `value_t` instance to hold an A32 register identifier.
102102 *
103103 * This function stores the *identity* of an A32 register (e.g., R0, SP, PC)
104104 * within the `value_t`. It does not store the *content* of that register.
105105 *
106- * @param p_value Pointer to the `value_t` instance to initialize.
106+ * @param value Pointer to the `value_t` instance to initialize.
107107 * @param reg The A32 register identifier (of type `a32_register_t`) to store.
108- * @post The `p_value `'s `type` will be set to `IR_TYPE_A32_REGISTER` and its
108+ * @post The `value `'s `type` will be set to `IR_TYPE_A32_REGISTER` and its
109109 * `inner.immediate_a32_register` member will contain `reg`.
110110 */
111- void value_init_from_a32_register (value_t *p_value , a32_register_t reg);
111+ void value_init_from_a32_register (value_t *value , a32_register_t reg);
112112
113113/* !
114114 * @brief Retrieves an unsigned 64-bit immediate value from a `value_t`.
115115 *
116- * @pre The `p_value ` must be of type `IR_TYPE_U64`.
117- * @param p_value Pointer to the `value_t` instance.
118- * @retval uint64_t The 64-bit unsigned immediate value stored in `p_value `.
116+ * @pre The `value ` must be of type `IR_TYPE_U64`.
117+ * @param value Pointer to the `value_t` instance.
118+ * @retval uint64_t The 64-bit unsigned immediate value stored in `value `.
119119 * @warning Calling this function on a `value_t` not of type `IR_TYPE_U64`
120120 * results in undefined behavior.
121121 */
122- uint64_t value_get_u64 (const value_t *p_value );
122+ uint64_t value_get_u64 (const value_t *value );
123123
124124/* !
125125 * @brief Retrieves an unsigned 32-bit immediate value from a `value_t`.
126126 *
127- * @pre The `p_value ` must be of type `IR_TYPE_U32`.
128- * @param p_value Pointer to the `value_t` instance.
129- * @retval uint32_t The 32-bit unsigned immediate value stored in `p_value `.
127+ * @pre The `value ` must be of type `IR_TYPE_U32`.
128+ * @param value Pointer to the `value_t` instance.
129+ * @retval uint32_t The 32-bit unsigned immediate value stored in `value `.
130130 * @warning Calling this function on a `value_t` not of type `IR_TYPE_U32`
131131 * results in undefined behavior.
132132 */
133- uint32_t value_get_u32 (const value_t *p_value );
133+ uint32_t value_get_u32 (const value_t *value );
134134
135135/* !
136136 * @brief Retrieves an unsigned 8-bit immediate value from a `value_t`.
137137 *
138- * @pre The `p_value ` must be of type `IR_TYPE_U8`.
139- * @param p_value Pointer to the `value_t` instance.
140- * @retval uint8_t The 8-bit unsigned immediate value stored in `p_value `.
138+ * @pre The `value ` must be of type `IR_TYPE_U8`.
139+ * @param value Pointer to the `value_t` instance.
140+ * @retval uint8_t The 8-bit unsigned immediate value stored in `value `.
141141 * @warning Calling this function on a `value_t` not of type `IR_TYPE_U8`
142142 * results in undefined behavior.
143143 */
144- uint8_t value_get_u8 (const value_t *p_value );
144+ uint8_t value_get_u8 (const value_t *value );
145145
146- /* *
146+ /* !
147147 * @brief Retrieves an unsigned 1-bit immediate value from a `value_t`.
148148 *
149- * @pre The `p_value ` must be of type `IR_TYPE_U1`.
150- * @param p_value Pointer to the `value_t` instance.
151- * @retval bool The 1-bit unsigned immediate value stored in `p_value `.
149+ * @pre The `value ` must be of type `IR_TYPE_U1`.
150+ * @param value Pointer to the `value_t` instance.
151+ * @retval bool The 1-bit unsigned immediate value stored in `value `.
152152 * @warning Calling this function on a `value_t` not of type `IR_TYPE_U1`
153153 * results in undefined behavior.
154154 */
155- bool value_get_u1 (const value_t *p_value );
155+ bool value_get_u1 (const value_t *value );
156156
157- /* *
157+ /* !
158158 * @brief Retrieves an A32 register identifier from a `value_t`.
159159 *
160- * @pre The `p_value ` must be of type `IR_TYPE_A32_REGISTER`.
161- * @param p_value Pointer to the `value_t` instance.
160+ * @pre The `value ` must be of type `IR_TYPE_A32_REGISTER`.
161+ * @param value Pointer to the `value_t` instance.
162162 * @retval pound::jit::a32_register_t The A32 register identifier stored in
163- * `p_value `.
163+ * `value `.
164164 * @warning Calling this function on a `value_t` not of type
165165 * `IR_TYPE_A32_REGISTER` results in undefined behavior.
166166 */
167- pound::jit::a32_register_t value_get_a32_register (const value_t *p_value );
167+ pound::jit::a32_register_t value_get_a32_register (const value_t *value );
168168} // namespace pound:::jit::ir
169169#endif // POUND_JIT_IR_TYPE_H
0 commit comments