himbaechel: add missing override qualifiers.

This commit is contained in:
Catherine 2025-01-11 21:43:32 +00:00
parent b3d126c090
commit a58735bc57
4 changed files with 8 additions and 8 deletions

View File

@ -194,7 +194,7 @@ struct ExampleImpl : HimbaechelAPI
} }
void drawWire(std::vector<GraphicElement> &g, GraphicElement::style_t style, Loc loc, IdString wire_type, void drawWire(std::vector<GraphicElement> &g, GraphicElement::style_t style, Loc loc, IdString wire_type,
int32_t tilewire, IdString tile_type) int32_t tilewire, IdString tile_type) override
{ {
GraphicElement el; GraphicElement el;
el.type = GraphicElement::TYPE_LINE; el.type = GraphicElement::TYPE_LINE;
@ -308,7 +308,7 @@ struct ExampleImpl : HimbaechelAPI
} }
void drawPip(std::vector<GraphicElement> &g, GraphicElement::style_t style, Loc loc, WireId src, IdString src_type, void drawPip(std::vector<GraphicElement> &g, GraphicElement::style_t style, Loc loc, WireId src, IdString src_type,
int32_t src_id, WireId dst, IdString dst_type, int32_t dst_id) int32_t src_id, WireId dst, IdString dst_type, int32_t dst_id) override
{ {
GraphicElement el; GraphicElement el;
el.type = GraphicElement::TYPE_ARROW; el.type = GraphicElement::TYPE_ARROW;
@ -329,7 +329,7 @@ struct ExampleArch : HimbaechelArch
{ {
ExampleArch() : HimbaechelArch("example") {}; ExampleArch() : HimbaechelArch("example") {};
bool match_device(const std::string &device) override { return device == "EXAMPLE"; } bool match_device(const std::string &device) override { return device == "EXAMPLE"; }
std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) override
{ {
return std::make_unique<ExampleImpl>(); return std::make_unique<ExampleImpl>();
} }

View File

@ -44,9 +44,9 @@ struct GowinImpl : HimbaechelAPI
bool checkPipAvail(PipId pip) const override; bool checkPipAvail(PipId pip) const override;
// Cluster // Cluster
bool isClusterStrict(const CellInfo *cell) const { return true; } bool isClusterStrict(const CellInfo *cell) const override { return true; }
bool getClusterPlacement(ClusterId cluster, BelId root_bel, bool getClusterPlacement(ClusterId cluster, BelId root_bel,
std::vector<std::pair<CellInfo *, BelId>> &placement) const; std::vector<std::pair<CellInfo *, BelId>> &placement) const override;
private: private:
HimbaechelHelpers h; HimbaechelHelpers h;
@ -110,7 +110,7 @@ struct GowinArch : HimbaechelArch
bool match_device(const std::string &device) override { return device.size() > 2 && device.substr(0, 2) == "GW"; } bool match_device(const std::string &device) override { return device.size() > 2 && device.substr(0, 2) == "GW"; }
std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) override
{ {
return std::make_unique<GowinImpl>(); return std::make_unique<GowinImpl>();
} }

View File

@ -1060,7 +1060,7 @@ struct NgUltraArch : HimbaechelArch
{ {
NgUltraArch() : HimbaechelArch("ng-ultra") {}; NgUltraArch() : HimbaechelArch("ng-ultra") {};
bool match_device(const std::string &device) override { return device == "NG-ULTRA"; } bool match_device(const std::string &device) override { return device == "NG-ULTRA"; }
std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) override
{ {
return std::make_unique<NgUltraImpl>(); return std::make_unique<NgUltraImpl>();
} }

View File

@ -569,7 +569,7 @@ struct XilinxArch : HimbaechelArch
{ {
XilinxArch() : HimbaechelArch("xilinx") {}; XilinxArch() : HimbaechelArch("xilinx") {};
bool match_device(const std::string &device) override { return device.size() > 3 && device.substr(0, 3) == "xc7"; } bool match_device(const std::string &device) override { return device.size() > 3 && device.substr(0, 3) == "xc7"; }
std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) std::unique_ptr<HimbaechelAPI> create(const std::string &device, const dict<std::string, std::string> &args) override
{ {
return std::make_unique<XilinxImpl>(); return std::make_unique<XilinxImpl>();
} }