[llvm] [Coroutines] ABI Objects to improve code separation between different ABIs, users and utilities. (PR #109338)
Chuanqi Xu via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 20:31:00 PDT 2024
================
@@ -2207,8 +2196,53 @@ static void addPrepareFunction(const Module &M,
Fns.push_back(PrepareFn);
}
+static coro::BaseABI *CreateNewABI(Function &F, coro::Shape &S) {
+ switch (S.ABI) {
+ case coro::ABI::Switch:
+ return new coro::SwitchABI(F, S);
----------------
ChuanqiXu9 wrote:
let's try to use std::unique_ptr here
https://github.com/llvm/llvm-project/pull/109338
More information about the llvm-commits
mailing list