mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 06:56:44 +00:00

Currently the local builder used in IntrinsicCall doesn't have the fastmath flags passed to it. This results in the fastmath attribute not being added to certain runtime calls. This patch simply forwards the fastmath flags from the parent builder. Differential Revision: https://reviews.llvm.org/D154611
11 lines
322 B
Fortran
11 lines
322 B
Fortran
! RUN: bbc -outline-intrinsics %s -o - | tco --disable-llvm --mlir-print-ir-after=fir-to-llvm-ir 2>&1 | FileCheck %s
|
|
|
|
! Test properties of intrinsic function wrappers
|
|
|
|
! Test that intrinsic wrappers have internal linkage
|
|
function foo(x)
|
|
foo = acos(x)
|
|
end function
|
|
|
|
! CHECK: llvm.func internal @fir.acos.contract.f32.f32
|