EDSC: use llvm::function_ref instead of std::function
authorAlex Zinenko <zinenko@google.com>
Wed, 29 May 2019 12:47:15 +0000 (05:47 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:06:30 +0000 (20:06 -0700)
commit33dc956647076d9a1e214db53099b82b012025b9
treed11bbde8073e8d8a9a9ee8ab1b066f059f742fb0
parent3ad0fa95d1eab30c517817a6bcc191ecdf77a1e8
EDSC: use llvm::function_ref instead of std::function

    Region body constructors in EDSC now take a callback to the function that fills
    in the body.  This callback is called immediately and not stored, so it is
    sufficient to pass a reference to it and avoid a potentially expensive copy.

--

PiperOrigin-RevId: 250473793
mlir/include/mlir/EDSC/Builders.h
mlir/lib/EDSC/Builders.cpp