commit | 2f0c70a3c87fb2083fa5c694d166d521f7d7c983 | [log] [tgz] |
---|---|---|
author | Caio Oliveira <cmarcelo@gmail.com> | Thu Oct 10 18:08:18 2024 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 10 18:10:51 2024 -0700 |
tree | dbb942b3b1347a93c24dcf2f445c1cc1d78608ad | |
parent | 2d083cbd14337602051f0dbe9f8e1a440aff891c [diff] |
[NFC][mlir][spirv] Fix syntax warnings in gen_spirv_dialect.py (#111775) In the context of regular expressions, Python (used to) gracefully ignore the escape behavior of `\` in some contexts, e.g. for representing the regular expression `\w+`. However in newer versions of Python this now gives a warning in the form ``` SyntaxWarning: invalid escape sequence '\w' ``` Fix by explicitly using raw strings instead. GitOrigin-RevId: 6c398abb75da5413152f97a780ddb3b3b2b6a0b7
See https://mlir.llvm.org/ for more information.