[all-commits] [llvm/llvm-project] e64c9d: [Transforms] Allow non-regex Source in SymbolRewri...

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Tue Aug 26 11:52:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e64c9d1c2fc2a805abc5701e386299b47a72aeea
      https://github.com/llvm/llvm-project/commit/e64c9d1c2fc2a805abc5701e386299b47a72aeea
  Author: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SymbolRewriter.cpp
    M llvm/test/SymbolRewriter/rewrite.ll
    M llvm/test/SymbolRewriter/rewrite.map

  Log Message:
  -----------
  [Transforms] Allow non-regex Source in SymbolRewriter in case of using ExplicitRewriteDescriptor (#154319)

Do not check that Source is a valid regex in case of Target (explicit)
transformation. Source may contain special symbols that may cause an
incorrect `invalid regex` error.

Note that source and exactly one of [Target, Transform] must be
provided.

`Target (explicit transformation)`: In this kind of rule `Source` is
treated as a symbol name and is matched in its entirety. `Target` field
will denote the symbol name to transform to.

`Transform (pattern transformation)`: This rule treats `Source` as a
regex that should match the complete symbol name. `Transform` is a regex
specifying the name to transform to.



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