[flang-commits] [flang] [flang]Add new intrinsic function backtrace and complete the TODO of abort (PR #117603)
via flang-commits
flang-commits at lists.llvm.org
Mon Dec 2 01:38:45 PST 2024
================
@@ -1336,6 +1336,7 @@ static const IntrinsicInterface intrinsicSubroutine[]{
{"stat", AnyInt, Rank::scalar, Optionality::optional,
common::Intent::Out}},
{}, Rank::elemental, IntrinsicClass::atomicSubroutine},
+ {"backtrace", {}, {}, Rank::elemental, IntrinsicClass::pureSubroutine},
----------------
jeanPerier wrote:
I do not think that `Exit` can be rewritten without front-end support because it has an OPTIONAL arguments, so it requires an explicit interface. Maybe `Abort` could be handled without front-end support, however, I think its NORETURN aspect is something that may be valuable to lowering (not leveraged yet), so it may be worth keeping it like this. @klausler, do you agree `Abort` and `Exit` need or benefit from front-end support, while `Backtrace` does not?
https://github.com/llvm/llvm-project/pull/117603
More information about the flang-commits
mailing list