[Mlir-commits] [mlir] [mlir][emitc] Add EmitC index types (PR #93155)

Marius Brehler llvmlistbot at llvm.org
Mon Jun 3 04:37:31 PDT 2024


================
@@ -37,3 +37,28 @@ void mlir::populateEmitCSizeTTypeConversions(TypeConverter &converter) {
   converter.addTargetMaterialization(materializeAsUnrealizedCast);
   converter.addArgumentMaterialization(materializeAsUnrealizedCast);
 }
+
+/// Get an unsigned data type as wide as \p ty.
----------------
marbre wrote:

I would say it it is not guaranteed...

> The bit width of size_t is not less than 16. (since C99)

> The bit width of ptrdiff_t is not less than 17. (since C99) (until C23)
> The bit width of ptrdiff_t is not less than 16. (since C23)

https://github.com/llvm/llvm-project/pull/93155


More information about the Mlir-commits mailing list