[Mlir-commits] [mlir] [mlir][emitc] Add EmitC index types (PR #93155)
Matthias Gehre
llvmlistbot at llvm.org
Wed May 29 02:32:56 PDT 2024
================
@@ -56,9 +56,9 @@ std::optional<Type> mlir::emitc::getSignedTypeFor(Type ty) {
if (ty.isInteger())
return IntegerType::get(ty.getContext(), ty.getIntOrFloatBitWidth(),
IntegerType::SignednessSemantics::Signed);
- if (isa<emitc::SizeTType>(ty))
- return emitc::PtrDiffTType::get(ty.getContext());
- if (isSupportedIntegerType(ty))
+ if (isa<SizeTType, SignedSizeTType>(ty))
----------------
mgehre-amd wrote:
Why do we need to convert `SignedSizeTType` here - it's already signed?
https://github.com/llvm/llvm-project/pull/93155
More information about the Mlir-commits
mailing list