GCC Middle and Back End API Reference
optinfo_item Class Reference

#include <optinfo.h>

Public Types

enum class  kind { text , tree , gimple , symtab_node }

Public Member Functions

 optinfo_item (enum kind kind_, location_t location, char *text)
 ~optinfo_item ()
enum kind get_kind () const
location_t get_location () const
const char * get_text () const

Private Attributes

enum kind m_kind
location_t m_location
char * m_text

Detailed Description

An item within an optinfo.   

Member Enumeration Documentation

◆ kind

enum class optinfo_item::kind
strong
Enumerator
text 
tree 
gimple 
symtab_node 

Constructor & Destructor Documentation

◆ optinfo_item()

optinfo_item::optinfo_item ( enum kind kind_,
location_t location,
char * text )
Optimization information.
   Copyright (C) 2018-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/>.   
optinfo_item's ctor.  Takes ownership of TEXT.   

References m_kind, m_location, m_text, and text.

◆ ~optinfo_item()

optinfo_item::~optinfo_item ( )
optinfo_item's dtor.   

References free(), and m_text.

Member Function Documentation

◆ get_kind()

enum kind optinfo_item::get_kind ( ) const
inline

◆ get_location()

location_t optinfo_item::get_location ( ) const
inline

◆ get_text()

const char * optinfo_item::get_text ( ) const
inline

Field Documentation

◆ m_kind

enum kind optinfo_item::m_kind
private

Referenced by get_kind(), and optinfo_item().

◆ m_location

location_t optinfo_item::m_location
private

Referenced by get_location(), and optinfo_item().

◆ m_text

char* optinfo_item::m_text
private

The documentation for this class was generated from the following files: