aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2025-10-28 00:47:26 -0700
committerGitHub <noreply@github.com>2025-10-28 07:47:26 +0000
commitab1fd21b541056ccd1e0584e438082f417ad3cb4 (patch)
tree6b727b14e1216f6aa7f37d0a6723b1a9aa273721 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parentf49cd170c0a05875542d4e042265b05312fa00ef (diff)
downloadllvm-ab1fd21b541056ccd1e0584e438082f417ad3cb4.zip
llvm-ab1fd21b541056ccd1e0584e438082f417ad3cb4.tar.gz
llvm-ab1fd21b541056ccd1e0584e438082f417ad3cb4.tar.bz2
[MLIR] Revamp RegionBranchOpInterface (#161575)
This is still somehow a WIP, we have some issues with this interface that are not trivial to solve. This patch tries to make the concepts of RegionBranchPoint and RegionSuccessor more robust and aligned with their definition: - A `RegionBranchPoint` is either the parent (`RegionBranchOpInterface`) op or a `RegionBranchTerminatorOpInterface` operation in a nested region. - A `RegionSuccessor` is either one of the nested region or the parent `RegionBranchOpInterface` Some new methods with reasonnable default implementation are added to help resolving the flow of values across the RegionBranchOpInterface. It is still not trivial in the current state to walk the def-use chain backward with this interface. For example when you have the 3rd block argument in the entry block of a for-loop, finding the matching operands requires to know about the hidden loop iterator block argument and where the iterargs start. The API is designed around forward-tracking of the chain unfortunately.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions