Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:38

0001 //===---- CoroEarly.h - Lower early coroutine intrinsics --------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // \file
0010 // This file provides the interface to the early coroutine intrinsic lowering
0011 // pass. This pass lowers coroutine intrinsics that hide the details of the
0012 // exact calling convention for coroutine resume and destroy functions and
0013 // details of the structure of the coroutine frame.
0014 //
0015 //===----------------------------------------------------------------------===//
0016 
0017 #ifndef LLVM_TRANSFORMS_COROUTINES_COROEARLY_H
0018 #define LLVM_TRANSFORMS_COROUTINES_COROEARLY_H
0019 
0020 #include "llvm/IR/PassManager.h"
0021 
0022 namespace llvm {
0023 
0024 class Module;
0025 
0026 struct CoroEarlyPass : PassInfoMixin<CoroEarlyPass> {
0027   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0028   static bool isRequired() { return true; }
0029 };
0030 } // end namespace llvm
0031 
0032 #endif // LLVM_TRANSFORMS_COROUTINES_COROEARLY_H