[all-commits] [llvm/llvm-project] ededa6: [mlir][Interfaces] `ValueBoundsConstraintSet`: Add...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Mar 25 23:34:08 PDT 2024


  Branch: refs/heads/users/matthias-springer/value_bounds_dump
  Home:   https://github.com/llvm/llvm-project
  Commit: ededa6c32a03738d9c21841e073e8b6a90f8b70d
      https://github.com/llvm/llvm-project/commit/ededa6c32a03738d9c21841e073e8b6a90f8b70d
  Author: Matthias Springer <springerm at google.com>
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
    M mlir/include/mlir/Interfaces/ValueBoundsOpInterface.h
    M mlir/lib/Interfaces/ValueBoundsOpInterface.cpp

  Log Message:
  -----------
  [mlir][Interfaces] `ValueBoundsConstraintSet`: Add `dump` helper function

This commit adds a helper function that dumps the constraint set and the mapping of columns to values/dims. For debugging only.

Example output:
```

Columns:
column	dim	value owner
0	1	linalg.fill
1	1	tensor.extract_slice
2	n/a	affine.min
3	n/a	scf.for
4	n/a	func.func

Constraint set:
Domain: 0, Range: 1, Symbols: 4, Locals: 0
6 constraints
(None	None	None	None	None	const)
 1	-1	0	0	0	0	= 0
 0	1	-1	0	0	0	= 0
 0	0	-1	-1	1	0	>= 0
 0	0	-1	0	0	4	>= 0
 0	0	0	1	0	0	>= 0
 0	0	0	-1	1	-1	>= 0

```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list