[Mlir-commits] [mlir] [llvm] [mlir][bufferization] Add `BufferViewFlowOpInterface` (PR #78718)

Aart Bik llvmlistbot at llvm.org
Wed Jan 24 10:02:04 PST 2024


================
@@ -63,13 +63,19 @@ class BufferViewFlowAnalysis {
   /// results have to be changed.
   void rename(Value from, Value to);
 
+  /// Return "true" if the given value is a terminal.
+  bool isTerminalBuffer(Value value) const;
+
 private:
   /// This function constructs a mapping from values to its immediate
   /// dependencies.
   void build(Operation *op);
 
   /// Maps values to all immediate dependencies this value can have.
   ValueMapT dependencies;
+
+  /// A set of all terminal values. I.e., values at which the analysis stopped.
----------------
aartbik wrote:

values where the analysis stops?

reads a bit cleaner to me

https://github.com/llvm/llvm-project/pull/78718


More information about the Mlir-commits mailing list