Make EDSC builder test more robust to the order of evaluation
authorAlex Zinenko <zinenko@google.com>
Wed, 22 May 2019 19:13:54 +0000 (12:13 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 02:56:34 +0000 (19:56 -0700)
commit29c7929b13b6e47e3d498b8d82186183471b82f2
tree86a7abcb031d5598c0562ea827a34a1857d5ccd4
parentd15d107da104fb8e41feeb37a86228263e79e91b
Make EDSC builder test more robust to the order of evaluation

    EDSC builder test uses FileCheck to match the IR produced by EDSC in the
    textual order.  For mathematical operations, EDSC relies on overloaded
    operators.  Since they are essentially function calls, the order of evaluation
    of their operands is unspecified and differs between compilers.  Do not rely on
    a specific order of operands and just check they are all emitted before the
    last operation.  Give names to matched SSA values in order to make sure the
    right operands are used in relevant places.

--

PiperOrigin-RevId: 249494995
mlir/test/CMakeLists.txt
mlir/test/EDSC/CMakeLists.txt
mlir/test/EDSC/builder-api-test.cpp
mlir/test/EDSC/lit.local.cfg [new file with mode: 0644]