llvm-project/mlir/test/CAPI
Markus Böck 09b5ebc07b [mlir][CAPI][test] Change casts and fprintf format strings from long to intptr_t
A test in ir.c makes use of casting a void* to an integer type to print it's address. This cast is currently done with the datatype `long` however, which is only guaranteed to be equal to the pointer width on LP64 system. Other platforms may use a length not equal to the pointer width. 64bit Windows as an example uses 32 bit for `long` which does not match the 64 bit pointers.
This also results in clang warning due to `-Wvoid-pointer-to-int-cast`.

Technically speaking, since the test only passes the value 42, it does not cause any issues, but it'd be nice to fix the warning at least.

Differential Revision: https://reviews.llvm.org/D103085
2021-05-25 17:48:54 +02:00
..
CMakeLists.txt [mlir][CAPI] Add CAPI bindings for the sparse_tensor dialect. 2021-05-10 16:54:56 +00:00
execution_engine.c [MLIR][PYTHON] Provide opt level for ExecutionEngine Python binding 2021-05-16 13:58:49 +05:30
ir.c [mlir][CAPI][test] Change casts and fprintf format strings from long to intptr_t 2021-05-25 17:48:54 +02:00
lit.local.cfg
pass.c Define a `NoTerminator` traits that allows operations with a single block region to not provide a terminator 2021-03-25 03:59:03 +00:00
sparse_tensor.c [mlir] Fix windows build bot break due to use of `alloca` in a test. 2021-05-10 20:39:16 +00:00