Skip to content

Commit

Permalink
Add const qualifier to IsPassPipeline()
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686602831
  • Loading branch information
toli-y authored and Google-ML-Automation committed Oct 16, 2024
1 parent dceda27 commit 8f76467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xla/hlo/pass/hlo_pass_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class HloPassInterface {
HloModuleGroup* module_group,
const absl::flat_hash_set<absl::string_view>& execution_threads) = 0;

virtual bool IsPassPipeline() { return false; }
virtual bool IsPassPipeline() const { return false; }
};

// Base class for passes which are module-scoped.
Expand Down
2 changes: 1 addition & 1 deletion xla/hlo/pass/hlo_pass_pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class HloPassPipeline : public HloPassInterface {
HloModuleGroup* module_group,
const absl::flat_hash_set<absl::string_view>& execution_threads) override;

bool IsPassPipeline() override { return true; }
bool IsPassPipeline() const override { return true; }

// Return size of passes_.
int PassesSize() { return passes_.size(); }
Expand Down

0 comments on commit 8f76467

Please sign in to comment.