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 StructType Create(LLVMContext Context, string Name) => Create(Context, Name.AsSpan());
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 Constant GetString(LLVMContext Context, string Initializer, bool AddNull = true) => GetString(Context, Initializer.AsSpan(), AddNull);
public static Type GetX86_MMXTy(LLVMContext C) { var handle = C.Handle.X86MMXType; return(C.GetOrCreate(handle)); }
public static Constant GetAnon(LLVMContext Ctx, Constant[] V, bool Packed = false) => GetAnon(Ctx, V.AsSpan(), Packed);
public static BasicBlock Create(LLVMContext Context, ReadOnlySpan <char> Name, Function Parent) { var handle = LLVMBasicBlockRef.AppendInContext(Context.Handle, Parent.Handle, Name); return(new BasicBlock(handle)); }
public static BasicBlock Create(LLVMContext Context, string Name, BasicBlock InsertBefore) => Create(Context, Name.AsSpan(), InsertBefore);
public static BasicBlock Create(LLVMContext Context, string Name) => Create(Context, Name.AsSpan());
public static BasicBlock Create(LLVMContext Context, string Name, Function Parent) => Create(Context, Name.AsSpan(), Parent);
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 IRBuilder(LLVMContext C) : base(C) { }
public static BasicBlock Create(LLVMContext Context, ReadOnlySpan <char> Name, BasicBlock InsertBefore) { var handle = LLVMBasicBlockRef.InsertInContext(Context.Handle, InsertBefore.Handle, Name); return(new BasicBlock(handle)); }
private protected IRBuilderBase(LLVMContext C) { Context = C; Handle = LLVMBuilderRef.Create(C.Handle); }
public static Type GetPPC_FP128Ty(LLVMContext C) { var handle = C.Handle.PPCFP128Type; return(C.GetOrCreate(handle)); }