[all-commits] [llvm/llvm-project] 6c398a: [NFC][mlir][spirv] Fix syntax warnings in gen_spir...

Caio Oliveira via All-commits all-commits at lists.llvm.org
Thu Oct 10 18:08:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c398abb75da5413152f97a780ddb3b3b2b6a0b7
      https://github.com/llvm/llvm-project/commit/6c398abb75da5413152f97a780ddb3b3b2b6a0b7
  Author: Caio Oliveira <cmarcelo at gmail.com>
  Date:   2024-10-10 (Thu, 10 Oct 2024)

  Changed paths:
    M mlir/utils/spirv/gen_spirv_dialect.py

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list