intel/compiler: consistently use ifndef guards over pragma once
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Mar 2017 16:04:38 +0000 (16:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Mar 2017 16:55:22 +0000 (16:55 +0000)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Vedran Miletić <vedran@miletic.net>
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/intel/compiler/brw_cfg.h
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_dead_control_flow.h
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_live_variables.h
src/intel/compiler/brw_nir.h
src/intel/compiler/brw_shader.h
src/intel/compiler/brw_vec4_live_variables.h

index b8af40f725fbb1f7f6480d4484f5fc5009f0b2a3..0c5d1268f1a83b99ab3fe487d1c092caf0e5178f 100644 (file)
@@ -25,7 +25,6 @@
  *
  */
 
-#pragma once
 #ifndef BRW_CFG_H
 #define BRW_CFG_H
 
index 85257d494af5fa18e3b7cf3456cbae06affd6829..d4128bccbc17945698c3b8b2134fbcf126963610 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef BRW_COMPILER_H
+#define BRW_COMPILER_H
 
 #include <stdio.h>
 #include "common/gen_device_info.h"
@@ -1055,3 +1056,5 @@ brw_stage_has_packed_dispatch(const struct gen_device_info *devinfo,
 #ifdef __cplusplus
 } /* extern "C" */
 #endif
+
+#endif /* BRW_COMPILER_H */
index 83fd9b1e79e866e55de39f319a3f6d5b3e099712..9732c2b9f3fb318fe811d63867b3a0daa13a46bd 100644 (file)
  * IN THE SOFTWARE.
  */
 
+#ifndef BRW_DEAD_CONTROL_FLOW_H
+#define BRW_DEAD_CONTROL_FLOW_H
+
 #include "brw_shader.h"
 
 bool dead_control_flow_eliminate(backend_shader *s);
+
+#endif /* BRW_DEAD_CONTROL_FLOW_H */
index 00861ce5dad772465d6132626873d943350ee2de..8a5525b786ece51aae6eaf2f68151cc38ecf9a73 100644 (file)
@@ -25,7 +25,8 @@
  *
  */
 
-#pragma once
+#ifndef BRW_FS_H
+#define BRW_FS_H
 
 #include "brw_shader.h"
 #include "brw_ir_fs.h"
@@ -498,3 +499,5 @@ fs_reg setup_imm_df(const brw::fs_builder &bld,
 
 enum brw_barycentric_mode brw_barycentric_mode(enum glsl_interp_mode mode,
                                                nir_intrinsic_op op);
+
+#endif /* BRW_FS_H */
index 91d1e42cbc1b740b00dd73db6af002471e13b925..d2d5898ed1c9480c847a06272863bc23ad99d802 100644 (file)
@@ -25,6 +25,9 @@
  *
  */
 
+#ifndef BRW_FS_LIVE_VARIABLES_H
+#define BRW_FS_LIVE_VARIABLES_H
+
 #include "brw_fs.h"
 #include "util/bitset.h"
 
@@ -113,3 +116,5 @@ protected:
 };
 
 } /* namespace brw */
+
+#endif /* BRW_FS_LIVE_VARIABLES_H */
index 76d7ec89f9b896bb4d26b170ad53269145f42106..b96072cf9620939d733ebc6387069c7be4c54916 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef BRW_NIR_H
+#define BRW_NIR_H
 
 #include "brw_reg.h"
 #include "compiler/nir/nir.h"
@@ -152,3 +153,5 @@ bool brw_nir_opt_peephole_ffma(nir_shader *shader);
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* BRW_NIR_H */
index 89e2776776eeb66376fde1a714bda533f01478a6..30e7bf75c589f177eae999b59a61e0a04cdb3ade 100644 (file)
@@ -21,7 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#pragma once
+#ifndef BRW_SHADER_H
+#define BRW_SHADER_H
 
 #include <stdint.h>
 #include "brw_reg.h"
@@ -288,3 +289,5 @@ unsigned get_atomic_counter_op(nir_intrinsic_op op);
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* BRW_SHADER_H */
index 8807c45374348e582a9c33cbd1c086cd7231b8b1..2946b98aacc254d8a571a9691568c0ce278f812a 100644 (file)
@@ -25,6 +25,9 @@
  *
  */
 
+#ifndef BRW_VEC4_LIVE_VARIABLES_H
+#define BRW_VEC4_LIVE_VARIABLES_H
+
 #include "util/bitset.h"
 #include "brw_vec4.h"
 
@@ -110,3 +113,5 @@ var_from_reg(const simple_allocator &alloc, const dst_reg &reg,
 }
 
 } /* namespace brw */
+
+#endif /* BRW_VEC4_LIVE_VARIABLES_H */