Esempio n. 1
0
        public static LLVMBool GetTargetFromTriple(string Triple, out LLVMTargetRef T, out string ErrorMessage)
        {
            var retVal = GetTargetFromTriple(Triple, out T, out IntPtr message);

            ErrorMessage = message != IntPtr.Zero && retVal.Value != 0 ? Marshal.PtrToStringAnsi(message) : null;
            DisposeMessage(message);
            return(retVal);
        }
Esempio n. 2
0
 public static extern LLVMBool TargetHasTargetMachine(LLVMTargetRef @T);
Esempio n. 3
0
 public static extern LLVMBool TargetHasAsmBackend(LLVMTargetRef @T);
Esempio n. 4
0
 public static extern LLVMBool TargetHasJIT(LLVMTargetRef @T);
Esempio n. 5
0
 public static extern LLVMBool GetTargetFromTriple([MarshalAs(UnmanagedType.LPStr)] string @Triple, out LLVMTargetRef @T, out IntPtr @ErrorMessage);
Esempio n. 6
0
 public static extern string GetTargetName(LLVMTargetRef @T);
Esempio n. 7
0
 public static extern LLVMTargetRef GetNextTarget(LLVMTargetRef @T);
Esempio n. 8
0
 public static extern string GetTargetDescription(LLVMTargetRef @T);
Esempio n. 9
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. 10
0
 public static extern IntPtr GetTargetDescriptionAsPtr(LLVMTargetRef @T);
Esempio n. 11
0
 public static extern IntPtr GetTargetNameAsPtr(LLVMTargetRef @T);
Esempio n. 12
0
 public static string GetTargetDescription(LLVMTargetRef @T) => Marshal.PtrToStringAnsi(GetTargetDescriptionAsPtr(@T));
Esempio n. 13
0
 public static string GetTargetName(LLVMTargetRef @T) => Marshal.PtrToStringAnsi(GetTargetNameAsPtr(@T));