Apply 'make format'
This commit is contained in:
parent
19f2d93901
commit
2e25ccec30
|
|
@ -456,7 +456,7 @@ class ActiveVisitor final : public VNVisitor {
|
|||
|
||||
AstActive* const wantactivep
|
||||
= !m_clockedProcess ? m_namer.getSpecialActive<AstSenItem::Combo>(nodep->fileline())
|
||||
: oldsentreep ? m_namer.getActive(nodep->fileline(), oldsentreep)
|
||||
: oldsentreep ? m_namer.getActive(nodep->fileline(), oldsentreep)
|
||||
// Clocked, no sensitivity lists, it's a suspendable, put it in initial
|
||||
: m_namer.getSpecialActive<AstSenItem::Initial>(nodep->fileline());
|
||||
|
||||
|
|
|
|||
|
|
@ -802,34 +802,33 @@ string AstVar::cPubArgType(bool named, bool forReturn) const {
|
|||
return arg;
|
||||
}
|
||||
|
||||
class dpiTypesToStringConverter VL_NOT_FINAL{public : virtual string openArray(const AstVar*)
|
||||
const {return "const svOpenArrayHandle";
|
||||
}
|
||||
virtual string bitLogicVector(const AstVar* /*varp*/, bool isBit) const {
|
||||
return isBit ? "svBitVecVal" : "svLogicVecVal";
|
||||
}
|
||||
virtual string primitive(const AstVar* varp) const {
|
||||
string type;
|
||||
const VBasicDTypeKwd keyword = varp->basicp()->keyword();
|
||||
if (keyword.isDpiUnsignable() && !varp->basicp()->isSigned()) type = "unsigned ";
|
||||
type += keyword.dpiType();
|
||||
return type;
|
||||
}
|
||||
string convert(const AstVar* varp) const {
|
||||
if (varp->isDpiOpenArray()) {
|
||||
return openArray(varp);
|
||||
} else if (const AstBasicDType* const basicp = varp->basicp()) {
|
||||
if (basicp->isDpiBitVec() || basicp->isDpiLogicVec()) {
|
||||
return bitLogicVector(varp, basicp->isDpiBitVec());
|
||||
} else {
|
||||
return primitive(varp);
|
||||
}
|
||||
} else {
|
||||
return "UNKNOWN";
|
||||
class dpiTypesToStringConverter VL_NOT_FINAL {
|
||||
public:
|
||||
virtual string openArray(const AstVar*) const { return "const svOpenArrayHandle"; }
|
||||
virtual string bitLogicVector(const AstVar* /*varp*/, bool isBit) const {
|
||||
return isBit ? "svBitVecVal" : "svLogicVecVal";
|
||||
}
|
||||
}
|
||||
}
|
||||
;
|
||||
virtual string primitive(const AstVar* varp) const {
|
||||
string type;
|
||||
const VBasicDTypeKwd keyword = varp->basicp()->keyword();
|
||||
if (keyword.isDpiUnsignable() && !varp->basicp()->isSigned()) type = "unsigned ";
|
||||
type += keyword.dpiType();
|
||||
return type;
|
||||
}
|
||||
string convert(const AstVar* varp) const {
|
||||
if (varp->isDpiOpenArray()) {
|
||||
return openArray(varp);
|
||||
} else if (const AstBasicDType* const basicp = varp->basicp()) {
|
||||
if (basicp->isDpiBitVec() || basicp->isDpiLogicVec()) {
|
||||
return bitLogicVector(varp, basicp->isDpiBitVec());
|
||||
} else {
|
||||
return primitive(varp);
|
||||
}
|
||||
} else {
|
||||
return "UNKNOWN";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
string AstVar::dpiArgType(bool named, bool forReturn) const {
|
||||
if (forReturn) {
|
||||
|
|
|
|||
|
|
@ -42,11 +42,11 @@ class ColorStronglyConnectedComponents final {
|
|||
// METHODS
|
||||
// Use the bottom 32-bit word as the component number
|
||||
uint32_t& component(const DfgVertex& vtx) { //
|
||||
return reinterpret_cast<uint32_t (&)[2]>(m_map[vtx])[0];
|
||||
return reinterpret_cast<uint32_t(&)[2]>(m_map[vtx])[0];
|
||||
}
|
||||
// Use the top 32-bit word as the visitation index
|
||||
uint32_t& index(const DfgVertex& vtx) { //
|
||||
return reinterpret_cast<uint32_t (&)[2]>(m_map[vtx])[1];
|
||||
return reinterpret_cast<uint32_t(&)[2]>(m_map[vtx])[1];
|
||||
}
|
||||
|
||||
void visitColorSCCs(const DfgVertex& vtx) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue