Details
Details
- Reviewers
jpienaar silvas - Commits
- rGd690cbf821f1: Add DivOp to the Shape dialect
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td | ||
---|---|---|
144 | Divides | |
149–152 | I think lets turn these around and say it follows floor(x / y) [I mean the equation of interest to me is mod(a, n) = a - n * floor(a / n) and yes it corresponds to python operator but the motivation is inverted for me :) ] | |
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
605 | Same here | |
mlir/test/Dialect/Shape/canonicalize.mlir | ||
889 | Could you add div(10, -4) too? (wouldn't matter for div but could for mod, and then I'd want to just extend these tests in that case) |
Divides