GCC Middle and Back End API Reference
|
#include <tristate.h>
Public Types | |
enum | value { TS_UNKNOWN , TS_TRUE , TS_FALSE } |
Public Member Functions | |
tristate (enum value val) | |
tristate (bool val) | |
const char * | as_string () const |
bool | is_known () const |
bool | is_unknown () const |
bool | is_true () const |
bool | is_false () const |
tristate | not_ () const |
tristate | or_ (tristate other) const |
tristate | and_ (tristate other) const |
bool | operator== (const tristate &other) const |
bool | operator!= (const tristate &other) const |
enum value | get_value () const |
Static Public Member Functions | |
static tristate | unknown () |
Private Attributes | |
enum value | m_value |
"True" vs "False" vs "Unknown". Copyright (C) 2019-2024 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/>.
"True" vs "False" vs "Unknown".
|
inline |
References gcc_unreachable, is_false(), m_value, tristate(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.
Referenced by operator&&().
"True" vs "False" vs "Unknown". Copyright (C) 2019-2024 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/>.
References gcc_unreachable, m_value, TS_FALSE, TS_TRUE, and TS_UNKNOWN.
|
inline |
References m_value, and TS_UNKNOWN.
|
inline |
References m_value, and TS_UNKNOWN.
tristate tristate::not_ | ( | ) | const |
References gcc_unreachable, m_value, tristate(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.
Referenced by operator!().
References gcc_unreachable, is_true(), m_value, tristate(), TS_FALSE, TS_TRUE, and TS_UNKNOWN.
Referenced by operator||().
References tristate(), and TS_UNKNOWN.
Referenced by and_(), as_string(), get_value(), is_false(), is_known(), is_true(), is_unknown(), not_(), operator!=(), operator==(), and or_().