[llvm-branch-commits] [mlir] [mlir][IR] Add helper functions to compute insertion point (PR #114940)
Matthias Springer via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 8 22:22:20 PST 2024
================
@@ -334,6 +334,18 @@ class OpBuilder : public Builder {
/// This class represents a saved insertion point.
class InsertPoint {
public:
+ /// Finds the closest insertion point where all given values are defined
----------------
matthias-springer wrote:
Possible candidates are the points (`Block::iterator`) right after the definition of each value. I will take a look at all of these and find the one that post-dominates all the others. I think there should be only one such point. Will update this PR accordingly soon...
https://github.com/llvm/llvm-project/pull/114940
More information about the llvm-branch-commits
mailing list