[PATCH] D72533: [mlir] Add a signedness semantics bit to IntegerType
Jacques Pienaar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 25 09:04:56 PST 2020
jpienaar added inline comments.
================
Comment at: mlir/lib/IR/Attributes.cpp:283
+int64_t IntegerAttr::getInt() const {
+ assert(!getImpl()->getType().isUnsignedInteger() &&
+ "integer signedness unsupported");
----------------
antiagainst wrote:
> rriddle wrote:
> > This is a slightly concerning. Is your plan to have getSInt/getUInt? Or remove this all together?
> I don't plan to add getSInt/getUInt at the moment because there is a TODO for removing this API entirely. I'm not sure whether that's still planned? @jpienaar
Which TODO are you referring to?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72533/new/
https://reviews.llvm.org/D72533
More information about the llvm-commits
mailing list