[flang] [llvm] [flang] Implement DSECNDS intrinsic (PGI extension) (PR #157573)

Šárka Holendová via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 10 11:04:44 PDT 2025


================
@@ -13,11 +13,10 @@ function use_dsecnds(refTime) result(elapsed)
 ! CHECK: %[[FNAME8:.*]] = fir.convert %[[STRADDR]] : (!fir.ref<!fir.char<1,{{.*}}>>) -> !fir.ref<i8>
 
 ! Call the runtime DSECNDS with (refTime, file, line)
-! CHECK: %[[CALL:.*]] = fir.call @_FortranADsecnds(%[[arg0]], %[[FNAME8]], %[[LINE]]) {{.*}} : (!fir.ref<f64>, !fir.ref<i8>, i32) -> f64
+! CHECK: %[[CALL:.*]] = fir.call @_FortranADsecnds(%{{.*}}, %{{.*}}, %{{.*}}) {{.*}} : (!fir.ref<f64>, !fir.ref<i8>, i32) -> f64
----------------
mlir-maiden wrote:

Thank you Eugene, I updated the test to reuse the captured defs. Still learning my way around LIT. Is there an up-to-date resource you'd recommend?

https://github.com/llvm/llvm-project/pull/157573


More information about the llvm-commits mailing list