diff options
author | JoelWee <32009741+JoelWee@users.noreply.github.com> | 2023-10-12 08:53:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 08:53:53 +0100 |
commit | 44600bae893e126d91aee79e522749549caeec50 (patch) | |
tree | a8b4376f38f1d20221adb37749fba0d77513bab1 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | 2b05fa8f0be7e38f4b4364ea855a3d200ded7480 (diff) | |
download | llvm-44600bae893e126d91aee79e522749549caeec50.zip llvm-44600bae893e126d91aee79e522749549caeec50.tar.gz llvm-44600bae893e126d91aee79e522749549caeec50.tar.bz2 |
[mlir][python] Improve sanitization of python names (#68801)
Follow up to 7d4cd47e242c28c450c1e2a1a9f4bd4b7b5a01ab, where I fixed
just the case of a dash. This fixes it for all possible types of
strings, which can include "-,." etc.
This modifies some code written in
27c6d55cae74125b6381a647533090a72930ecda
It also handles the case of a leading number which is not valid for
python names.
Ref:
- https://llvm.org/docs/TableGen/ProgRef.html#literals
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions