mirror of https://github.com/llvm/circt.git
[Calyx] Remove C++20 Features, NFC
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
This commit is contained in:
parent
5e15a5bc0d
commit
5fbf9974e1
|
@ -95,10 +95,10 @@ def CellOpInterface : OpInterface<"CellInterface"> {
|
|||
auto zip = llvm::zip($_op->getResults(), $_op.portDirections(), $_op.portNames());
|
||||
for (auto&& [result, direction, name] : zip)
|
||||
info.push_back(PortInfo{
|
||||
.name=StringAttr::get($_op->getContext(), name),
|
||||
.type=result.getType(),
|
||||
.direction=direction,
|
||||
.attributes=DictionaryAttr()
|
||||
StringAttr::get($_op->getContext(), name),
|
||||
result.getType(),
|
||||
direction,
|
||||
DictionaryAttr()
|
||||
});
|
||||
return info;
|
||||
}]
|
||||
|
|
|
@ -284,11 +284,10 @@ SmallVector<PortInfo> ComponentOp::getPortInfo() {
|
|||
|
||||
SmallVector<PortInfo> results;
|
||||
for (uint64_t i = 0, e = portNamesAttr.size(); i != e; ++i) {
|
||||
results.push_back(
|
||||
PortInfo{.name = portNamesAttr[i].cast<StringAttr>(),
|
||||
.type = portTypes[i],
|
||||
.direction = direction::get(portDirectionsAttr.getValue()[i]),
|
||||
.attributes = portAttrs[i].cast<DictionaryAttr>()});
|
||||
results.push_back(PortInfo{portNamesAttr[i].cast<StringAttr>(),
|
||||
portTypes[i],
|
||||
direction::get(portDirectionsAttr.getValue()[i]),
|
||||
portAttrs[i].cast<DictionaryAttr>()});
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue