intel/compiler: Use #pragma once instead of header guards

Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32534>
This commit is contained in:
Caio Oliveira 2024-12-06 14:25:29 -08:00 committed by Marge Bot
parent ad75b9f1a6
commit abe41b1d2c
68 changed files with 70 additions and 274 deletions

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef BRW_ASM_H
#define BRW_ASM_H
#pragma once
#include <stdio.h>
#include <stdbool.h>
@ -25,5 +24,3 @@ typedef enum {
brw_assemble_result brw_assemble(
void *mem_ctx, const struct intel_device_info *devinfo,
FILE *f, const char *filename, brw_assemble_flags flags);
#endif /* BRW_ASM_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef BRW_ASM_INTERNAL_H
#define BRW_ASM_INTERNAL_H
#pragma once
/* Assembler internal state and definitions used by the brw_gram/brw_lex. */
@ -102,6 +101,3 @@ struct target_label {
char *name;
int offset;
};
#endif /* BRW_ASM_H */

View file

@ -25,8 +25,7 @@
*
*/
#ifndef BRW_CFG_H
#define BRW_CFG_H
#pragma once
struct bblock_t;
@ -535,5 +534,3 @@ namespace brw {
}
#endif
#endif /* BRW_CFG_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_COMPILER_H
#define BRW_COMPILER_H
#pragma once
#include <stdio.h>
#include "c11/threads.h"
@ -1561,5 +1560,3 @@ enum brw_topology_id
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* BRW_COMPILER_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef BRW_DISASM_H
#define BRW_DISASM_H
#pragma once
#include <stdio.h>
#include <stdbool.h>
@ -42,5 +41,3 @@ const char *brw_lsc_data_size_to_string(unsigned s);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* BRW_DISASM_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef _INTEL_ASM_ANNOTATION_H
#define _INTEL_ASM_ANNOTATION_H
#pragma once
#include "compiler/glsl/list.h"
@ -85,5 +84,3 @@ disasm_insert_error(struct disasm_info *disasm, int offset,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* _INTEL_ASM_ANNOTATION_H */

View file

@ -29,9 +29,7 @@
* Keith Whitwell <keithw@vmware.com>
*/
#ifndef BRW_EU_H
#define BRW_EU_H
#pragma once
#include <stdbool.h>
#include <stdio.h>
@ -1607,5 +1605,3 @@ next_offset(const struct intel_device_info *devinfo, void *store, int offset)
#ifdef __cplusplus
}
#endif
#endif

View file

@ -29,8 +29,7 @@
* Keith Whitwell <keithw@vmware.com>
*/
#ifndef BRW_EU_DEFINES_H
#define BRW_EU_DEFINES_H
#pragma once
#include <stdint.h>
#include <stdlib.h>
@ -1852,5 +1851,3 @@ enum ENUM_PACKED lsc_vect_size {
};
#define LSC_ONE_ADDR_REG 1
#endif /* BRW_EU_DEFINES_H */

View file

@ -25,8 +25,7 @@
*
*/
#ifndef BRW_FS_H
#define BRW_FS_H
#pragma once
#include "brw_cfg.h"
#include "brw_compiler.h"
@ -681,5 +680,3 @@ bool brw_fs_workaround_nomask_control_flow(fs_visitor &s);
/* Helpers. */
unsigned brw_fs_get_lowered_simd_width(const fs_visitor *shader,
const fs_inst *inst);
#endif /* BRW_FS_H */

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_FS_BUILDER_H
#define BRW_FS_BUILDER_H
#pragma once
#include "brw_ir_fs.h"
#include "brw_eu.h"
@ -897,5 +896,3 @@ offset(const brw_reg &reg, const brw::fs_builder &bld, unsigned delta)
{
return offset(reg, bld.dispatch_width(), delta);
}
#endif

View file

@ -25,8 +25,7 @@
*
*/
#ifndef BRW_FS_LIVE_VARIABLES_H
#define BRW_FS_LIVE_VARIABLES_H
#pragma once
#include "brw_ir_analysis.h"
#include "brw_ir_fs.h"
@ -144,5 +143,3 @@ protected:
};
} /* namespace brw */
#endif /* BRW_FS_LIVE_VARIABLES_H */

View file

@ -28,8 +28,7 @@
* get and set various fields. This is the actual hardware format.
*/
#ifndef BRW_INST_H
#define BRW_INST_H
#pragma once
#include <assert.h>
#include <stdint.h>
@ -1431,5 +1430,3 @@ brw_inst_opcode(const struct brw_isa_info *isa,
#ifdef __cplusplus
}
#endif
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_IR_H
#define BRW_IR_H
#pragma once
#include <assert.h>
#include "brw_reg.h"
@ -38,5 +37,3 @@
#define MAX_VGRF_SIZE(devinfo) ((devinfo)->ver >= 20 ? 40 : 20)
struct bblock_t;
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_IR_ALLOCATOR_H
#define BRW_IR_ALLOCATOR_H
#pragma once
#include "util/compiler.h"
#include "util/glheader.h"
@ -88,5 +87,3 @@ namespace brw {
unsigned capacity;
};
}
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_IR_ANALYSIS_H
#define BRW_IR_ANALYSIS_H
#pragma once
namespace brw {
/**
@ -188,5 +187,3 @@ private:
const C *c;
T *p;
};
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_IR_FS_H
#define BRW_IR_FS_H
#pragma once
#include "brw_ir.h"
#include "brw_ir_allocator.h"
@ -599,5 +598,3 @@ brw_fs_flag_mask(const brw_reg &r, unsigned sz)
return 0;
}
}
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_IR_PERFORMANCE_H
#define BRW_IR_PERFORMANCE_H
#pragma once
#include "brw_ir_analysis.h"
@ -81,5 +80,3 @@ namespace brw {
operator=(performance u);
};
}
#endif

View file

@ -20,8 +20,8 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef BRW_ISA_ENCODING_H
#define BRW_ISA_ENCODING_H
#pragma once
#include "dev/intel_device_info.h"
#include "brw_eu_defines.h"
@ -83,4 +83,3 @@ is_3src(const struct brw_isa_info *isa, enum opcode opcode)
#ifdef __cplusplus
}
#endif
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_KERNEL_H
#define BRW_KERNEL_H
#pragma once
#include "brw_compiler.h"
@ -74,5 +73,3 @@ brw_nir_from_spirv(void *mem_ctx, unsigned gfx_version,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* BRW_KERNEL_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_NIR_H
#define BRW_NIR_H
#pragma once
#include "brw_reg.h"
#include "compiler/nir/nir.h"
@ -295,5 +294,3 @@ bool brw_nir_uses_inline_data(nir_shader *shader);
#ifdef __cplusplus
}
#endif
#endif /* BRW_NIR_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_NIR_RT_H
#define BRW_NIR_RT_H
#pragma once
#include "brw_nir.h"
#include "brw_rt.h"
@ -72,5 +71,3 @@ brw_nir_create_trivial_return_shader(const struct brw_compiler *compiler,
#ifdef __cplusplus
}
#endif
#endif /* BRW_NIR_RT_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_NIR_RT_BUILDER_H
#define BRW_NIR_RT_BUILDER_H
#pragma once
/* This file provides helpers to access memory based data structures that the
* RT hardware reads/writes and their locations.
@ -983,5 +982,3 @@ brw_nir_rt_acceleration_structure_to_root_node(nir_builder *b,
return nir_if_phi(b, null_node_ptr, root_node_ptr);
}
#endif /* BRW_NIR_RT_BUILDER_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_PRIM_H
#define BRW_PRIM_H
#pragma once
#define _3DPRIM_POINTLIST 0x01
#define _3DPRIM_LINELIST 0x02
@ -46,5 +45,3 @@
#define _3DPRIM_LINESTRIP_CONT_BF 0x14
#define _3DPRIM_TRIFAN_NOSTIPPLE 0x16
#define _3DPRIM_PATCHLIST(n) ({ assert(n > 0 && n <= 32); 0x20 + (n - 1); })
#endif /* BRW_PRIM_H */

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_PRIVATE_H
#define BRW_PRIVATE_H
#pragma once
#include "brw_compiler.h"
@ -93,5 +92,3 @@ int brw_simd_select_for_workgroup_size(const struct intel_device_info *devinfo,
bool brw_should_print_shader(const nir_shader *shader, uint64_t debug_flag);
#endif // __cplusplus
#endif // BRW_PRIVATE_H

View file

@ -39,8 +39,7 @@
* the abstract brw_reg type into the actual hardware instruction encoding.
*/
#ifndef BRW_REG_H
#define BRW_REG_H
#pragma once
#include <stdbool.h>
#include "util/compiler.h"
@ -1511,5 +1510,3 @@ byte_stride(const brw_reg &reg)
}
#endif /* __cplusplus */
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_REG_TYPE_H
#define BRW_REG_TYPE_H
#pragma once
#include <stdbool.h>
@ -194,5 +193,3 @@ brw_reg_type_to_letters(enum brw_reg_type type);
#ifdef __cplusplus
}
#endif
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef BRW_RT_H
#define BRW_RT_H
#pragma once
#include <stdint.h>
@ -288,5 +287,3 @@ brw_rt_ray_queries_shadow_stacks_size(const struct intel_device_info *devinfo,
#ifdef __cplusplus
}
#endif
#endif /* BRW_RT_H */

View file

@ -22,8 +22,7 @@
*
*/
#ifndef ELK_ASM_H
#define ELK_ASM_H
#pragma once
#include <inttypes.h>
#include <stdbool.h>
@ -109,5 +108,3 @@ struct target_label {
char *name;
int offset;
};
#endif /* ELK_ASM_H */

View file

@ -25,8 +25,7 @@
*
*/
#ifndef ELK_CFG_H
#define ELK_CFG_H
#pragma once
#include "elk_ir.h"
#ifdef __cplusplus
@ -533,5 +532,3 @@ namespace elk {
};
}
#endif
#endif /* ELK_CFG_H */

View file

@ -29,8 +29,7 @@
* Keith Whitwell <keithw@vmware.com>
*/
#ifndef ELK_CLIP_H
#define ELK_CLIP_H
#pragma once
#include "elk_compiler.h"
#include "elk_eu.h"
@ -159,5 +158,3 @@ void elk_clip_project_position(struct elk_clip_compile *c,
struct elk_reg pos );
void elk_clip_ff_sync(struct elk_clip_compile *c);
void elk_clip_init_ff_sync(struct elk_clip_compile *c);
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_COMPILER_H
#define ELK_COMPILER_H
#pragma once
#include <stdio.h>
#include "c11/threads.h"
@ -1762,5 +1761,3 @@ elk_compute_first_urb_slot_required(uint64_t inputs_read,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* ELK_COMPILER_H */

View file

@ -21,11 +21,8 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_DEAD_CONTROL_FLOW_H
#define ELK_DEAD_CONTROL_FLOW_H
#pragma once
#include "elk_shader.h"
bool elk_dead_control_flow_eliminate(elk_backend_shader *s);
#endif /* ELK_DEAD_CONTROL_FLOW_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef ELK_DISASM_H
#define ELK_DISASM_H
#pragma once
#include <stdio.h>
#include <stdbool.h>
@ -38,5 +37,3 @@ void elk_disassemble_with_errors(const struct elk_isa_info *isa,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* ELK_DISASM_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_DISASM_INFO_H
#define ELK_DISASM_INFO_H
#pragma once
#include "compiler/glsl/list.h"
@ -86,5 +85,3 @@ elk_disasm_insert_error(struct elk_disasm_info *disasm, unsigned offset,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* ELK_DISASM_INFO_H */

View file

@ -29,9 +29,7 @@
* Keith Whitwell <keithw@vmware.com>
*/
#ifndef ELK_EU_H
#define ELK_EU_H
#pragma once
#include <stdbool.h>
#include <stdio.h>
@ -1939,5 +1937,3 @@ next_offset(const struct intel_device_info *devinfo, void *store, int offset)
#ifdef __cplusplus
}
#endif
#endif

View file

@ -29,8 +29,7 @@
* Keith Whitwell <keithw@vmware.com>
*/
#ifndef ELK_EU_DEFINES_H
#define ELK_EU_DEFINES_H
#pragma once
#include <stdint.h>
#include <stdlib.h>
@ -1257,5 +1256,3 @@ enum ENUM_PACKED lsc_vect_size {
};
#define LSC_ONE_ADDR_REG 1
#endif /* ELK_EU_DEFINES_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef ELK_EU_OPCODES_H
#define ELK_EU_OPCODES_H
#pragma once
#ifdef __cplusplus
extern "C" {
@ -607,6 +606,3 @@ enum elk_opcode {
#ifdef __cplusplus
}
#endif
#endif

View file

@ -25,8 +25,7 @@
*
*/
#ifndef ELK_FS_H
#define ELK_FS_H
#pragma once
#include "elk_shader.h"
#include "elk_ir_fs.h"
@ -588,5 +587,3 @@ int elk_get_subgroup_id_param_index(const intel_device_info *devinfo,
const elk_stage_prog_data *prog_data);
void nir_to_elk(elk_fs_visitor *s);
#endif /* ELK_FS_H */

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_FS_BUILDER_H
#define ELK_FS_BUILDER_H
#pragma once
#include "elk_ir_fs.h"
#include "elk_shader.h"
@ -936,5 +935,3 @@ offset(const elk_fs_reg &reg, const elk::fs_builder &bld, unsigned delta)
{
return offset(reg, bld.dispatch_width(), delta);
}
#endif

View file

@ -25,8 +25,7 @@
*
*/
#ifndef ELK_FS_LIVE_VARIABLES_H
#define ELK_FS_LIVE_VARIABLES_H
#pragma once
#include "elk_ir_analysis.h"
#include "elk_ir_fs.h"
@ -146,5 +145,3 @@ protected:
};
} /* namespace elk */
#endif /* ELK_FS_LIVE_VARIABLES_H */

View file

@ -22,8 +22,7 @@
*
*/
#ifndef ELK_GFX6_GS_VISITOR_H
#define ELK_GFX6_GS_VISITOR_H
#pragma once
#include "elk_vec4.h"
#include "elk_vec4_gs_visitor.h"
@ -80,5 +79,3 @@ private:
} /* namespace elk */
#endif /* __cplusplus */
#endif /* ELK_GFX6_GS_VISITOR_H */

View file

@ -28,8 +28,7 @@
* get and set various fields. This is the actual hardware format.
*/
#ifndef ELK_INST_H
#define ELK_INST_H
#pragma once
#include <assert.h>
#include <stdint.h>
@ -1062,5 +1061,3 @@ elk_inst_opcode(const struct elk_isa_info *isa,
#ifdef __cplusplus
}
#endif
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_IR_H
#define ELK_IR_H
#pragma once
#include <assert.h>
#include "elk_reg.h"
@ -193,5 +192,3 @@ struct elk_backend_instruction {
/** The number of hardware registers used for a message header. */
uint8_t header_size;
};
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_IR_ALLOCATOR_H
#define ELK_IR_ALLOCATOR_H
#pragma once
#include "util/compiler.h"
#include "util/glheader.h"
@ -92,5 +91,3 @@ namespace elk {
unsigned capacity;
};
}
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_IR_ANALYSIS_H
#define ELK_IR_ANALYSIS_H
#pragma once
namespace elk {
/**
@ -191,5 +190,3 @@ private:
const C *c;
T *p;
};
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_IR_FS_H
#define ELK_IR_FS_H
#pragma once
#include "elk_shader.h"
@ -725,5 +724,3 @@ is_coalescing_payload(const elk::simple_allocator &alloc, const elk_fs_inst *ins
bool
elk_has_bank_conflict(const struct elk_isa_info *isa, const elk_fs_inst *inst);
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_IR_PERFORMANCE_H
#define ELK_IR_PERFORMANCE_H
#pragma once
class elk_fs_visitor;
@ -82,5 +81,3 @@ namespace elk {
operator=(performance u);
};
}
#endif

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_IR_VEC4_H
#define ELK_IR_VEC4_H
#pragma once
#include "elk_shader.h"
@ -471,5 +470,3 @@ get_exec_type_size(const vec4_instruction *inst)
}
} /* namespace elk */
#endif

View file

@ -20,8 +20,8 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef ELK_ISA_ENCODING_H
#define ELK_ISA_ENCODING_H
#pragma once
#include "dev/intel_device_info.h"
#include "elk_eu_opcodes.h"
@ -83,4 +83,3 @@ elk_is_3src(const struct elk_isa_info *isa, enum elk_opcode opcode)
#ifdef __cplusplus
}
#endif
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_NIR_H
#define ELK_NIR_H
#pragma once
#include "compiler/nir/nir.h"
#include "elk_compiler.h"
@ -278,5 +277,3 @@ void elk_nir_adjust_payload(nir_shader *shader);
#ifdef __cplusplus
}
#endif
#endif /* ELK_NIR_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef ELK_NIR_OPTIONS_H
#define ELK_NIR_OPTIONS_H
#pragma once
#include "nir.h"
@ -18,5 +17,3 @@ extern const struct nir_shader_compiler_options elk_vector_nir_options;
#ifdef __cplusplus
}
#endif
#endif /* ELK_NIR_OPTIONS_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef ELK_NIR_PRIVATE_H
#define ELK_NIR_PRIVATE_H
#pragma once
#include "elk_reg.h"
#include "nir.h"
@ -21,5 +20,3 @@ enum elk_reg_type elk_type_for_nir_type(const struct intel_device_info *devinfo,
#ifdef __cplusplus
}
#endif
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_PRIM_H
#define ELK_PRIM_H
#pragma once
#define _3DPRIM_POINTLIST 0x01
#define _3DPRIM_LINELIST 0x02
@ -46,5 +45,3 @@
#define _3DPRIM_LINESTRIP_CONT_BF 0x14
#define _3DPRIM_TRIFAN_NOSTIPPLE 0x16
#define _3DPRIM_PATCHLIST(n) ({ assert(n > 0 && n <= 32); 0x20 + (n - 1); })
#endif /* ELK_PRIM_H */

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_PRIVATE_H
#define ELK_PRIVATE_H
#pragma once
#include "elk_compiler.h"
@ -72,5 +71,3 @@ int elk_simd_select_for_workgroup_size(const struct intel_device_info *devinfo,
const unsigned *sizes);
bool elk_should_print_shader(const nir_shader *shader, uint64_t debug_flag);
#endif // ELK_PRIVATE_H

View file

@ -39,8 +39,7 @@
* the abstract elk_reg type into the actual hardware instruction encoding.
*/
#ifndef ELK_REG_H
#define ELK_REG_H
#pragma once
#include <stdbool.h>
#include "util/compiler.h"
@ -1360,5 +1359,3 @@ elk_type_is_float(enum elk_reg_type type)
#ifdef __cplusplus
}
#endif
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_REG_TYPE_H
#define ELK_REG_TYPE_H
#pragma once
#include <stdbool.h>
@ -197,5 +196,3 @@ elk_reg_type_to_letters(enum elk_reg_type type);
#ifdef __cplusplus
}
#endif
#endif

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_SHADER_H
#define ELK_SHADER_H
#pragma once
#include <stdint.h>
#include "elk_cfg.h"
@ -190,5 +189,3 @@ struct elk_gs_compile
#ifdef __cplusplus
}
#endif
#endif /* ELK_SHADER_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_VEC4_H
#define ELK_VEC4_H
#pragma once
#include "elk_shader.h"
@ -346,5 +345,3 @@ private:
} /* namespace elk */
#endif /* __cplusplus */
#endif /* ELK_VEC4_H */

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_VEC4_BUILDER_H
#define ELK_VEC4_BUILDER_H
#pragma once
#include "elk_ir_vec4.h"
#include "elk_ir_allocator.h"
@ -642,5 +641,3 @@ namespace elk {
} annotation;
};
}
#endif

View file

@ -27,8 +27,7 @@
* Geometry-shader-specific code derived from the vec4_visitor class.
*/
#ifndef ELK_VEC4_GS_VISITOR_H
#define ELK_VEC4_GS_VISITOR_H
#pragma once
#include "elk_vec4.h"
@ -71,5 +70,3 @@ protected:
} /* namespace elk */
#endif /* __cplusplus */
#endif /* ELK_VEC4_GS_VISITOR_H */

View file

@ -25,8 +25,7 @@
*
*/
#ifndef ELK_VEC4_LIVE_VARIABLES_H
#define ELK_VEC4_LIVE_VARIABLES_H
#pragma once
#include "elk_ir_vec4.h"
#include "elk_ir_analysis.h"
@ -141,5 +140,3 @@ var_from_reg(const simple_allocator &alloc, const dst_reg &reg,
}
} /* namespace elk */
#endif /* ELK_VEC4_LIVE_VARIABLES_H */

View file

@ -22,8 +22,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_VEC4_SURFACE_BUILDER_H
#define ELK_VEC4_SURFACE_BUILDER_H
#pragma once
#include "elk_vec4_builder.h"
@ -49,5 +48,3 @@ namespace elk {
elk_predicate pred = ELK_PREDICATE_NONE);
}
}
#endif

View file

@ -27,8 +27,7 @@
* The vec4-mode tessellation control shader compiler backend.
*/
#ifndef ELK_VEC4_TCS_H
#define ELK_VEC4_TCS_H
#pragma once
#include "elk_compiler.h"
#include "elk_eu.h"
@ -79,5 +78,3 @@ protected:
} /* namespace elk */
#endif /* __cplusplus */
#endif /* ELK_VEC4_TCS_H */

View file

@ -27,8 +27,7 @@
* The vec4 mode tessellation evaluation shader compiler backend.
*/
#ifndef ELK_VEC4_TES_H
#define ELK_VEC4_TES_H
#pragma once
#include "elk_vec4.h"
@ -61,5 +60,3 @@ private:
} /* namespace elk */
#endif /* __cplusplus */
#endif /* ELK_VEC4_TES_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef ELK_VEC4_VS_VISITOR_H
#define ELK_VEC4_VS_VISITOR_H
#pragma once
#include "elk_vec4.h"
@ -54,5 +53,3 @@ private:
};
} /* namespace elk */
#endif /* ELK_VEC4_VS_VISITOR_H */

View file

@ -21,8 +21,7 @@
* IN THE SOFTWARE.
*/
#ifndef INTEL_GFX_VER_ENUM_H
#define INTEL_GFX_VER_ENUM_H
#pragma once
#include "util/macros.h"
#include "dev/intel_device_info.h"
@ -70,5 +69,3 @@ gfx_ver_from_devinfo(const struct intel_device_info *devinfo)
unreachable("not reached");
}
}
#endif

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef INTEL_NIR_H
#define INTEL_NIR_H
#pragma once
#include "nir.h"
@ -45,5 +44,3 @@ bool intel_nir_lower_printf(nir_shader *nir);
#ifdef __cplusplus
}
#endif
#endif /* INTEL_NIR_H */

View file

@ -3,8 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#ifndef INTEL_SHADER_ENUMS_H
#define INTEL_SHADER_ENUMS_H
#pragma once
#include <stdint.h>
@ -343,5 +342,3 @@ intel_fs_is_coarse(enum intel_sometimes shader_coarse_pixel_dispatch,
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* INTEL_SHADER_ENUMS_H */