[Coroutines] Modify CoroFrame materializable into a callback
authorDavid Stuttard <david.stuttard@amd.com>
Thu, 19 Jan 2023 13:55:49 +0000 (13:55 +0000)
committerDavid Stuttard <david.stuttard@amd.com>
Mon, 13 Feb 2023 11:02:25 +0000 (11:02 +0000)
commitc4f7cc867299b03036bdf5f9bf535a8da5dd6970
treeefcbb0c9daeec90b46f0cea25dfe5cf14fef2049
parent3e51af9b5b3a2a1e4793fdaba9aa57c09d0b77cc
[Coroutines] Modify CoroFrame materializable into a callback

This change makes it possible to optionally provide a different callback to
determine if an instruction is materializable.

By default the behaviour is unchanged.

Differential Revision: https://reviews.llvm.org/D142621
llvm/include/llvm/Transforms/Coroutines/CoroSplit.h
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/lib/Transforms/Coroutines/CoroInternal.h
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/unittests/Transforms/CMakeLists.txt
llvm/unittests/Transforms/Coroutines/CMakeLists.txt [new file with mode: 0644]
llvm/unittests/Transforms/Coroutines/ExtraRematTest.cpp [new file with mode: 0644]