Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mhlo] fix build rules for the MhloPasses target #59219

Merged
merged 1 commit into from Jan 31, 2023
Merged

[mhlo] fix build rules for the MhloPasses target #59219

merged 1 commit into from Jan 31, 2023

Conversation

ashay
Copy link
Member

@ashay ashay commented Jan 10, 2023

The MhloPasses library, which contains code from
symbolic_shape_optimization.cc, refers to
ShapeComponentAnalysis::GetValueInfo(), which is defined in
shape_component_analysis.cc, which is a part of the MhloAnalysis target.
However, the CMake rules for building MhloPasses do not add MhloAnalysis
as a dependency, causing undefined reference errors in downstream
targets.

As an ancillary change, this patch also removes the MhloAnalysis
dependency in the rule for building mlir-hlo-opt, since the now-fixed
dependency in MhloPasses carries over to the mlir-hlo-opt target.

The MhloPasses library, which contains code from
symbolic_shape_optimization.cc, refers to
`ShapeComponentAnalysis::GetValueInfo()`, which is defined in
shape_component_analysis.cc, which is a part of the MhloAnalysis target.
However, the CMake rules for building MhloPasses do not add MhloAnalysis
as a dependency, causing undefined reference errors in downstream
targets.

As an ancillary change, this patch also removes the MhloAnalysis
dependency in the rule for building mlir-hlo-opt, since the now-fixed
dependency in MhloPasses carries over to the mlir-hlo-opt target.
@google-ml-butler google-ml-butler bot added the size:XS CL Change Size: Extra Small label Jan 10, 2023
@google-ml-butler google-ml-butler bot requested a review from r4nt January 10, 2023 17:29
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label Jan 10, 2023
@gbaned gbaned added the comp:xla XLA label Jan 11, 2023
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Jan 11, 2023
@gbaned gbaned requested a review from reedwm January 11, 2023 16:36
@jpienaar jpienaar requested a review from burmako January 19, 2023 19:32
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Jan 19, 2023
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Jan 19, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jan 19, 2023
@gbaned gbaned added ready to pull PR ready for merge process and removed ready to pull PR ready for merge process awaiting review Pull request awaiting review labels Jan 30, 2023
copybara-service bot pushed a commit to tensorflow/mlir-hlo that referenced this pull request Jan 31, 2023
Imported from GitHub PR tensorflow/tensorflow#59219

The MhloPasses library, which contains code from
symbolic_shape_optimization.cc, refers to
`ShapeComponentAnalysis::GetValueInfo()`, which is defined in
shape_component_analysis.cc, which is a part of the MhloAnalysis target.
However, the CMake rules for building MhloPasses do not add MhloAnalysis
as a dependency, causing undefined reference errors in downstream
targets.

As an ancillary change, this patch also removes the MhloAnalysis
dependency in the rule for building mlir-hlo-opt, since the now-fixed
dependency in MhloPasses carries over to the mlir-hlo-opt target.
Copybara import of the project:

--
55f8182265d21bea83e507e655af04096ebc6c6b by Ashay Rane <ashay@users.noreply.github.com>:

[mhlo] fix build rules for the MhloPasses target

The MhloPasses library, which contains code from
symbolic_shape_optimization.cc, refers to
`ShapeComponentAnalysis::GetValueInfo()`, which is defined in
shape_component_analysis.cc, which is a part of the MhloAnalysis target.
However, the CMake rules for building MhloPasses do not add MhloAnalysis
as a dependency, causing undefined reference errors in downstream
targets.

As an ancillary change, this patch also removes the MhloAnalysis
dependency in the rule for building mlir-hlo-opt, since the now-fixed
dependency in MhloPasses carries over to the mlir-hlo-opt target.

Merging this change closes #59219

PiperOrigin-RevId: 505985133
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Jan 31, 2023
Imported from GitHub PR tensorflow/tensorflow#59219

The MhloPasses library, which contains code from
symbolic_shape_optimization.cc, refers to
`ShapeComponentAnalysis::GetValueInfo()`, which is defined in
shape_component_analysis.cc, which is a part of the MhloAnalysis target.
However, the CMake rules for building MhloPasses do not add MhloAnalysis
as a dependency, causing undefined reference errors in downstream
targets.

As an ancillary change, this patch also removes the MhloAnalysis
dependency in the rule for building mlir-hlo-opt, since the now-fixed
dependency in MhloPasses carries over to the mlir-hlo-opt target.
Copybara import of the project:

--
55f8182265d21bea83e507e655af04096ebc6c6b by Ashay Rane <ashay@users.noreply.github.com>:

[mhlo] fix build rules for the MhloPasses target

The MhloPasses library, which contains code from
symbolic_shape_optimization.cc, refers to
`ShapeComponentAnalysis::GetValueInfo()`, which is defined in
shape_component_analysis.cc, which is a part of the MhloAnalysis target.
However, the CMake rules for building MhloPasses do not add MhloAnalysis
as a dependency, causing undefined reference errors in downstream
targets.

As an ancillary change, this patch also removes the MhloAnalysis
dependency in the rule for building mlir-hlo-opt, since the now-fixed
dependency in MhloPasses carries over to the mlir-hlo-opt target.

Merging this change closes #59219

PiperOrigin-RevId: 505985133
@copybara-service copybara-service bot merged commit d73132d into tensorflow:master Jan 31, 2023
PR Queue automation moved this from Approved by Reviewer to Merged Jan 31, 2023
@ashay ashay deleted the ashay/fix-mhlopasses-build-deps branch April 11, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:xla XLA ready to pull PR ready for merge process size:XS CL Change Size: Extra Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

4 participants