GCC Middle and Back End API Reference
genattr.cc File Reference
#include "bconfig.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "errors.h"
#include "read-md.h"
#include "gensupport.h"
Include dependency graph for genattr.cc:

Functions

static void gen_attr (md_rtx_info *info)
 
static bool check_tune_attr (const char *name, rtx exp)
 
static bool find_tune_attr (rtx exp)
 
int main (int argc, const char **argv)
 

Variables

static vec< rtxconst_attrs
 
static vec< rtxreservations
 

Function Documentation

◆ check_tune_attr()

static bool check_tune_attr ( const char * name,
rtx exp )
static
Check that attribute NAME is used in define_insn_reservation condition
EXP.  Return true if it is.   

References check_tune_attr(), exp(), GET_CODE, ggc_alloc(), XEXP, and XSTR.

Referenced by check_tune_attr(), and find_tune_attr().

◆ find_tune_attr()

static bool find_tune_attr ( rtx exp)
static
Try to find a const attribute (usually cpu or tune) that is used
in all define_insn_reservation conditions.   

References check_tune_attr(), const_attrs, exp(), find_tune_attr(), FOR_EACH_VEC_ELT, GET_CODE, ggc_alloc(), i, reservations, XEXP, and XSTR.

Referenced by find_tune_attr(), and main().

◆ gen_attr()

static void gen_attr ( md_rtx_info * info)
static

References const_attrs, md_rtx_info::def, GET_CODE, ggc_alloc(), XEXP, and XSTR.

Referenced by main().

◆ main()

Variable Documentation

◆ const_attrs

vec<rtx> const_attrs
static
Generate attribute information (insn-attr.h) from machine description.
   Copyright (C) 1991-2024 Free Software Foundation, Inc.
   Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)

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

Referenced by find_tune_attr(), and gen_attr().

◆ reservations

vec<rtx> reservations
static

Referenced by find_tune_attr(), and main().