[mlir] Modernize LLVM dialect rountrip test
authorAlex Zinenko <zinenko@google.com>
Fri, 26 Jun 2020 13:27:46 +0000 (15:27 +0200)
committerAlex Zinenko <zinenko@google.com>
Mon, 29 Jun 2020 07:47:36 +0000 (09:47 +0200)
commitfbeceb9cededf28fe4e8c46f209b20af276c1989
tree0ef55a57c9c36e04108fd35fee1fff8f84fc0794
parent117b9230a74cfbfe5e409adc2aa2d33c9c584a81
[mlir] Modernize LLVM dialect rountrip test

This test largely predates MLIR testing guidelines. Update it to match the
guidelines. In particular, avoid pattern-matching SSA value names, avoid
unnecessary CHECK-NEXT, relax assumptions about the form of SSA names.
Value-returning operations are still matched agaist _any_ name in order to
check that the operation indeed produces values.

Differential Revision: https://reviews.llvm.org/D82656
mlir/test/Dialect/LLVMIR/roundtrip.mlir