2 * Copyright © 2018 Intel Corporation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 #ifndef __I965_ASM_H__
26 #define __I965_ASM_H__
32 #include "compiler/brw_reg.h"
33 #include "compiler/brw_reg_type.h"
34 #include "compiler/brw_eu_defines.h"
35 #include "compiler/brw_inst.h"
36 #include "compiler/brw_eu.h"
37 #include "dev/gen_device_info.h"
38 #include "util/list.h"
40 /* glibc < 2.27 defines OVERFLOW in /usr/include/math.h. */
43 void yyerror (char *);
48 extern struct brw_codegen
*p
;
50 extern char *input_filename
;
52 extern struct list_head instr_labels
;
53 extern struct list_head target_labels
;
56 unsigned cond_modifier
:4;
57 unsigned flag_reg_nr
:1;
58 unsigned flag_subreg_nr
:1;
62 unsigned pred_control
:4;
64 unsigned flag_reg_nr
:1;
65 unsigned flag_subreg_nr
:1;
69 unsigned access_mode
:1;
70 unsigned compression_control
:2;
71 unsigned thread_control
:2;
72 unsigned no_dd_check
:1; // Dependency control
73 unsigned no_dd_clear
:1; // Dependency control
74 unsigned mask_control
:1;
75 unsigned debug_control
:1;
76 unsigned acc_wr_control
:1;
77 unsigned end_of_thread
:1;
78 unsigned compaction
:1;
84 enum instr_label_type
{
90 struct list_head link
;
94 enum instr_label_type type
;
98 struct list_head link
;
104 #endif /* __I965_ASM_H__ */