This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix toy lit substitutions
ClosedPublic

Authored by csigg on Sep 14 2022, 12:41 AM.

Details

Summary

The tools are called e.g. toyc-ch1, not toy-ch1.

Add missing toyc-ch6/7.

It turns out that the other substitutions are not needed more by specific circumstances rather than by design:
The lit test exec root is set to build/mlir/test, which is where all the test tools are placed by CMake and we wouldn't need to substitute them at all.
We shouldn't rely on this assumption though, because it will make things harder for standalone tests and other build systems.

Diff Detail

Event Timeline

csigg created this revision.Sep 14 2022, 12:41 AM
csigg requested review of this revision.Sep 14 2022, 12:41 AM
csigg updated this revision to Diff 460030.Sep 14 2022, 3:55 AM

Changing this revision to only fix the toy substitutions.

It turns out that the other substitutions are not needed more by specific circumstances rather than by design:
The lit test exec root is set to build/mlir/test, which is where all the test tools are placed by CMake and we wouldn't need the substitute them at all.
We shouldn't rely on this assumption though, because it will make things harder for standalone tests and other build systems.

csigg retitled this revision from [MLIR] Remove unused lit substitutions to [MLIR] Fix toy lit substitutions.Sep 14 2022, 3:56 AM
csigg edited the summary of this revision. (Show Details)
csigg added a reviewer: mehdi_amini.
csigg updated this revision to Diff 460031.Sep 14 2022, 3:58 AM

Add missing toyc-ch6/7.

mehdi_amini accepted this revision.Sep 14 2022, 4:20 AM
This revision is now accepted and ready to land.Sep 14 2022, 4:20 AM

How are things working right now without this? Does it mean that these may not be useful actually?

csigg added a comment.Sep 14 2022, 6:54 AM

How are things working right now without this? Does it mean that these may not be useful actually?

You might have missed the description of the previous diff:

It turns out that the other substitutions are not needed more by specific circumstances rather than by design:
The lit test exec root is set to build/mlir/test, which is where all the test tools are placed by CMake and we wouldn't need to substitute them at all.
We shouldn't rely on this assumption though, because it will make things harder for standalone tests and other build systems.

Does this make sense?

csigg edited the summary of this revision. (Show Details)Sep 14 2022, 6:58 AM
csigg edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.