* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef AST_H
#define AST_H
* IN THE SOFTWARE.
*/
-#pragma once
#ifndef BLOB_H
#define BLOB_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef GLSL_PARSER_EXTRAS_H
#define GLSL_PARSER_EXTRAS_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef GLSL_SYMBOL_TABLE
#define GLSL_SYMBOL_TABLE
*
*/
+#ifndef GLSL_TO_NIR_H
+#define GLSL_TO_NIR_H
+
#include "compiler/nir/nir.h"
#ifdef __cplusplus
#ifdef __cplusplus
}
#endif
+
+#endif /* GLSL_TO_NIR_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_H
#define IR_H
* Provides a visitor which produces a list of variables referenced.
*/
+#ifndef GLSL_IR_ARRAY_REFCOUNT_H
+#define GLSL_IR_ARRAY_REFCOUNT_H
+
#include "ir.h"
#include "ir_visitor.h"
#include "compiler/glsl_types.h"
unsigned derefs_size;
/*@}*/
};
+
+#endif /* GLSL_IR_ARRAY_REFCOUNT_H */
* DEALINGS IN THE SOFTWARE.
*/
+#ifndef GLSL_IR_BASIC_BLOCK_H
+#define GLSL_IR_BASIC_BLOCK_H
+
void call_for_basic_blocks(exec_list *instructions,
void (*callback)(ir_instruction *first,
ir_instruction *last,
void *data),
void *data);
+
+#endif /* GLSL_IR_BASIC_BLOCK_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_BUILDER_PRINT_VISITOR_H
#define IR_BUILDER_PRINT_VISITOR_H
* instruction stream.
*/
+#ifndef GLSL_IR_EXPRESSION_FLATTENING_H
+#define GLSL_IR_EXPRESSION_FLATTENING_H
+
void do_expression_flattening(exec_list *instructions,
bool (*predicate)(ir_instruction *ir));
+
+#endif /* GLSL_IR_EXPRESSION_FLATTENING_H */
* Replaces calls to functions with the body of the function.
*/
+#ifndef GLSL_IR_FUNCTION_INLINING_H
+#define GLSL_IR_FUNCTION_INLINING_H
+
bool can_inline(ir_call *call);
+
+#endif /* GLSL_IR_FUNCTION_INLINING_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_HIERARCHICAL_VISITOR_H
#define IR_HIERARCHICAL_VISITOR_H
* DEALINGS IN THE SOFTWARE.
*/
-
/**
* \file ir_optimization.h
*
* Prototypes for optimization passes to be called by the compiler and drivers.
*/
+#ifndef GLSL_IR_OPTIMIZATION_H
+#define GLSL_IR_OPTIMIZATION_H
+
/* Operations for lower_instructions() */
#define SUB_TO_ADD_NEG 0x01
#define FDIV_TO_MUL_RCP 0x02
bool lower_64bit_integer_instructions(exec_list *instructions,
unsigned what_to_lower);
+
+#endif /* GLSL_IR_OPTIMIZATION_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_PRINT_VISITOR_H
#define IR_PRINT_VISITOR_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_READER_H
#define IR_READER_H
* a pointer to each rvalue in the tree.
*/
+#ifndef GLSL_IR_RVALUE_VISITOR_H
+#define GLSL_IR_RVALUE_VISITOR_H
+
class ir_rvalue_base_visitor : public ir_hierarchical_visitor {
public:
ir_visitor_status rvalue_visit(ir_assignment *);
virtual ir_visitor_status visit_enter(ir_emit_vertex *);
virtual ir_visitor_status visit_enter(ir_end_primitive *);
};
+
+#endif /* GLSL_IR_RVALUE_VISITOR_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_UNIFORM_H
#define IR_UNIFORM_H
* were defined in the scope.
*/
+#ifndef GLSL_IR_VARIABLE_REFCOUNT_H
+#define GLSL_IR_VARIABLE_REFCOUNT_H
+
#include "ir.h"
#include "ir_visitor.h"
#include "compiler/glsl_types.h"
void *mem_ctx;
};
+
+#endif /* GLSL_IR_VARIABLE_REFCOUNT_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef IR_VISITOR_H
#define IR_VISITOR_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef LINK_UNIFORM_BLOCK_ACTIVE_VISITOR_H
#define LINK_UNIFORM_BLOCK_ACTIVE_VISITOR_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef GLSL_LINK_VARYINGS_H
#define GLSL_LINK_VARYINGS_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef GLSL_LINKER_H
#define GLSL_LINKER_H
* exec_list or any structure in which an \c exec_list is embedded.
*/
-#pragma once
#ifndef LIST_CONTAINER_H
#define LIST_CONTAINER_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef LOOP_ANALYSIS_H
#define LOOP_ANALYSIS_H
* shared variables.
*/
-#pragma once
#ifndef LOWER_BUFFER_ACCESS_H
#define LOWER_BUFFER_ACCESS_H
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#ifndef GLSL_PROGRAM_H
+#define GLSL_PROGRAM_H
#ifdef __cplusplus
extern "C" {
extern long
parse_program_resource_name(const GLchar *name,
const GLchar **out_base_name_end);
+
+#endif /* GLSL_PROGRAM_H */
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef S_EXPRESSION_H
#define S_EXPRESSION_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef SHADER_CACHE
#define SHADER_CACHE
* compiling builtins).
*/
-#pragma once
#ifndef STANDALONE_SCAFFOLDING_H
#define STANDALONE_SCAFFOLDING_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
#ifndef TEST_OPTPASS_H
#define TEST_OPTPASS_H
* DEALINGS IN THE SOFTWARE.
*/
-#pragma once
+#ifndef GLSL_UNIFORM_INITIALIZER_UTILS_H
+#define GLSL_UNIFORM_INITIALIZER_UTILS_H
#include "program/prog_parameter.h"
#include "ir.h"
verify_data(gl_constant_value *storage, unsigned storage_array_size,
ir_constant *val, unsigned red_zone_size,
unsigned int boolean_true);
+
+#endif /* GLSL_UNIFORM_INITIALIZER_UTILS_H */