Add ArithBuilder::sub, make add, mul work with IndexTypes.
authorJohannes Reifferscheid <jreiffers@google.com>
Mon, 5 Sep 2022 09:25:58 +0000 (11:25 +0200)
committerJohannes Reifferscheid <jreiffers@google.com>
Mon, 5 Sep 2022 10:44:19 +0000 (12:44 +0200)
commit34f4a9ef2a1de4aad978d0185f77b484077849bf
treea883385cab4c8e640cd2a3bf08abd069db385b8b
parent8f33a3abb393012444787187649030f8ac401d8c
Add ArithBuilder::sub, make add, mul work with IndexTypes.

sgt and slt already worked with IndexTypes, the others did not.

Reviewed By: pifon2a

Differential Revision: https://reviews.llvm.org/D133285
mlir/include/mlir/Dialect/Arithmetic/Utils/Utils.h
mlir/lib/Dialect/Arithmetic/Utils/Utils.cpp