Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

amandatang (Amanda Tang)
User

Projects

User does not belong to any projects.

User Details

User Since
May 16 2023, 2:24 PM (19 w, 5 d)

Recent Activity

Aug 25 2023

amandatang added inline comments to D158796: [mlir] Commutativity Operand Sorting Pattern Key Comparison Fix.
Aug 25 2023, 12:05 PM · Restricted Project, Restricted Project

Aug 24 2023

amandatang retitled D158796: [mlir] Commutativity Operand Sorting Pattern Key Comparison Fix from [mlir] Commutativity Operand Sorting Pattern ancestorQueue Fix to [mlir] Commutativity Operand Sorting Pattern Key Comparison Fix.
Aug 24 2023, 5:12 PM · Restricted Project, Restricted Project
amandatang retitled D158796: [mlir] Commutativity Operand Sorting Pattern Key Comparison Fix from Summary: to [mlir] Commutativity Operand Sorting Pattern ancestorQueue Fix.
Aug 24 2023, 4:55 PM · Restricted Project, Restricted Project
amandatang abandoned D158683: [mlir] Use strictly less than comparison in Commutative operand sorting.
Aug 24 2023, 4:48 PM · Restricted Project, Restricted Project
amandatang requested review of D158796: [mlir] Commutativity Operand Sorting Pattern Key Comparison Fix.
Aug 24 2023, 4:48 PM · Restricted Project, Restricted Project

Aug 23 2023

amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

! In D157528#4608458, @amandatang wrote:
example1_test, example2_test and check_commutative_small_similar_ancestor_tree are the only tests that worked prior to the fixes in this patch.

The 5 (out of 7) new tests that are added in this patch that were already working without the fixes are example1_test, example2_test, check_commutative_non_lowest_level_block_argument, check_commutative_small_similar_ancestor_tree, and check_commutative_equal_ancestor_traversal_different_size. Every new test you add with a proposed fix should be failing before the fix. That is the only way it demonstrates the existence of a fix.

! In D157528#4608458, @amandatang wrote:
When coming up with test cases, I was also considering coverage and other edge cases that would be nice to have checks for in case more changes are made in the future. That's why some of them do already work correctly without changes. I can add these in another separate patch following the 4 for these bug fixes.

Yes, this is orthogonal work and should be done in a completely different patch, thanks. Although I don't believe example1_test and example2_test add any new test coverage. I haven't looked at the other 3 tests in detail. Will do that once your patches are broken into multiple patches, as discussed.

Aug 23 2023, 8:27 PM · Restricted Project, Restricted Project
amandatang retitled D158683: [mlir] Use strictly less than comparison in Commutative operand sorting from [MLIR] Use strictly less than comparison in Commutative operand sorting to [mlir] Use strictly less than comparison in Commutative operand sorting.
Aug 23 2023, 4:24 PM · Restricted Project, Restricted Project
amandatang requested review of D158683: [mlir] Use strictly less than comparison in Commutative operand sorting.
Aug 23 2023, 4:23 PM · Restricted Project, Restricted Project
amandatang added a comment to D158444: [mlir] Commutative Operand Sorting Pass.

@srishti-pm @jpienaar Any other followups on this?

Aug 23 2023, 2:36 PM · Restricted Project, Restricted Project
amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Bug 2 and bug 3 are related. When the visitedAncestor check in line 152 is removed, it causes block arguments to not be added to the ancestorQueue. Originally, block arguments are only added because nullptr is not in the visitedAncestor set, so either way, the logic is not sound despite being functional. There could also be additional block argument cast and check to make this more safe.

Aug 23 2023, 2:23 PM · Restricted Project, Restricted Project
amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Some of the bug fixes, when moved to their own commit, also caused existing and previously correct test cases to fail.

Why will this happen if your fix is correct? I'd suggest making sure your fix is correct and doesn't have a bug in itself.

Aug 23 2023, 10:19 AM · Restricted Project, Restricted Project

Aug 22 2023

amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

@srishti-pm In terms of separating the bug fixes into their own patches and having test cases that illustrate each bug fix, it's very difficult to write tests for each bug fix in isolation when all 4 are present at the same time in the original code. The examples I provided in the summary each assume everything else is correct. Some of the bug fixes, when moved to their own commit, also caused existing and previously correct test cases to fail.

Aug 22 2023, 9:57 PM · Restricted Project, Restricted Project
amandatang updated the diff for D158444: [mlir] Commutative Operand Sorting Pass.

Address comment

Aug 22 2023, 4:17 PM · Restricted Project, Restricted Project
amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Thank you for working on this. There are a few issues here. Listing them below:-

  1. There are 7 new tests added in this patch. 5 of them work correctly without any bug fixes from your patch. Thus, all 5 of them should be removed/modified because they do not reflect the changes done in this patch. You should only add those tests that reflect the functional changes done in this patch. Upon looking closer into them, it seemed that some of them were directly pointing to a specific bug fix (for example @check_commutative_non_lowest_level_block_argument) but those tests were already working correctly before the fix.
  1. There are 4 bug fixes being offered by this patch. Each of them warrants a separate commit of its own for better readability and ease of review and because they are all orthogonal to each other but fix the same utility. Please create one commit (and thus one patch) for each of the 4 fixes. The first fix can be done here and thus only 3 more commits are needed to be created for the 3 other fixes. Each commit will showcase test(s) that illustrate that specific bug fix. Further, since you are also doing cleanup, feel free to perform cleanup in any subset of these 4 commits.
  1. Regarding bug 1: No need to explain what an ancestor key entry is and how it is compared. This detail is a black box with respect to this bug and is thus an unnecessary detail to add here. Thus, remove these lines: Each ancestor key entry consists of a type (block_argument, non_constant_op and constant_op in increasing order) and an op name if it is an op (empty for block arguments). An ancestor key entry is smaller if its type is smaller or if it has a smaller op name lexicographically.
  1. Regarding bug 2: You mention: To fix this, visitedAncestors and its corresponding checks are removed completely. I think some explanation is needed on how the utility works with them removed and whether you have done something else to potentially do what they were doing, but now, correctly. A BFS requires some way to keep track of the visited nodes of the tree.
Aug 22 2023, 4:11 PM · Restricted Project, Restricted Project
amandatang updated the summary of D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.
Aug 22 2023, 2:45 PM · Restricted Project, Restricted Project

Aug 21 2023

amandatang added inline comments to D158444: [mlir] Commutative Operand Sorting Pass.
Aug 21 2023, 9:52 PM · Restricted Project, Restricted Project
amandatang updated the diff for D158444: [mlir] Commutative Operand Sorting Pass.

Address comments

Aug 21 2023, 9:26 PM · Restricted Project, Restricted Project
amandatang retitled D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes from [mlir] Commutativity sorting util bug fix to [mlir] Commutativity Operand Sorting Pattern Bug Fixes.
Aug 21 2023, 12:35 PM · Restricted Project, Restricted Project
amandatang retitled D158444: [mlir] Commutative Operand Sorting Pass from Create commutative sorting pass to [mlir] Commutative Operand Sorting Pass.
Aug 21 2023, 12:29 PM · Restricted Project, Restricted Project
amandatang requested review of D158444: [mlir] Commutative Operand Sorting Pass.
Aug 21 2023, 12:20 PM · Restricted Project, Restricted Project
amandatang updated the summary of D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.
Aug 21 2023, 12:10 PM · Restricted Project, Restricted Project
amandatang updated the summary of D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.
Aug 21 2023, 11:02 AM · Restricted Project, Restricted Project

Aug 18 2023

amandatang updated the diff for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Rename test

Aug 18 2023, 3:54 PM · Restricted Project, Restricted Project
amandatang updated the diff for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Additional tests

Aug 18 2023, 11:45 AM · Restricted Project, Restricted Project

Aug 16 2023

amandatang updated the diff for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Use strict weak ordering in the operand comparison method

Aug 16 2023, 9:03 PM · Restricted Project, Restricted Project

Aug 15 2023

amandatang added a reviewer for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes: okkwon.
Aug 15 2023, 10:22 AM · Restricted Project, Restricted Project

Aug 14 2023

amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

@srishti-pm Let me know if these two examples make sense

Aug 14 2023, 3:48 PM · Restricted Project, Restricted Project
amandatang updated the diff for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Add test

Aug 14 2023, 3:41 PM · Restricted Project, Restricted Project

Aug 10 2023

amandatang updated the diff for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Update comments

Aug 10 2023, 11:23 AM · Restricted Project, Restricted Project

Aug 9 2023

amandatang added a comment to D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

Can you make the summary precise? It's a bit long-winded and the bugs aren't clear from the summary. If you can explain a bug in one line or with a small example, it will be great. You don't need to explain the older functionality in detail.

Aug 9 2023, 6:44 PM · Restricted Project, Restricted Project
amandatang updated the diff for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.

run clang-format

Aug 9 2023, 1:09 PM · Restricted Project, Restricted Project
amandatang added a reviewer for D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes: srishti-pm.
Aug 9 2023, 11:01 AM · Restricted Project, Restricted Project
amandatang updated the summary of D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.
Aug 9 2023, 11:00 AM · Restricted Project, Restricted Project
amandatang requested review of D157528: [mlir] Commutativity Operand Sorting Pattern Bug Fixes.
Aug 9 2023, 10:52 AM · Restricted Project, Restricted Project

Jul 20 2023

amandatang committed rG057fc8e7d8a3: [ODS] Use Adaptor Trait for Shaped Type Inference (authored by amandatang).
[ODS] Use Adaptor Trait for Shaped Type Inference
Jul 20 2023, 12:41 PM · Restricted Project, Restricted Project
amandatang closed D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.
Jul 20 2023, 12:41 PM · Restricted Project, Restricted Project

Jul 19 2023

amandatang updated the diff for D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.

Clang format

Jul 19 2023, 1:43 PM · Restricted Project, Restricted Project
amandatang updated the diff for D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.

Address comments

Jul 19 2023, 10:54 AM · Restricted Project, Restricted Project

Jul 18 2023

amandatang updated the diff for D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.

rebase

Jul 18 2023, 2:51 PM · Restricted Project, Restricted Project
amandatang updated the summary of D155637: [ODS] Quick fix.
Jul 18 2023, 1:53 PM · Restricted Project, Restricted Project
amandatang updated the summary of D155637: [ODS] Quick fix.
Jul 18 2023, 1:53 PM · Restricted Project, Restricted Project
amandatang committed rG729ffb5cdf3e: [ODS] Quick fix (authored by amandatang).
[ODS] Quick fix
Jul 18 2023, 1:44 PM · Restricted Project, Restricted Project
amandatang closed D155637: [ODS] Quick fix.
Jul 18 2023, 1:44 PM · Restricted Project, Restricted Project
amandatang added a comment to D155115: [ODS] Use Adaptor Traits for Type Inference.

Here's a patch that fixes the issue: https://reviews.llvm.org/D155637

Jul 18 2023, 1:37 PM · Restricted Project, Restricted Project
amandatang retitled D155637: [ODS] Quick fix from Quick fix to [ODS] Quick fix.
Jul 18 2023, 1:37 PM · Restricted Project, Restricted Project
amandatang requested review of D155637: [ODS] Quick fix.
Jul 18 2023, 1:35 PM · Restricted Project, Restricted Project
amandatang added a comment to D155115: [ODS] Use Adaptor Traits for Type Inference.

This broke the bot, can you fix or revert?

https://lab.llvm.org/buildbot/#/builders/61/builds/46176

+ /vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/bin/FileCheck /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py
error: missing shape attribute
Traceback (most recent call last):
  File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 17, in <module>
    def testConstShape():
  File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 11, in run
    f()
  File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 26, in testConstShape
    def const_shape_tensor(arg):
  File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/tools/mlir/python_packages/mlir_core/mlir/dialects/_func_ops_ext.py", line 190, in decorator
    return_values = f(*func_args, **func_kwargs)
  File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/python/dialects/shape.py", line 30, in const_shape_tensor
    x = shape.ConstShapeOp([1, 2])
  File "/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/tools/mlir/python_packages/mlir_core/mlir/dialects/_shape_ops_gen.py", line 278, in __init__
    results = _ods_ir.InferTypeOpInterface(ConstShapeOp).inferReturnTypes(
ValueError: Failed to infer result types
Jul 18 2023, 12:06 PM · Restricted Project, Restricted Project
amandatang committed rG5267ed05bc46: [ODS] Use Adaptor Traits for Type Inference (authored by amandatang).
[ODS] Use Adaptor Traits for Type Inference
Jul 18 2023, 10:59 AM · Restricted Project, Restricted Project
amandatang closed D155115: [ODS] Use Adaptor Traits for Type Inference.
Jul 18 2023, 10:59 AM · Restricted Project, Restricted Project

Jul 17 2023

amandatang added inline comments to D155115: [ODS] Use Adaptor Traits for Type Inference.
Jul 17 2023, 9:19 AM · Restricted Project, Restricted Project

Jul 14 2023

amandatang updated the diff for D155115: [ODS] Use Adaptor Traits for Type Inference.

Use function overloading

Jul 14 2023, 10:34 AM · Restricted Project, Restricted Project
amandatang updated the diff for D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.

Use function overloading

Jul 14 2023, 10:19 AM · Restricted Project, Restricted Project

Jul 13 2023

amandatang updated the diff for D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.

clang format

Jul 13 2023, 4:02 PM · Restricted Project, Restricted Project
amandatang retitled D155243: [ODS] Use Adaptor Trait for Shaped Type Inference from Use Adaptor Wrapper Trait for Shaped Type Inference to [ODS] Use Adaptor Trait for Shaped Type Inference.
Jul 13 2023, 3:57 PM · Restricted Project, Restricted Project
amandatang requested review of D155243: [ODS] Use Adaptor Trait for Shaped Type Inference.
Jul 13 2023, 3:55 PM · Restricted Project, Restricted Project
amandatang added a reviewer for D155115: [ODS] Use Adaptor Traits for Type Inference: okwank. amandatang removed 1 blocking reviewer(s) for D155115: [ODS] Use Adaptor Traits for Type Inference: jpienaar.
Jul 13 2023, 9:37 AM · Restricted Project, Restricted Project

Jul 12 2023

amandatang updated the diff for D155115: [ODS] Use Adaptor Traits for Type Inference.

Fix naming

Jul 12 2023, 2:12 PM · Restricted Project, Restricted Project
amandatang requested review of D155115: [ODS] Use Adaptor Traits for Type Inference.
Jul 12 2023, 1:33 PM · Restricted Project, Restricted Project

Jul 11 2023

amandatang updated the diff for D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.

Address final comments

Jul 11 2023, 9:47 AM · Restricted Project, Restricted Project

Jul 10 2023

amandatang updated the diff for D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.

Update documentation

Jul 10 2023, 2:52 PM · Restricted Project, Restricted Project
amandatang added inline comments to D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.
Jul 10 2023, 11:19 AM · Restricted Project, Restricted Project
amandatang updated the diff for D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.

Address comments

Jul 10 2023, 11:18 AM · Restricted Project, Restricted Project

Jul 7 2023

amandatang updated the diff for D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.

Quick fix

Jul 7 2023, 3:09 PM · Restricted Project, Restricted Project
amandatang updated the diff for D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.

clang format

Jul 7 2023, 2:13 PM · Restricted Project, Restricted Project
amandatang added a reviewer for D154731: [ODS] Extra Concrete Declarations and Definitions under Traits: jpienaar.
Jul 7 2023, 11:10 AM · Restricted Project, Restricted Project
amandatang requested review of D154731: [ODS] Extra Concrete Declarations and Definitions under Traits.
Jul 7 2023, 11:08 AM · Restricted Project, Restricted Project

Jul 6 2023

amandatang abandoned D154671: [ODS] Extra Concrete Declarations and Definitions under Traits.
Jul 6 2023, 6:34 PM · Restricted Project, Restricted Project
amandatang removed reviewers for D146132: [mlir] tosa.concat - Add InferTensorType interface: nicolasvasilache, rsuderman.
Jul 6 2023, 6:32 PM · Restricted Project, Restricted Project
amandatang retitled D154671: [ODS] Extra Concrete Declarations and Definitions under Traits from Extra Concrete Declarations and Definitions under Traits to [ODS] Extra Concrete Declarations and Definitions under Traits.
Jul 6 2023, 6:24 PM · Restricted Project, Restricted Project
amandatang retitled D154671: [ODS] Extra Concrete Declarations and Definitions under Traits from Summary: Support extra concrete class declarations and definitions under NativeTrait that get injected into the class that specifies the trait. Extra declarations and definitions can be passed in as template arguments for NativeOpTrait... to Extra Concrete Declarations and Definitions under Traits.
Jul 6 2023, 6:24 PM · Restricted Project, Restricted Project
amandatang requested review of D154671: [ODS] Extra Concrete Declarations and Definitions under Traits.
Jul 6 2023, 6:22 PM · Restricted Project, Restricted Project

Jun 13 2023

amandatang updated the diff for D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.

Pull new changes and fix build failure

Jun 13 2023, 9:34 PM · Restricted Project, Restricted Project

Jun 5 2023

amandatang added inline comments to D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.
Jun 5 2023, 2:42 PM · Restricted Project, Restricted Project
amandatang updated the diff for D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.

Use one getGetterName method and logic to handle attributes beginning with has

Jun 5 2023, 1:59 PM · Restricted Project, Restricted Project

Jun 1 2023

amandatang updated the diff for D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.

Reverted changes for AttrName getters and fixed tests

Jun 1 2023, 3:34 PM · Restricted Project, Restricted Project

May 31 2023

amandatang added inline comments to D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.
May 31 2023, 2:55 PM · Restricted Project, Restricted Project
amandatang added a comment to D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.

One thing that's kind of popped up while reading the review is that this going to skew towards attributes with certain naming schemes, which needs to be documented. This is a bit because I feel that 'is' doesn't read well for a number of different cases.

May 31 2023, 2:54 PM · Restricted Project, Restricted Project
amandatang added inline comments to D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.
May 31 2023, 2:37 PM · Restricted Project, Restricted Project
amandatang added a reviewer for D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors: jpienaar.
May 31 2023, 11:17 AM · Restricted Project, Restricted Project
amandatang updated the summary of D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.
May 31 2023, 10:57 AM · Restricted Project, Restricted Project
amandatang requested review of D151821: [ODS] Use 'is' instead of 'get' to prefix optional UnitAttr accessors.
May 31 2023, 10:53 AM · Restricted Project, Restricted Project