Ejemplo 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);
        }
Ejemplo n.º 2
0
 public static extern LLVMBool TargetHasTargetMachine(LLVMTargetRef @T);
Ejemplo n.º 3
0
 public static extern LLVMBool TargetHasAsmBackend(LLVMTargetRef @T);
Ejemplo n.º 4
0
 public static extern LLVMBool TargetHasJIT(LLVMTargetRef @T);
Ejemplo n.º 5
0
 public static extern LLVMBool GetTargetFromTriple([MarshalAs(UnmanagedType.LPStr)] string @Triple, out LLVMTargetRef @T, out IntPtr @ErrorMessage);
Ejemplo n.º 6
0
 public static extern string GetTargetName(LLVMTargetRef @T);
Ejemplo n.º 7
0
 public static extern LLVMTargetRef GetNextTarget(LLVMTargetRef @T);
Ejemplo n.º 8
0
 public static extern string GetTargetDescription(LLVMTargetRef @T);
Ejemplo 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);
Ejemplo n.º 10
0
 public static extern IntPtr GetTargetDescriptionAsPtr(LLVMTargetRef @T);
Ejemplo n.º 11
0
 public static extern IntPtr GetTargetNameAsPtr(LLVMTargetRef @T);
Ejemplo n.º 12
0
 public static string GetTargetDescription(LLVMTargetRef @T) => Marshal.PtrToStringAnsi(GetTargetDescriptionAsPtr(@T));
Ejemplo n.º 13
0
 public static string GetTargetName(LLVMTargetRef @T) => Marshal.PtrToStringAnsi(GetTargetNameAsPtr(@T));