yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
setattr.cc File Reference
#include "kernel/register.h"
#include "kernel/rtlil.h"
#include "kernel/log.h"
+ Include dependency graph for setattr.cc:

Go to the source code of this file.

Data Structures

struct  setunset_t
 
struct  SetattrPass
 
struct  SetparamPass
 

Functions

static void do_setunset (std::map< RTLIL::IdString, RTLIL::Const > &attrs, std::vector< setunset_t > &list)
 

Variables

SetattrPass SetattrPass
 
SetparamPass SetparamPass
 

Function Documentation

static void do_setunset ( std::map< RTLIL::IdString, RTLIL::Const > &  attrs,
std::vector< setunset_t > &  list 
)
static

Definition at line 53 of file setattr.cc.

54 {
55  for (auto &item : list)
56  if (item.unset)
57  attrs.erase(item.name);
58  else
59  attrs[item.name] = item.value;
60 }

+ Here is the caller graph for this function:

Variable Documentation