@@ -825,7 +825,7 @@ static Type *_julia_struct_to_llvm(jl_codegen_params_t *ctx, LLVMContext &ctxt,
825825 // unsigned remainder = fsz % al;
826826 // while (remainder--)
827827 // Elements.push_back(getInt8Ty(ctxt));
828- // lty = StructType::get(lty->getContext(), makeArrayRef (Elements));
828+ // lty = StructType::get(lty->getContext(),ArrayRef<Type*> (Elements));
829829 // }
830830 if (isboxed) *isboxed = true ;
831831 return JuliaType::get_prjlvalue_ty (ctxt);
@@ -2389,11 +2389,11 @@ static bool emit_getfield_unknownidx(jl_codectx_t &ctx,
23892389 assert ((cast<ArrayType>(strct.V ->getType ())->getElementType () == ctx.types ().T_prjlvalue ) == isboxed);
23902390 Value *idx = idx0 ();
23912391 unsigned i = 0 ;
2392- Value *fld = ctx.builder .CreateExtractValue (strct.V , makeArrayRef (i));
2392+ Value *fld = ctx.builder .CreateExtractValue (strct.V , ArrayRef< unsigned > (i));
23932393 for (i = 1 ; i < nfields; i++) {
23942394 fld = ctx.builder .CreateSelect (
23952395 ctx.builder .CreateICmpEQ (idx, ConstantInt::get (idx->getType (), i)),
2396- ctx.builder .CreateExtractValue (strct.V , makeArrayRef (i)),
2396+ ctx.builder .CreateExtractValue (strct.V , ArrayRef< unsigned > (i)),
23972397 fld);
23982398 }
23992399 setName (ctx.emission_context , fld, " getfield" );
@@ -2639,7 +2639,7 @@ static jl_cgval_t emit_getfield_knownidx(jl_codectx_t &ctx, const jl_cgval_t &st
26392639 unsigned i = 0 ;
26402640 for (; i < fsz / align; i++) {
26412641 unsigned fld = st_idx + i;
2642- Value *fldv = ctx.builder .CreateExtractValue (obj, makeArrayRef (fld));
2642+ Value *fldv = ctx.builder .CreateExtractValue (obj, ArrayRef< unsigned > (fld));
26432643 Value *fldp = ctx.builder .CreateConstInBoundsGEP1_32 (ET, lv, i);
26442644 ctx.builder .CreateAlignedStore (fldv, fldp, Align (align));
26452645 }
@@ -2648,14 +2648,14 @@ static jl_cgval_t emit_getfield_knownidx(jl_codectx_t &ctx, const jl_cgval_t &st
26482648 Value *staddr = ctx.builder .CreateConstInBoundsGEP1_32 (ET, lv, i);
26492649 staddr = ctx.builder .CreateBitCast (staddr, getInt8PtrTy (ctx.builder .getContext ()));
26502650 for (; i < ptindex - st_idx; i++) {
2651- Value *fldv = ctx.builder .CreateExtractValue (obj, makeArrayRef (st_idx + i));
2651+ Value *fldv = ctx.builder .CreateExtractValue (obj, ArrayRef< unsigned > (st_idx + i));
26522652 Value *fldp = ctx.builder .CreateConstInBoundsGEP1_32 (getInt8Ty (ctx.builder .getContext ()), staddr, i);
26532653 ctx.builder .CreateAlignedStore (fldv, fldp, Align (1 ));
26542654 }
26552655 }
26562656 setNameWithField (ctx.emission_context , lv, get_objname, jt, idx, Twine ());
26572657 }
2658- Value *tindex0 = ctx.builder .CreateExtractValue (obj, makeArrayRef (ptindex));
2658+ Value *tindex0 = ctx.builder .CreateExtractValue (obj, ArrayRef< unsigned > (ptindex));
26592659 Value *tindex = ctx.builder .CreateNUWAdd (ConstantInt::get (getInt8Ty (ctx.builder .getContext ()), 1 ), tindex0);
26602660 setNameWithField (ctx.emission_context , tindex, get_objname, jt, idx, Twine (" .tindex" ));
26612661 return mark_julia_slot (lv, jfty, tindex, ctx.tbaa ().tbaa_stack );
@@ -2668,7 +2668,7 @@ static jl_cgval_t emit_getfield_knownidx(jl_codectx_t &ctx, const jl_cgval_t &st
26682668 st_idx = convert_struct_offset (ctx, T, byte_offset);
26692669 else
26702670 llvm_unreachable (" encountered incompatible type for a struct" );
2671- fldv = ctx.builder .CreateExtractValue (obj, makeArrayRef (st_idx));
2671+ fldv = ctx.builder .CreateExtractValue (obj, ArrayRef< unsigned > (st_idx));
26722672 setNameWithField (ctx.emission_context , fldv, get_objname, jt, idx, Twine ());
26732673 }
26742674 if (maybe_null) {
@@ -3278,7 +3278,7 @@ static Value *_boxed_special(jl_codectx_t &ctx, const jl_cgval_t &vinfo, Type *t
32783278 unsigned zero = 0 ;
32793279 Value *v = as_value (ctx, t, vinfo);
32803280 assert (v->getType () == ctx.emission_context .llvmtypes [jl_ssavalue_type]);
3281- v = ctx.builder .CreateExtractValue (v, makeArrayRef (&zero, 1 ));
3281+ v = ctx.builder .CreateExtractValue (v, ArrayRef< unsigned > (&zero, 1 ));
32823282 box = call_with_attrs (ctx, box_ssavalue_func, v);
32833283 }
32843284 else if (!jb->name ->abstract && jl_datatype_nbits (jb) == 0 ) {
@@ -3458,7 +3458,7 @@ static Function *mangleIntrinsic(IntrinsicInst *call) //mangling based on replac
34583458
34593459 auto newfType = FunctionType::get (
34603460 oldfType->getReturnType (),
3461- makeArrayRef (argTys).slice (0 , oldfType->getNumParams ()),
3461+ ArrayRef<Type*> (argTys).slice (0 , oldfType->getNumParams ()),
34623462 oldfType->isVarArg ());
34633463
34643464 // Accumulate an array of overloaded types for the given intrinsic
@@ -3714,7 +3714,7 @@ static Value *emit_new_bits(jl_codectx_t &ctx, Value *jt, Value *pval)
37143714// if ptr is NULL this emits a write barrier _back_
37153715static void emit_write_barrier (jl_codectx_t &ctx, Value *parent, Value *ptr)
37163716{
3717- emit_write_barrier (ctx, parent, makeArrayRef (ptr));
3717+ emit_write_barrier (ctx, parent, ArrayRef<Value*> (ptr));
37183718}
37193719
37203720static void emit_write_barrier (jl_codectx_t &ctx, Value *parent, ArrayRef<Value*> ptrs)
@@ -4013,7 +4013,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
40134013 Value *fldp = ctx.builder .CreateConstInBoundsGEP1_32 (ET, lv, i);
40144014 jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, ctx.tbaa ().tbaa_stack );
40154015 Value *fldv = ai.decorateInst (ctx.builder .CreateAlignedLoad (ET, fldp, Align (al)));
4016- strct = ctx.builder .CreateInsertValue (strct, fldv, makeArrayRef (llvm_idx + i));
4016+ strct = ctx.builder .CreateInsertValue (strct, fldv, ArrayRef< unsigned > (llvm_idx + i));
40174017 }
40184018 // emit remaining bytes up to tindex
40194019 if (i < ptindex - llvm_idx) {
@@ -4023,14 +4023,14 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
40234023 Value *fldp = ctx.builder .CreateConstInBoundsGEP1_32 (getInt8Ty (ctx.builder .getContext ()), staddr, i);
40244024 jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, ctx.tbaa ().tbaa_stack );
40254025 Value *fldv = ai.decorateInst (ctx.builder .CreateAlignedLoad (getInt8Ty (ctx.builder .getContext ()), fldp, Align (1 )));
4026- strct = ctx.builder .CreateInsertValue (strct, fldv, makeArrayRef (llvm_idx + i));
4026+ strct = ctx.builder .CreateInsertValue (strct, fldv, ArrayRef< unsigned > (llvm_idx + i));
40274027 }
40284028 }
40294029 }
40304030 llvm_idx = ptindex;
40314031 fval = tindex;
40324032 if (jl_is_vecelement_type (ty))
4033- fval = ctx.builder .CreateInsertValue (strct, fval, makeArrayRef (llvm_idx));
4033+ fval = ctx.builder .CreateInsertValue (strct, fval, ArrayRef< unsigned > (llvm_idx));
40344034 }
40354035 else {
40364036 Value *ptindex = emit_struct_gep (ctx, lt, strct, offs + fsz);
@@ -4057,7 +4057,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
40574057 else if (lt->isVectorTy ())
40584058 strct = ctx.builder .CreateInsertElement (strct, fval, ConstantInt::get (getInt32Ty (ctx.builder .getContext ()), llvm_idx));
40594059 else if (lt->isAggregateType ())
4060- strct = ctx.builder .CreateInsertValue (strct, fval, makeArrayRef (llvm_idx));
4060+ strct = ctx.builder .CreateInsertValue (strct, fval, ArrayRef< unsigned > (llvm_idx));
40614061 else
40624062 assert (false );
40634063 }
@@ -4071,7 +4071,7 @@ static jl_cgval_t emit_new_struct(jl_codectx_t &ctx, jl_value_t *ty, size_t narg
40714071 int fsz = jl_field_size (sty, i) - 1 ;
40724072 unsigned llvm_idx = convert_struct_offset (ctx, cast<StructType>(lt), offs + fsz);
40734073 if (init_as_value)
4074- strct = ctx.builder .CreateInsertValue (strct, ConstantInt::get (getInt8Ty (ctx.builder .getContext ()), 0 ), makeArrayRef (llvm_idx));
4074+ strct = ctx.builder .CreateInsertValue (strct, ConstantInt::get (getInt8Ty (ctx.builder .getContext ()), 0 ), ArrayRef< unsigned > (llvm_idx));
40754075 else {
40764076 jl_aliasinfo_t ai = jl_aliasinfo_t::fromTBAA (ctx, ctx.tbaa ().tbaa_unionselbyte );
40774077 ai.decorateInst (ctx.builder .CreateAlignedStore (
0 commit comments