llvm
af0fcf85 - [mlir][tblgen] Don't echo absolute paths into rewrite pattern source (#168984)

Commit
137 days ago
[mlir][tblgen] Don't echo absolute paths into rewrite pattern source (#168984) Currently, the declarative pattern rewrite generator will always print the [source]:[line](s) from which a pattern came. This is a useful debugging hint, but it causes problem when absolute paths are used as arguments to mlir-tblgen (which LLVM's build rules automatically do). Specifially, it causes the source to be tied to the build location, harning reproducability and our collective ability to get ccache hits from, say, separate worktrees. This commit resolves the issue by replacing absolute paths in thes "Generated from:" comments with their filenames. (The alternative would have been to implement an entire file-prefix-map the way the C compilers do, but since this is an isolated incident, I chose to resolve it locally.)
Author
Parents
Loading