aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMaheshRavishankar <1663364+MaheshRavishankar@users.noreply.github.com>2025-03-12 08:30:43 -0700
committerGitHub <noreply@github.com>2025-03-12 08:30:43 -0700
commit665299eb3e7a142199e2c22eb294c5e01ef1655d (patch)
tree6302831d4ae1e9e1e8e798a4edccf384d9a2a153 /flang/lib/Frontend/CompilerInvocation.cpp
parente11ede5e90ee193dde179fe1a9ac9af718ede3db (diff)
downloadllvm-665299eb3e7a142199e2c22eb294c5e01ef1655d.zip
llvm-665299eb3e7a142199e2c22eb294c5e01ef1655d.tar.gz
llvm-665299eb3e7a142199e2c22eb294c5e01ef1655d.tar.bz2
[mlir][Transforms] Add a utility method to move value definitions. (#130874)
https://github.com/llvm/llvm-project/commit/205c5325b3c771d94feb0ec07e8ad89d27c2b29e added a transform utility that moved all SSA dependences of an operation before an insertion point. Similar to that, this PR adds a transform utility function, `moveValueDefinitions` to move the slice of operations that define all values in a `ValueRange` before the insertion point. While very similar to `moveOperationDependencies`, this method differs in a few ways 1. When computing the backward slice since the start of the slice is value, the slice computed needs to be inclusive. 2. The combined backward slice needs to be sorted topologically before moving them to avoid SSA use-def violations while moving individual ops. The PR also adds a new transform op to test this new utility function. --------- Signed-off-by: MaheshRavishankar <mahesh.ravishankar@gmail.com>
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions