MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / newLValue

Method newLValue

src/Expression/Value.cpp:87–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85Value* ValueFactory::newStValue() { return new StValue(); }
86
87Value* ValueFactory::newLValue() {
88 // if (m_headFree == nullptr) {
89 LValue* val = new LValue();
90 val->setValueFactory(this);
91 return val;
92 /*
93 } else {
94 LValue* ret = m_headFree;
95 LValue* next = m_headFree->m_next;
96 LValue* prev = m_headFree->m_prev;
97 m_headFree = next;
98 if (prev == next) {
99 m_headFree = nullptr;
100 } else {
101 next->m_prev = prev;
102 prev->m_next = next;
103 }
104 ret->m_prev = nullptr;
105 ret->m_next = nullptr;
106 return ret;
107 }
108 */
109}
110
111Value* ValueFactory::newValue(SValue& initVal) { return new SValue(initVal); }
112

Callers 6

evalExprMethod · 0.80
fromVpiValueMethod · 0.80
fromStringMethod · 0.80
compileTypeDefMethod · 0.80
elaborateInstance_Method · 0.80
compileTypespecMethod · 0.80

Calls 1

setValueFactoryMethod · 0.80

Tested by

no test coverage detected