[llvm-branch-commits] [mlir] [MLIR] Cyclic AttrType Replacer (PR #98206)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy ready_for_review https://github.com/llvm/llvm-project/pull/98206 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [MLIR][LLVM] Use CyclicReplacerCache for recursive DIType import (PR #98203)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy ready_for_review https://github.com/llvm/llvm-project/pull/98203 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [MLIR][LLVM] Use CyclicReplacerCache for recursive DIType import (PR #98203)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy updated https://github.com/llvm/llvm-project/pull/98203 >From a0b59b246a1b8860fad16f1f74537c38b5abf2cf Mon Sep 17 00:00:00 2001 From: Billy Zhu Date: Tue, 9 Jul 2024 10:28:21 -0700 Subject: [PATCH] use cyclic cache in importer and update tests --- mlir/lib/Target/

[llvm-branch-commits] [mlir] [MLIR] Cyclic AttrType Replacer (PR #98206)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy updated https://github.com/llvm/llvm-project/pull/98206 >From 8d1dd886c4a80507c8a97dda15e91acbfa7c3619 Mon Sep 17 00:00:00 2001 From: Billy Zhu Date: Tue, 9 Jul 2024 10:27:13 -0700 Subject: [PATCH] refactor attrtype replacers & add tests --- mlir/include/mlir/IR/A

[llvm-branch-commits] [mlir] [MLIR] Cyclic AttrType Replacer (PR #98206)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy edited https://github.com/llvm/llvm-project/pull/98206 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [MLIR][LLVM] Use CyclicReplacerCache for recursive DIType import (PR #98203)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy edited https://github.com/llvm/llvm-project/pull/98203 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [mlir] [MLIR] Cyclic AttrType Replacer (PR #98206)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy created https://github.com/llvm/llvm-project/pull/98206 The current `AttrTypeReplacer` does not allow for custom handling of replacer functions that may cause self-recursion. For example, the replacement of one attr/type may depend on the replacement of another att

[llvm-branch-commits] [mlir] [MLIR][LLVM] Use CyclicReplacerCache for recursive DIType import (PR #98203)

2024-07-09 Thread Billy Zhu via llvm-branch-commits
https://github.com/zyx-billy created https://github.com/llvm/llvm-project/pull/98203 Use the new CyclicReplacerCache from https://github.com/llvm/llvm-project/pull/98202 to support importing of recursive DITypes in LLVM dialect's DebugImporter. This helps simplify the implementation, allows f