Esempio n. 1
0
        public static LLVMBool TargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleRef M, LLVMCodeGenFileType codegen, out string ErrorMessage, out LLVMMemoryBufferRef OutMemBuf)
        {
            var retVal = TargetMachineEmitToMemoryBuffer(T, M, codegen, out IntPtr message, out OutMemBuf);

            ErrorMessage = message != IntPtr.Zero && retVal.Value != 0 ? Marshal.PtrToStringAnsi(message) : null;
            DisposeMessage(message);
            return(retVal);
        }
Esempio n. 2
0
        public static LLVMBool TargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M, IntPtr Filename, LLVMCodeGenFileType codegen, out string ErrorMessage)
        {
            var retVal = TargetMachineEmitToFile(T, M, Filename, codegen, out IntPtr message);

            ErrorMessage = message != IntPtr.Zero && retVal.Value != 0 ? Marshal.PtrToStringAnsi(message) : null;
            DisposeMessage(message);
            return(retVal);
        }
Esempio n. 3
0
 public static extern LLVMBool TargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef @T, LLVMModuleRef @M, LLVMCodeGenFileType @codegen, out IntPtr @ErrorMessage, out LLVMMemoryBufferRef @OutMemBuf);
Esempio n. 4
0
 public static extern void SetTargetMachineAsmVerbosity(LLVMTargetMachineRef @T, LLVMBool @VerboseAsm);
Esempio n. 5
0
 public static extern LLVMBool TargetMachineEmitToFile(LLVMTargetMachineRef @T, LLVMModuleRef @M, IntPtr @Filename, LLVMCodeGenFileType @codegen, out IntPtr @ErrorMessage);
Esempio n. 6
0
 public static extern LLVMTargetRef GetTargetMachineTarget(LLVMTargetMachineRef @T);
Esempio n. 7
0
 public static extern IntPtr GetTargetMachineTriple(LLVMTargetMachineRef @T);
Esempio n. 8
0
 public static extern LLVMTargetDataRef GetTargetMachineData(LLVMTargetMachineRef @T);
Esempio n. 9
0
 public static extern IntPtr GetTargetMachineFeatureString(LLVMTargetMachineRef @T);
Esempio n. 10
0
 public static extern void DisposeTargetMachine(LLVMTargetMachineRef @T);
Esempio n. 11
0
 public static extern IntPtr GetTargetMachineCPU(LLVMTargetMachineRef @T);
Esempio n. 12
0
 public static extern void AddAnalysisPasses(LLVMTargetMachineRef @T, LLVMPassManagerRef @PM);
Esempio n. 13
0
 public static extern LLVMBool TargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M, IntPtr Filename, LLVMCodeGenFileType codegen, out IntPtr ErrorMessage);
Esempio n. 14
0
 public static extern IntPtr GetTargetMachineFeatureString(LLVMTargetMachineRef T);
Esempio n. 15
0
 public static extern IntPtr GetTargetMachineCPU(LLVMTargetMachineRef T);
Esempio n. 16
0
 public static extern IntPtr GetTargetMachineTriple(LLVMTargetMachineRef T);