*
*/
-#pragma once
+#ifndef NIR_H
+#define NIR_H
#include "util/hash_table.h"
#include "compiler/glsl/list.h"
#ifdef __cplusplus
} /* extern "C" */
#endif
+
+#endif /* NIR_H */
*
*/
-#pragma once
+#ifndef NIR_ARRAY_H
+#define NIR_ARRAY_H
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
} /* extern "C" */
#endif
+
+#endif /* NIR_ARRAY_H */
*
*/
+#ifndef NIR_CONSTANT_EXPRESSIONS_H
+#define NIR_CONSTANT_EXPRESSIONS_H
+
#include "nir.h"
nir_const_value nir_eval_const_opcode(nir_op op, unsigned num_components,
unsigned bit_size, nir_const_value *src);
+
+#endif /* NIR_CONSTANT_EXPRESSIONS_H */
*
*/
-#include "nir.h"
+#ifndef NIR_CONTROL_FLOW_H
+#define NIR_CONTROL_FLOW_H
-#pragma once
+#include "nir.h"
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
+
+#endif /* NIR_CONTROL_FLOW_H */
*
*/
+#ifndef NIR_CONTROL_FLOW_PRIVATE_H
+#define NIR_CONTROL_FLOW_PRIVATE_H
+
#include "nir_control_flow.h"
-#pragma once
/* Internal control-flow modification functions used when inserting/removing
* instructions.
void nir_handle_add_jump(nir_block *block);
void nir_handle_remove_jump(nir_block *block, nir_jump_type type);
+
+#endif /* NIR_CONTROL_FLOW_PRIVATE_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef NIR_INSTR_SET_H
+#define NIR_INSTR_SET_H
#include "nir.h"
/*@}*/
+#endif /* NIR_INSTR_SET_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef NIR_LOOP_ANALYZE_H
+#define NIR_LOOP_ANALYZE_H
#include "nir.h"
return true;
}
+
+#endif /* NIR_LOOP_ANALYZE_H */
* IN THE SOFTWARE.
*/
-#pragma once
+#ifndef NIR_PHI_BUILDER_H
+#define NIR_PHI_BUILDER_H
#include "nir.h"
* adds the phi nodes to the program.
*/
void nir_phi_builder_finish(struct nir_phi_builder *pb);
+
+#endif /* NIR_PHI_BUILDER_H */
*
**************************************************************************/
-#pragma once
-
+#ifndef NIR_VLA_H
+#define NIR_VLA_H
#include "c99_alloca.h"
*/
#define NIR_VLA_ZERO(_type, _name, _length) \
NIR_VLA_FILL(_type, _name, _length, 0)
+
+#endif /* NIR_VLA_H */
*
*/
-#pragma once
#ifndef _NIR_WORKLIST_
#define _NIR_WORKLIST_