@@ -643,15 +643,15 @@ static AttributeList get_attrs_noreturn(LLVMContext &C)
643643 return AttributeList::get (C,
644644 Attributes (C, {Attribute::NoReturn}),
645645 AttributeSet (),
646- None );
646+ {} );
647647}
648648
649649static AttributeList get_attrs_basic (LLVMContext &C)
650650{
651651 return AttributeList::get (C,
652652 AttributeSet (),
653653 Attributes (C, {Attribute::NonNull}),
654- None );
654+ {} );
655655}
656656
657657static AttributeList get_attrs_box_float (LLVMContext &C, unsigned nbytes)
@@ -667,7 +667,7 @@ static AttributeList get_attrs_box_float(LLVMContext &C, unsigned nbytes)
667667 return AttributeList::get (C,
668668 AttributeSet::get (C, FnAttrs),
669669 AttributeSet::get (C, RetAttrs),
670- None );
670+ {} );
671671}
672672
673673static AttributeList get_attrs_box_sext (LLVMContext &C, unsigned nbytes)
@@ -954,7 +954,7 @@ static const auto jltopeval_func = new JuliaFunction<>{
954954 [](LLVMContext &C) { return AttributeList::get (C,
955955 AttributeSet (),
956956 Attributes (C, {Attribute::NonNull}),
957- None ); },
957+ {} ); },
958958};
959959static const auto jlcopyast_func = new JuliaFunction<>{
960960 XSTR (jl_copy_ast),
@@ -966,7 +966,7 @@ static const auto jlcopyast_func = new JuliaFunction<>{
966966 [](LLVMContext &C) { return AttributeList::get (C,
967967 AttributeSet (),
968968 Attributes (C, {Attribute::NonNull}),
969- None ); },
969+ {} ); },
970970};
971971static const auto jlapplygeneric_func = new JuliaFunction<>{
972972 XSTR (jl_apply_generic),
@@ -1072,7 +1072,7 @@ static const auto jlleave_func = new JuliaFunction<>{
10721072 return AttributeList::get (C,
10731073 AttributeSet::get (C, FnAttrs),
10741074 AttributeSet (),
1075- None );
1075+ {} );
10761076 },
10771077};
10781078static const auto jlleave_noexcept_func = new JuliaFunction<>{
@@ -1089,7 +1089,7 @@ static const auto jlleave_noexcept_func = new JuliaFunction<>{
10891089 return AttributeList::get (C,
10901090 AttributeSet::get (C, FnAttrs),
10911091 AttributeSet (),
1092- None );
1092+ {} );
10931093 },
10941094};
10951095static const auto jl_restore_excstack_func = new JuliaFunction<TypeFnContextAndSizeT>{
@@ -1119,7 +1119,7 @@ static const auto jlegalx_func = new JuliaFunction<TypeFnContextAndSizeT>{
11191119 return AttributeList::get (C,
11201120 AttributeSet::get (C, FnAttrs),
11211121 AttributeSet (),
1122- None ); },
1122+ {} ); },
11231123};
11241124static const auto jl_alloc_obj_func = new JuliaFunction<TypeFnContextAndSizeT>{
11251125 " julia.gc_alloc_obj" ,
@@ -1143,7 +1143,7 @@ static const auto jl_alloc_obj_func = new JuliaFunction<TypeFnContextAndSizeT>{
11431143 return AttributeList::get (C,
11441144 AttributeSet::get (C, FnAttrs),
11451145 AttributeSet::get (C, RetAttrs),
1146- None );
1146+ {} );
11471147 },
11481148};
11491149static const auto jl_alloc_genericmemory_unchecked_func = new JuliaFunction<TypeFnContextAndSizeT>{
@@ -1167,7 +1167,7 @@ static const auto jl_alloc_genericmemory_unchecked_func = new JuliaFunction<Type
11671167 return AttributeList::get (C,
11681168 AttributeSet::get (C, FnAttrs),
11691169 AttributeSet::get (C, RetAttrs),
1170- None );
1170+ {} );
11711171 },
11721172};
11731173static const auto jl_newbits_func = new JuliaFunction<>{
@@ -1180,7 +1180,7 @@ static const auto jl_newbits_func = new JuliaFunction<>{
11801180 [](LLVMContext &C) { return AttributeList::get (C,
11811181 AttributeSet (),
11821182 Attributes (C, {Attribute::NonNull}),
1183- None ); },
1183+ {} ); },
11841184};
11851185// `julia.typeof` does read memory, but it is effectively readnone before we lower
11861186// the allocation function. This is OK as long as we lower `julia.typeof` no later than
@@ -1200,7 +1200,7 @@ static const auto jl_typeof_func = new JuliaFunction<>{
12001200 return AttributeList::get (C,
12011201 AttributeSet::get (C, FnAttrs),
12021202 Attributes (C, {Attribute::NonNull}),
1203- None ); },
1203+ {} ); },
12041204};
12051205
12061206static const auto jl_write_barrier_func = new JuliaFunction<>{
@@ -1252,7 +1252,7 @@ static const auto jlapplytype_func = new JuliaFunction<>{
12521252 AttributeSet (),
12531253 AttributeSet::get (C, ArrayRef<Attribute>({Attribute::get (C, Attribute::NonNull),
12541254 Attribute::getWithAlignment (C, Align (16 ))})),
1255- None );
1255+ {} );
12561256 },
12571257};
12581258static const auto jl_object_id__func = new JuliaFunction<TypeFnContextAndSizeT>{
@@ -1273,7 +1273,7 @@ static const auto setjmp_func = new JuliaFunction<TypeFnContextAndTriple>{
12731273 [](LLVMContext &C) { return AttributeList::get (C,
12741274 Attributes (C, {Attribute::ReturnsTwice}),
12751275 AttributeSet (),
1276- None ); },
1276+ {} ); },
12771277};
12781278static const auto memcmp_func = new JuliaFunction<TypeFnContextAndSizeT>{
12791279 XSTR (memcmp),
@@ -1286,7 +1286,7 @@ static const auto memcmp_func = new JuliaFunction<TypeFnContextAndSizeT>{
12861286 return AttributeList::get (C,
12871287 AttributeSet::get (C, FnAttrs),
12881288 AttributeSet (),
1289- None ); },
1289+ {} ); },
12901290 // TODO: inferLibFuncAttributes(*memcmp_func, TLI);
12911291};
12921292static const auto jldlsym_func = new JuliaFunction<>{
@@ -1320,7 +1320,7 @@ static const auto jlgetnthfieldchecked_func = new JuliaFunction<TypeFnContextAnd
13201320 [](LLVMContext &C) { return AttributeList::get (C,
13211321 AttributeSet (),
13221322 Attributes (C, {Attribute::NonNull}),
1323- None ); },
1323+ {} ); },
13241324};
13251325static const auto jlfieldindex_func = new JuliaFunction<>{
13261326 XSTR (jl_field_index),
@@ -1337,7 +1337,7 @@ static const auto jlfieldindex_func = new JuliaFunction<>{
13371337 return AttributeList::get (C,
13381338 AttributeSet::get (C, FnAttrs),
13391339 AttributeSet (),
1340- None ); }, // This function can error if the third argument is 1 so don't do that.
1340+ {} ); }, // This function can error if the third argument is 1 so don't do that.
13411341};
13421342static const auto jlfieldisdefinedchecked_func = new JuliaFunction<TypeFnContextAndSizeT>{
13431343 XSTR (jl_field_isdefined_checked),
@@ -1349,7 +1349,7 @@ static const auto jlfieldisdefinedchecked_func = new JuliaFunction<TypeFnContext
13491349 [](LLVMContext &C) { return AttributeList::get (C,
13501350 AttributeSet (),
13511351 Attributes (C, {}),
1352- None ); },
1352+ {} ); },
13531353};
13541354static const auto jlgetcfunctiontrampoline_func = new JuliaFunction<>{
13551355 XSTR (jl_get_cfunction_trampoline),
@@ -1371,7 +1371,7 @@ static const auto jlgetcfunctiontrampoline_func = new JuliaFunction<>{
13711371 [](LLVMContext &C) { return AttributeList::get (C,
13721372 AttributeSet (),
13731373 Attributes (C, {Attribute::NonNull}),
1374- None ); },
1374+ {} ); },
13751375};
13761376static const auto jlgetabiconverter_func = new JuliaFunction<TypeFnContextAndSizeT>{
13771377 XSTR (jl_get_abi_converter),
@@ -1411,7 +1411,7 @@ static const auto jl_allocgenericmemory = new JuliaFunction<TypeFnContextAndSize
14111411 return AttributeList::get (C,
14121412 AttributeSet::get (C, FnAttrs),
14131413 AttributeSet::get (C, RetAttrs),
1414- None ); },
1414+ {} ); },
14151415};
14161416#define BOX_FUNC (ct,at,attrs,nbytes ) \
14171417static const auto box_##ct##_func = new JuliaFunction<>{ \
@@ -1453,7 +1453,7 @@ static const auto jldnd_func = new JuliaFunction<>{
14531453 return AttributeList::get (C,
14541454 AttributeSet::get (C, FnAttrs),
14551455 Attributes (C, {}),
1456- None );
1456+ {} );
14571457 },
14581458};
14591459
@@ -1488,7 +1488,7 @@ static const auto pointer_from_objref_func = new JuliaFunction<>{
14881488 return AttributeList::get (C,
14891489 AttributeSet::get (C, FnAttrs),
14901490 Attributes (C, {Attribute::NonNull}),
1491- None ); },
1491+ {} ); },
14921492};
14931493static const auto gc_loaded_func = new JuliaFunction<>{
14941494 " julia.gc_loaded" ,
@@ -1683,7 +1683,7 @@ struct jl_aliasinfo_t {
16831683 MDNode *operand = cast<MDNode>(this ->scope ->getOperand (0 ));
16841684 auto scope_name = cast<MDString>(operand->getOperand (0 ))->getString ();
16851685 if (scope_name == " jnoalias_const" )
1686- inst->setMetadata (LLVMContext::MD_invariant_load, MDNode::get (inst->getContext (), None ));
1686+ inst->setMetadata (LLVMContext::MD_invariant_load, MDNode::get (inst->getContext (), {} ));
16871687 }
16881688 }
16891689
@@ -2044,7 +2044,7 @@ jl_aliasinfo_t jl_aliasinfo_t::fromTBAA(jl_codectx_t &ctx, MDNode *tbaa) {
20442044
20452045static Type *julia_type_to_llvm (jl_codectx_t &ctx, jl_value_t *jt, bool *isboxed = NULL );
20462046static jl_returninfo_t get_specsig_function (jl_codegen_params_t &ctx, Module *M, Value *fval, StringRef name, jl_value_t *sig, jl_value_t *jlrettype, bool is_opaque_closure,
2047- ArrayRef<const char *> ArgNames=None , unsigned nreq=0 );
2047+ ArrayRef<const char *> ArgNames={} , unsigned nreq=0 );
20482048static jl_cgval_t emit_expr (jl_codectx_t &ctx, jl_value_t *expr, ssize_t ssaval = -1 );
20492049static jl_cgval_t emit_checked_var (jl_codectx_t &ctx, Value *bp, jl_sym_t *name, jl_value_t *scope, bool isvol, MDNode *tbaa);
20502050static jl_cgval_t emit_sparam (jl_codectx_t &ctx, size_t i);
@@ -2222,7 +2222,7 @@ static inline jl_cgval_t ghostValue(jl_codectx_t &ctx, jl_value_t *typ)
22222222 if (jl_is_type_type (typ)) {
22232223 assert (is_uniquerep_Type (typ));
22242224 // replace T::Type{T} with T, by assuming that T must be a leaftype of some sort
2225- jl_cgval_t constant (NULL , true , typ, NULL , best_tbaa (ctx.tbaa (), typ), None );
2225+ jl_cgval_t constant (NULL , true , typ, NULL , best_tbaa (ctx.tbaa (), typ), ArrayRef<Value*>() );
22262226 constant.constant = jl_tparam0 (typ);
22272227 if (typ == (jl_value_t *)jl_typeofbottom_type->super )
22282228 constant.isghost = true ;
@@ -2246,13 +2246,13 @@ static inline jl_cgval_t mark_julia_const(jl_codectx_t &ctx, jl_value_t *jv)
22462246 if (jl_is_datatype_singleton ((jl_datatype_t *)typ))
22472247 return ghostValue (ctx, typ);
22482248 }
2249- jl_cgval_t constant (NULL , true , typ, NULL , best_tbaa (ctx.tbaa (), typ), None );
2249+ jl_cgval_t constant (NULL , true , typ, NULL , best_tbaa (ctx.tbaa (), typ), ArrayRef<Value*>() );
22502250 constant.constant = jv;
22512251 return constant;
22522252}
22532253
22542254
2255- static inline jl_cgval_t mark_julia_slot (Value *v, jl_value_t *typ, Value *tindex, MDNode *tbaa, ArrayRef<Value*> inline_roots=None )
2255+ static inline jl_cgval_t mark_julia_slot (Value *v, jl_value_t *typ, Value *tindex, MDNode *tbaa, ArrayRef<Value*> inline_roots={} )
22562256{
22572257 // this enables lazy-copying of immutable values and stack or argument slots
22582258 jl_cgval_t tagval (v, false , typ, tindex, tbaa, inline_roots);
@@ -2338,7 +2338,7 @@ static inline jl_cgval_t mark_julia_type(jl_codectx_t &ctx, Value *v, bool isbox
23382338 return value_to_pointer (ctx, v, typ, NULL );
23392339 }
23402340 if (isboxed)
2341- return jl_cgval_t (v, isboxed, typ, NULL , best_tbaa (ctx.tbaa (), typ), None );
2341+ return jl_cgval_t (v, isboxed, typ, NULL , best_tbaa (ctx.tbaa (), typ), ArrayRef<Value*>() );
23422342 return jl_cgval_t (v, typ, NULL );
23432343}
23442344
@@ -2617,7 +2617,7 @@ static jl_cgval_t convert_julia_type_union(jl_codectx_t &ctx, const jl_cgval_t &
26172617 }
26182618 }
26192619 else {
2620- return jl_cgval_t (boxed (ctx, v), true , typ, NULL , best_tbaa (ctx.tbaa (), typ), None );
2620+ return jl_cgval_t (boxed (ctx, v), true , typ, NULL , best_tbaa (ctx.tbaa (), typ), ArrayRef<Value*>() );
26212621 }
26222622 return jl_cgval_t (v, typ, new_tindex);
26232623}
@@ -5672,7 +5672,7 @@ static jl_cgval_t emit_varinfo(jl_codectx_t &ctx, jl_varinfo_t &vi, jl_sym_t *va
56725672 Value *tindex = NULL ;
56735673 if (vi.pTIndex )
56745674 tindex = ctx.builder .CreateAlignedLoad (getInt8Ty (ctx.builder .getContext ()), vi.pTIndex , Align (1 ), vi.isVolatile );
5675- v = mark_julia_slot (ssaslot, vi.value .typ , tindex, ctx.tbaa ().tbaa_stack , None );
5675+ v = mark_julia_slot (ssaslot, vi.value .typ , tindex, ctx.tbaa ().tbaa_stack );
56765676 }
56775677 if (vi.inline_roots ) {
56785678 AllocaInst *varslot = vi.inline_roots ;
@@ -6630,7 +6630,7 @@ static jl_cgval_t emit_expr(jl_codectx_t &ctx, jl_value_t *expr, ssize_t ssaidx_
66306630 SmallVector<Metadata *, 8 > MDs;
66316631
66326632 // Reserve first location for self reference to the LoopID metadata node.
6633- TempMDTuple TempNode = MDNode::getTemporary (ctx.builder .getContext (), None );
6633+ TempMDTuple TempNode = MDNode::getTemporary (ctx.builder .getContext (), {} );
66346634 MDs.push_back (TempNode.get ());
66356635
66366636 for (int i = 0 , ie = nargs; i < ie; ++i) {
@@ -8665,7 +8665,7 @@ static jl_llvm_functions_t
86658665 AllocaInst *roots = sizes.second > 0 ? emit_static_roots (ctx, sizes.second ) : nullptr ;
86668666 if (bits) bits->setName (jl_symbol_name (s));
86678667 if (roots) roots->setName (StringRef (" .roots." ) + jl_symbol_name (s));
8668- varinfo.value = mark_julia_slot (bits, jt, NULL , ctx.tbaa ().tbaa_stack , None );
8668+ varinfo.value = mark_julia_slot (bits, jt, NULL , ctx.tbaa ().tbaa_stack , {} );
86698669 varinfo.inline_roots = roots;
86708670 alloc_def_flag (ctx, varinfo);
86718671 if (debug_enabled && varinfo.dinfo ) {
0 commit comments