llvm-project/clang/test/CodeGenCoroutines
Chuanqi Xu c75cedc237 [Coroutines] Set presplit attribute in Clang and mlir
This fixes bug49264.

Simply, coroutine shouldn't be inlined before CoroSplit. And the marker
for pre-splited coroutine is created in CoroEarly pass, which ran after
AlwaysInliner Pass in O0 pipeline. So that the AlwaysInliner couldn't
detect it shouldn't inline a coroutine. So here is the error.

This patch set the presplit attribute in clang and mlir. So the inliner
would always detect the attribute before splitting.

Reviewed By: rjmccall, ezhulenev

Differential Revision: https://reviews.llvm.org/D115790
2022-01-05 10:25:02 +08:00
..
Inputs [Coroutines] Make suspend_always in test noexcept (NFC) 2021-12-01 16:16:36 +08:00
coro-alloc-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-alloc.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-always-inline-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-always-inline.cpp [Coroutines] Set presplit attribute in Clang and mlir 2022-01-05 10:25:02 +08:00
coro-attributes.cpp [Coroutines] Set presplit attribute in Clang and mlir 2022-01-05 10:25:02 +08:00
coro-await-domination-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-await-domination.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-await-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-await-resume-eh-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-await-resume-eh.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-await.cpp [NFC] Fix lit test failures for clang/CodegenCoroutines 2021-11-09 02:47:16 +09:00
coro-builtins-err.c
coro-builtins.c [Coroutines] Remove unused coroutine builtin/intrinsics llvm.coro.param (NFC-ish) 2021-12-09 14:40:25 +08:00
coro-cleanup-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-cleanup.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-dest-slot-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-dest-slot.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-dwarf-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-dwarf.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-eh-cleanup-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-eh-cleanup.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-gro-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-gro-nrvo-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-gro-nrvo.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-gro.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-lambda-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-lambda.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-newpm-pipeline-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-newpm-pipeline.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-params-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-params.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-promise-dtor-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-promise-dtor.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-ret-void-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-ret-void.cpp [NFC] Fix lit test failures for clang/CodegenCoroutines 2021-11-09 02:47:16 +09:00
coro-return-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-return-voidtype-initlist-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-return-voidtype-initlist.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-return.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-symmetric-transfer-01-exp-namespace.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-symmetric-transfer-01.cpp Revert "[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default" 2021-11-09 02:15:55 +09:00
coro-symmetric-transfer-02-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-symmetric-transfer-02.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-unhandled-exception-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
coro-unhandled-exception.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
microsoft-abi-operator-coawait-exp-namespace.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
microsoft-abi-operator-coawait.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00