Commit c787475
committed
[flang] Register and lower SECNDS intrinsic (stubbed implementation)
- Updated SECNDS handler to pass `refTime` asAddr instead of asValue, matching the backend runtime contract (`float*`).
- Addressed review feedback in the lowering hook:
* Built the argument list using fir::runtime::createArguments
* Replaced previous call emission with fir::CallOp::create(...)
- Updated the regression test for SECNDS lowering to check argument passing, call signature, and return type.
- Added documentation for SECNDS to Intrinsics.md, including description, usage, and example.1 parent dae2e99 commit c787475
File tree
6 files changed
+87
-22
lines changed- flang
- docs
- include/flang/Optimizer/Builder/Runtime
- lib
- Evaluate
- Optimizer/Builder
- Runtime
- test/Lower/Intrinsics
6 files changed
+87
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1126 | 1153 | | |
1127 | 1154 | | |
1128 | 1155 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
929 | 928 | | |
930 | 929 | | |
931 | 930 | | |
| |||
1893 | 1892 | | |
1894 | 1893 | | |
1895 | 1894 | | |
1896 | | - | |
| 1895 | + | |
1897 | 1896 | | |
1898 | 1897 | | |
1899 | 1898 | | |
| |||
2697 | 2696 | | |
2698 | 2697 | | |
2699 | 2698 | | |
2700 | | - | |
| 2699 | + | |
2701 | 2700 | | |
2702 | 2701 | | |
2703 | 2702 | | |
| |||
3128 | 3127 | | |
3129 | 3128 | | |
3130 | 3129 | | |
3131 | | - | |
| 3130 | + | |
3132 | 3131 | | |
3133 | 3132 | | |
3134 | 3133 | | |
| |||
3634 | 3633 | | |
3635 | 3634 | | |
3636 | 3635 | | |
3637 | | - | |
| 3636 | + | |
3638 | 3637 | | |
3639 | 3638 | | |
3640 | 3639 | | |
| |||
3656 | 3655 | | |
3657 | 3656 | | |
3658 | 3657 | | |
3659 | | - | |
| 3658 | + | |
3660 | 3659 | | |
3661 | 3660 | | |
3662 | 3661 | | |
3663 | 3662 | | |
3664 | 3663 | | |
3665 | | - | |
| 3664 | + | |
3666 | 3665 | | |
3667 | 3666 | | |
3668 | 3667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| |||
7818 | 7818 | | |
7819 | 7819 | | |
7820 | 7820 | | |
7821 | | - | |
7822 | 7821 | | |
7823 | 7822 | | |
7824 | 7823 | | |
7825 | | - | |
| 7824 | + | |
| 7825 | + | |
| 7826 | + | |
| 7827 | + | |
| 7828 | + | |
| 7829 | + | |
| 7830 | + | |
| 7831 | + | |
| 7832 | + | |
| 7833 | + | |
7826 | 7834 | | |
7827 | 7835 | | |
7828 | 7836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
279 | 296 | | |
280 | 297 | | |
281 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
5 | 2 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
0 commit comments