GCC Middle and Back End API Reference
state-graphs.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "diagnostics/state-graphs.h"
#include "selftest.h"
Include dependency graph for state-graphs.cc:

Macros

#define INCLUDE_ALGORITHM
#define INCLUDE_MAP
#define INCLUDE_SET
#define INCLUDE_STRING
#define INCLUDE_VECTOR

Variables

const char *const node_kind_strs []
const char *const dynalloc_state_strs []

Macro Definition Documentation

◆ INCLUDE_ALGORITHM

#define INCLUDE_ALGORITHM
Extensions to diagnostics::digraphs to support state graphs.
   Copyright (C) 2025 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

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/>.   

◆ INCLUDE_MAP

#define INCLUDE_MAP

◆ INCLUDE_SET

#define INCLUDE_SET

◆ INCLUDE_STRING

#define INCLUDE_STRING

◆ INCLUDE_VECTOR

#define INCLUDE_VECTOR

Variable Documentation

◆ dynalloc_state_strs

const char* const dynalloc_state_strs[]
Initial value:
= {
"unknown",
"nonnull",
"unchecked",
"freed"
}

Referenced by diagnostics::state_graphs::state_node_ref::get_dynalloc_state(), and diagnostics::state_graphs::state_node_ref::set_dynalloc_state().

◆ node_kind_strs

const char* const node_kind_strs[]
Initial value:
= {
"globals",
"code",
"function",
"stack",
"stack-frame",
"heap",
"thread-local",
"dynalloc-buffer",
"variable",
"field",
"padding",
"element",
"other",
}

Referenced by diagnostics::state_graphs::state_node_ref::get_node_kind(), and diagnostics::state_graphs::node_kind_to_str().