llvm-project
c67d27da - [mlir][Presburger] NFC: return var index from IntegerRelation::addLocalFloorDiv (#153463)

Commit
250 days ago
[mlir][Presburger] NFC: return var index from IntegerRelation::addLocalFloorDiv (#153463) addLocalFloorDiv currently returns void and requires the caller to know that the newly added local variable is in a particular index. This commit returns the index of the newly added variable so that callers need not tie themselves to this implementation detail. I found one relevant callsite demonstrating this and updated it. I am using this API out of tree and wanted to make our out-of-tree code a bit more resilient to upstream changes.
Author
Parents
Loading