[llvm] [Coroutines] ABI Objects to improve code separation between different ABIs, users and utilities. (PR #109338)

Tyler Nowicki via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 09:55:39 PDT 2024


================
@@ -21,19 +21,26 @@
 
 namespace llvm {
 
+namespace coro {
+class BaseABI;
+class Shape;
+} // namespace coro
+
 struct CoroSplitPass : PassInfoMixin<CoroSplitPass> {
-  const std::function<bool(Instruction &)> MaterializableCallback;
+  // BaseABITy generates an instance of a coro ABI.
+  using BaseABITy = std::function<coro::BaseABI *(Function &, coro::Shape &)>;
----------------
TylerNowicki wrote:

Done

https://github.com/llvm/llvm-project/pull/109338


More information about the llvm-commits mailing list