OpenMP: Update documentation of metadirective implementation status.
[gcc.git] / gcc / avoid-store-forwarding.h
blob2dfd4a27d2dfce8012e00ab0e21dd7318c5d4504
1 /* Avoid store forwarding optimization pass.
2 Copyright (C) 2024-2025 Free Software Foundation, Inc.
3 Contributed by VRULL GmbH.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #ifndef GCC_AVOID_STORE_FORWARDING_H
22 #define GCC_AVOID_STORE_FORWARDING_H
24 #include "config.h"
25 #include "system.h"
26 #include "coretypes.h"
27 #include "backend.h"
28 #include "rtl.h"
30 struct store_fwd_info
32 /* The store instruction that is a store forwarding candidate. */
33 rtx_insn *store_insn;
34 /* SET_DEST (single_set (store_insn)). */
35 rtx store_mem;
36 /* The temporary that will hold the stored value at the original store
37 position. */
38 rtx mov_reg;
39 /* The instruction sequence that inserts the stored value's bits at the
40 appropriate position in the loaded value. */
41 rtx_insn *bits_insert_insns;
42 /* An instruction that saves the store's value in a register temporarily,
43 (set (reg X) (SET_SRC (store_insn))). */
44 rtx_insn *save_store_value_insn;
45 /* An instruction that stores the saved value back to memory,
46 (set (SET_DEST (store_insn)) (reg X)). */
47 rtx_insn *store_saved_value_insn;
48 /* The byte offset for the store's position within the load. */
49 HOST_WIDE_INT offset;
51 unsigned int insn_cnt;
52 bool remove;
53 bool forwarded;
56 #endif /* GCC_AVOID_STORE_FORWARDING_H */