public static extern LLVMTargetMachineRef* CreateTargetMachine(LLVMTargetRef* T, [In][MarshalAs(UnmanagedType.LPStr)] string Triple, [In][MarshalAs(UnmanagedType.LPStr)] string CPU, [In][MarshalAs(UnmanagedType.LPStr)] string Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel);
Esempio n. 2
0
 public LLVMTargetMachineRef CreateTargetMachine(ReadOnlySpan <char> triple, ReadOnlySpan <char> cpu, ReadOnlySpan <char> features, LLVMCodeGenOptLevel level, LLVMRelocMode reloc, LLVMCodeModel codeModel)
 {
     using var marshaledTriple   = new MarshaledString(triple);
     using var marshaledCPU      = new MarshaledString(cpu);
     using var marshaledFeatures = new MarshaledString(features);
     return(LLVM.CreateTargetMachine(this, marshaledTriple, marshaledCPU, marshaledFeatures, level, reloc, codeModel));
 }
Esempio n. 3
0
 public static extern LLVMTargetMachineRef CreateTargetMachine(LLVMTargetRef @T, [MarshalAs(UnmanagedType.LPStr)] string @Triple, [MarshalAs(UnmanagedType.LPStr)] string @CPU, [MarshalAs(UnmanagedType.LPStr)] string @Features, LLVMCodeGenOptLevel @Level, LLVMRelocMode @Reloc, LLVMCodeModel @CodeModel);
Esempio n. 4
0
 public LLVMTargetMachineRef CreateTargetMachine(string triple, string cpu, string features, LLVMCodeGenOptLevel level, LLVMRelocMode reloc, LLVMCodeModel codeModel) => CreateTargetMachine(triple.AsSpan(), cpu.AsSpan(), features.AsSpan(), level, reloc, codeModel);
Esempio n. 5
0
 public LLVMTargetMachineRef CreateTargetMachine(string triple, string cpu, string features, LLVMCodeGenOptLevel level, LLVMRelocMode reloc, LLVMCodeModel codeModel)
 {
     using (var marshaledTriple = new MarshaledString(triple))
         using (var marshaledCPU = new MarshaledString(cpu))
             using (var marshaledFeatures = new MarshaledString(features))
             {
                 return(LLVM.CreateTargetMachine(this, marshaledTriple, marshaledCPU, marshaledFeatures, level, reloc, codeModel));
             }
 }