typeck.c (cp_build_function_call_vec): When mark_used fails unconditionally return...
[official-gcc.git] / gcc / brig / brigfrontend / brig-signal-inst-handler.cc
blob7a995678a06d888fff7bc0efa1c5de8f9f97574c
1 /* brig-signal-inst-handler.cc -- brig signal instruction handling
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
3 Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
4 for General Processor Tech.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 #include <sstream>
24 #include "brig-code-entry-handler.h"
25 #include "brig-util.h"
26 #include "fold-const.h"
27 #include "diagnostic.h"
28 #include "tree-pretty-print.h"
29 #include "print-tree.h"
30 #include "convert.h"
31 #include "langhooks.h"
32 #include "gimple-expr.h"
34 size_t
35 brig_signal_inst_handler::operator () (const BrigBase *base)
37 const BrigInstSignal *inst = (const BrigInstSignal *) base;
38 BrigAtomicOperation8_t atomic_opcode;
39 atomic_opcode = inst->signalOperation;
41 return generate_tree (inst->base, atomic_opcode);