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

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


  Branch: refs/heads/users/matthias-springer/value_bounds_dump
  Home:   https://github.com/llvm/llvm-project
  Commit: 74216957c62dbd90fefe1e226c5cbabfd60b8398
      https://github.com/llvm/llvm-project/commit/74216957c62dbd90fefe1e226c5cbabfd60b8398
  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