This update makes the user visible messages relating to features that are not yet implemented be more consistent. I also cleaned up some of the code. For NYI messages that refer to intrinsics, I made sure the the message begins with "not yet implemented: intrinsic:" to make them easier to recognize. I created some utility functions for NYI reporting that I put into .../include/Optimizer/Support/Utils.h. These mainly convert MLIR types to their Fortran equivalents. I converted the NYI code to use the newly created utility functions.
11 lines
299 B
Fortran
11 lines
299 B
Fortran
! There is no quad math runtime available in lowering
|
|
! for now. Test that the TODO are emitted correctly.
|
|
! RUN: bbc -emit-fir %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
complex(16) :: a
|
|
real(16) :: b
|
|
! CHECK: not yet implemented: no math runtime available for 'ABS(COMPLEX(KIND=16))'
|
|
b = abs(a)
|
|
end
|
|
|