[flang] Lower integer constant code for STOP stmt
authorValentin Clement <clementval@gmail.com>
Thu, 3 Feb 2022 10:30:50 +0000 (11:30 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 3 Feb 2022 10:31:12 +0000 (11:31 +0100)
commitca53e049e0130be8d922a6ae80a1dcbddea2b25b
tree002fb3374bd460afd6927fd099c6bb7e4b4c1463
parent20e05b9f0ebea35076b96c89257becd35d6de859
[flang] Lower integer constant code for STOP stmt

This patch lower the integer constant code in the STOP statement.

The code is lowered to `arith.constant`.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: schweitz, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D118787
flang/lib/Lower/Runtime.cpp
flang/test/Lower/stop-statement.f90