Пример #1
0
 public static LLVMBasicBlockRef InsertInContext(LLVMContextRef C, LLVMBasicBlockRef BB, ReadOnlySpan <char> Name)
 {
     using var marshaledName = new MarshaledString(Name);
     return(LLVM.InsertBasicBlockInContext(C, BB, marshaledName));
 }
Пример #2
0
 public static LLVMBasicBlockRef InsertInContext(LLVMContextRef C, LLVMBasicBlockRef BB, string Name) => InsertInContext(C, BB, Name.AsSpan());
Пример #3
0
 public static LLVMBasicBlockRef CreateInContext(LLVMContextRef C, ReadOnlySpan <char> Name)
 {
     using var marshaledName = new MarshaledString(Name);
     return(LLVM.CreateBasicBlockInContext(C, marshaledName));
 }
Пример #4
0
 public static LLVMBasicBlockRef CreateInContext(LLVMContextRef C, string Name) => CreateInContext(C, Name.AsSpan());
Пример #5
0
 public static LLVMBasicBlockRef AppendInContext(LLVMContextRef C, LLVMValueRef Fn, ReadOnlySpan <char> Name)
 {
     using var marshaledName = new MarshaledString(Name);
     return(LLVM.AppendBasicBlockInContext(C, Fn, marshaledName));
 }
Пример #6
0
 public static LLVMBasicBlockRef AppendInContext(LLVMContextRef C, LLVMValueRef Fn, string Name) => AppendInContext(C, Fn, Name.AsSpan());