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

Simon Camphausen llvmlistbot at llvm.org
Mon Jun 3 06:13:15 PDT 2024


================
@@ -41,6 +41,8 @@ func.func @cast(%arg0: i32) {
 
 func.func @c() {
   %1 = "emitc.constant"(){value = 42 : i32} : () -> i32
+  %2 = "emitc.constant"(){value = 42 : index} : () -> !emitc.size_t
+  %3 = "emitc.constant"(){value = 42 : index} : () -> !emitc.ssize_t
   return
----------------
simon-camp wrote:

Add a test for ptrdiff_t.

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


More information about the Mlir-commits mailing list