public static Constant GetAnon(LLVMContext Ctx, ReadOnlySpan <Constant> V, bool Packed) { using var marshaledV = new MarshaledArray <Constant, LLVMValueRef>(V, (value) => value.Handle); var handle = Ctx.Handle.GetConstStruct(marshaledV, Packed); return(Ctx.GetOrCreate <Constant>(handle)); }
public static StructType Create(LLVMContext Context, ReadOnlySpan <char> Name) { var handle = Context.Handle.CreateNamedStruct(Name); return(Context.GetOrCreate <StructType>(handle)); }
public static Constant GetString(LLVMContext Context, ReadOnlySpan <char> Initializer, bool AddNull) { var handle = Context.Handle.GetConstString(Initializer, !AddNull); return(Context.GetOrCreate <Constant>(handle)); }
public static Type GetLabelTy(LLVMContext C) { var handle = C.Handle.LabelType; return(C.GetOrCreate(handle)); }
public static IntegerType GetInt64Ty(LLVMContext C) { var handle = C.Handle.Int64Type; return(C.GetOrCreate <IntegerType>(handle)); }
public static Type GetBFloatTy(LLVMContext C) { var handle = C.Handle.BFloatType; return(C.GetOrCreate(handle)); }
public static Type GetX86_MMXTy(LLVMContext C) { var handle = C.Handle.X86MMXType; return(C.GetOrCreate(handle)); }
public static Type GetPPC_FP128Ty(LLVMContext C) { var handle = C.Handle.PPCFP128Type; return(C.GetOrCreate(handle)); }