[mlir] [VectorOps] Add create mask integration tests
authoraartbik <ajcbik@google.com>
Tue, 16 Jun 2020 19:15:40 +0000 (12:15 -0700)
committeraartbik <ajcbik@google.com>
Wed, 17 Jun 2020 18:44:28 +0000 (11:44 -0700)
commit9b22b29f684f6f5fbe3dd1478704270023f24226
treea661adbe1a72cbdab0fa19d3e2e45a0d966d9515
parent438f7fc068f9ba5555052c4af0b10f5e816c3a01
[mlir] [VectorOps] Add create mask integration tests

Summary:
Two integration tests focused on i1 vectors, which exposed omissions
in the llvm backend which have since then been fixed. Note that this also
exposed an inaccuracy for print_i1 which has been fixed in this CL:
for a pure C ABI, int should be used rather than bool.

Reviewers: nicolasvasilache, ftynse, reidtatge, andydavis1, bkramer

Reviewed By: bkramer

Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, msifontes

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D81957
mlir/include/mlir/ExecutionEngine/CRunnerUtils.h
mlir/integration_test/Dialect/Vector/CPU/test-create-mask-v4i1.mlir [new file with mode: 0644]
mlir/integration_test/Dialect/Vector/CPU/test-create-mask.mlir [new file with mode: 0644]
mlir/lib/ExecutionEngine/CRunnerUtils.cpp