62
62
63
63
# NOTE: fixed set where sizeof(T) does match the numerical width
64
64
const SizeableInteger = Union{Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128}
65
- function ConstantInt (val:: T , ctx:: Context = GlobalContext () ) where T<: SizeableInteger
65
+ function ConstantInt (val:: T , ctx:: Context ) where T<: SizeableInteger
66
66
typ = IntType (sizeof (T)* 8 , ctx)
67
67
return ConstantInt (typ, val, T<: Signed )
68
68
end
@@ -82,11 +82,11 @@ identify(::Type{Value}, ::Val{API.LLVMConstantFPValueKind}) = ConstantFP
82
82
ConstantFP (typ:: FloatingPointType , val:: Real ) =
83
83
ConstantFP (API. LLVMConstReal (typ, Cdouble (val)))
84
84
85
- ConstantFP (val:: Float16 , ctx:: Context = GlobalContext () ) =
85
+ ConstantFP (val:: Float16 , ctx:: Context ) =
86
86
ConstantFP (HalfType (ctx), val)
87
- ConstantFP (val:: Float32 , ctx:: Context = GlobalContext () ) =
87
+ ConstantFP (val:: Float32 , ctx:: Context ) =
88
88
ConstantFP (FloatType (ctx), val)
89
- ConstantFP (val:: Float64 , ctx:: Context = GlobalContext () ) =
89
+ ConstantFP (val:: Float64 , ctx:: Context ) =
90
90
ConstantFP (DoubleType (ctx), val)
91
91
92
92
Base. convert (:: Type{T} , val:: ConstantFP ) where {T<: AbstractFloat } =
0 commit comments