[all-commits] [llvm/llvm-project] 46e41c: [mlir] Sanitize identifiers with leading symbol. (...

Will Dietz via All-commits all-commits at lists.llvm.org
Mon Jun 10 17:12:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46e41c8631bd6c1a6c91d6cc4a5e4f1671078ccd
      https://github.com/llvm/llvm-project/commit/46e41c8631bd6c1a6c91d6cc4a5e4f1671078ccd
  Author: Will Dietz <will.dietz at sifive.com>
  Date:   2024-06-10 (Mon, 10 Jun 2024)

  Changed paths:
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/test/IR/print-attr-type-aliases.mlir
    M mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp

  Log Message:
  -----------
  [mlir] Sanitize identifiers with leading symbol. (#94795)

Presently, if name starts with a symbol it's converted to hex which may
cause the result to be invalid by starting with a digit.

Address this and add a small test.

Co-authored-by: Will Dietz <w at wdtz.org>



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