blob: 3786616ee4daede74d6ec2d454c867832e85b623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/* brig-util.h -- gccbrig utility functions
Copyright (C) 2016 Free Software Foundation, Inc.
Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
for General Processor Tech.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
#ifndef GCC_BRIG_UTIL_H
#define GCC_BRIG_UTIL_H
#include "brig-to-generic.h"
bool gccbrig_hsa_opcode_op_output_p (BrigOpcode16_t opcode, int opnum);
unsigned gccbrig_hsa_type_bit_size (BrigType16_t t);
uint64_t gccbrig_to_uint64_t (const BrigUInt64 &brig_type);
int gccbrig_reg_size (const BrigOperandRegister *brig_reg);
std::string gccbrig_reg_name (const BrigOperandRegister *reg);
std::string gccbrig_type_name (BrigType16_t type);
std::string gccbrig_segment_name (BrigSegment8_t segment);
bool gccbrig_is_float_type (BrigType16_t type);
bool gccbrig_is_bit_operation (BrigOpcode16_t opcode);
BrigType16_t gccbrig_tree_type_to_hsa_type (tree tree_type);
tree gccbrig_tree_type_for_hsa_type (BrigType16_t brig_type);
bool gccbrig_might_be_host_defined_var_p (const BrigDirectiveVariable *brigVar);
/* From hsa.h. */
bool hsa_type_packed_p (BrigType16_t type);
#endif
|