From cdbda7cf26bc1cddd418aa7eef766e6e2ce81b0e Mon Sep 17 00:00:00 2001 From: Sam Schweigel <33556084+xal-0@users.noreply.github.com> Date: Fri, 31 Jan 2025 12:17:20 -0800 Subject: [PATCH] Rename _FLOAT_TYPES to CORE_FLOAT_TYPES Co-authored-by: Jameson Nash --- Compiler/src/tfuncs.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Compiler/src/tfuncs.jl b/Compiler/src/tfuncs.jl index ef3c5242751307..1abbad546d3754 100644 --- a/Compiler/src/tfuncs.jl +++ b/Compiler/src/tfuncs.jl @@ -2455,7 +2455,7 @@ const _SPECIAL_BUILTINS = Any[ ] # Types compatible with fpext/fptrunc -const _FLOAT_TYPES = Any[Core.BFloat16, Float16, Float32, Float64] +const CORE_FLOAT_TYPES = Union{Core.BFloat16, Float16, Float32, Float64} function isdefined_effects(𝕃::AbstractLattice, argtypes::Vector{Any}) # consistent if the first arg is immutable @@ -2873,7 +2873,7 @@ function intrinsic_exct(𝕃::AbstractLattice, f::IntrinsicFunction, argtypes::V # fpext and fptrunc have further restrictions on the allowed types. if f === Intrinsics.fpext && - !(ty in _FLOAT_TYPES && xty in _FLOAT_TYPES && Core.sizeof(ty) > Core.sizeof(xty)) + !(ty <: CORE_FLOAT_TYPES && xty <: CORE_FLOAT_TYPES && Core.sizeof(ty) > Core.sizeof(xty)) return ErrorException end if f === Intrinsics.fptrunc &&