From 186bef5ded9fc135e32b0c1b3448528e46ce3e03 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Sat, 3 Oct 2020 11:45:20 -0700 Subject: [PATCH 1/3] Normalizing the Interop.Extensions types to implement the same base members --- .../Interop.Extensions/LLVMAttributeRef.cs | 22 +++--- .../Interop.Extensions/LLVMBasicBlockRef.cs | 36 ++++------ .../Interop.Extensions/LLVMBinaryRef.cs | 26 ++++--- .../Interop.Extensions/LLVMBuilderRef.cs | 26 +++---- .../Interop.Extensions/LLVMComdatRef.cs | 26 ++++--- .../Interop.Extensions/LLVMContextRef.cs | 49 ++++--------- .../Interop.Extensions/LLVMDIBuilderRef.cs | 31 ++++---- .../LLVMDiagnosticInfoRef.cs | 22 +++--- .../LLVMDisasmContextRef.cs | 20 +++--- .../Interop.Extensions/LLVMErrorRef.cs | 26 ++++--- .../Interop.Extensions/LLVMErrorTypeId.cs | 26 ++++--- .../LLVMExecutionEngineRef.cs | 24 +++---- .../Interop.Extensions/LLVMGenericValueRef.cs | 20 +++--- .../LLVMJITEventListenerRef.cs | 26 ++++--- .../LLVMMCJITMemoryManagerRef.cs | 20 +++--- .../Interop.Extensions/LLVMMemoryBufferRef.cs | 20 +++--- .../Interop.Extensions/LLVMMetadataRef.cs | 26 ++++--- .../Interop.Extensions/LLVMModuleFlagEntry.cs | 26 ++++--- .../LLVMModuleProviderRef.cs | 20 +++--- .../Interop.Extensions/LLVMModuleRef.cs | 22 +++--- .../Interop.Extensions/LLVMNamedMDNodeRef.cs | 26 ++++--- .../Interop.Extensions/LLVMObjectFileRef.cs | 20 +++--- .../Interop.Extensions/LLVMOrcJITStackRef.cs | 26 ++++--- .../LLVMPassManagerBuilderRef.cs | 28 ++++---- .../Interop.Extensions/LLVMPassManagerRef.cs | 19 ++--- .../Interop.Extensions/LLVMPassRegistryRef.cs | 20 +++--- .../LLVMRelocationIteratorRef.cs | 20 +++--- .../Interop.Extensions/LLVMRemarkArgRef.cs | 26 ++++--- .../LLVMRemarkDebugLocRef.cs | 26 ++++--- .../Interop.Extensions/LLVMRemarkEntryRef.cs | 26 ++++--- .../Interop.Extensions/LLVMRemarkParserRef.cs | 26 ++++--- .../Interop.Extensions/LLVMRemarkStringRef.cs | 26 ++++--- .../LLVMSectionIteratorRef.cs | 20 +++--- .../LLVMSymbolIteratorRef.cs | 20 +++--- .../Interop.Extensions/LLVMTargetDataRef.cs | 72 +++++-------------- .../LLVMTargetLibraryInfoRef.cs | 20 +++--- .../LLVMTargetMachineRef.cs | 20 +++--- .../Interop.Extensions/LLVMTargetRef.cs | 24 +++---- .../Interop.Extensions/LLVMTypeRef.cs | 22 +++--- .../Interop.Extensions/LLVMUseRef.cs | 20 +++--- .../Interop.Extensions/LLVMValueRef.cs | 22 +++--- .../Interop.Extensions/lto_code_gen_t.cs | 26 ++++--- .../Interop.Extensions/lto_input_t.cs | 26 ++++--- .../Interop.Extensions/lto_module_t.cs | 26 ++++--- .../Interop.Extensions/thinlto_code_gen_t.cs | 26 ++++--- 45 files changed, 547 insertions(+), 600 deletions(-) diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMAttributeRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMAttributeRef.cs index 1318283a..bc502113 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMAttributeRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMAttributeRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMAttributeRef : IEquatable { + public IntPtr Handle; + public LLVMAttributeRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMAttributeRef(LLVMOpaqueAttributeRef* value) => new LLVMAttributeRef((IntPtr)value); - public static implicit operator LLVMAttributeRef(LLVMOpaqueAttributeRef* value) - { - return new LLVMAttributeRef((IntPtr)value); - } + public static implicit operator LLVMOpaqueAttributeRef*(LLVMAttributeRef value) => (LLVMOpaqueAttributeRef*)value.Handle; - public static implicit operator LLVMOpaqueAttributeRef*(LLVMAttributeRef value) - { - return (LLVMOpaqueAttributeRef*)value.Handle; - } - - public static bool operator ==(LLVMAttributeRef left, LLVMAttributeRef right) => left.Equals(right); + public static bool operator ==(LLVMAttributeRef left, LLVMAttributeRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMAttributeRef left, LLVMAttributeRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMAttributeRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMAttributeRef other) && Equals(other); - public bool Equals(LLVMAttributeRef other) => Handle == other.Handle; + public bool Equals(LLVMAttributeRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMAttributeRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMBasicBlockRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMBasicBlockRef.cs index 6c3202be..83f53964 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMBasicBlockRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMBasicBlockRef.cs @@ -6,31 +6,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMBasicBlockRef : IEquatable { - public LLVMBasicBlockRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static explicit operator LLVMBasicBlockRef(LLVMOpaqueValue* value) - { - return new LLVMBasicBlockRef((IntPtr)value); - } - - public static implicit operator LLVMBasicBlockRef(LLVMOpaqueBasicBlock* value) - { - return new LLVMBasicBlockRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueBasicBlock*(LLVMBasicBlockRef value) - { - return (LLVMOpaqueBasicBlock*)value.Handle; - } - - public static implicit operator LLVMOpaqueValue*(LLVMBasicBlockRef value) + public LLVMBasicBlockRef(IntPtr handle) { - return (LLVMOpaqueValue*)value.Handle; + Handle = handle; } public LLVMValueRef FirstInstruction => (Handle != IntPtr.Zero) ? LLVM.GetFirstInstruction(this) : default; @@ -45,6 +25,14 @@ public static implicit operator LLVMBasicBlockRef(LLVMOpaqueBasicBlock* value) public LLVMValueRef Terminator => (Handle != IntPtr.Zero) ? LLVM.GetBasicBlockTerminator(this) : default; + public static explicit operator LLVMBasicBlockRef(LLVMOpaqueValue* value) => new LLVMBasicBlockRef((IntPtr)value); + + public static implicit operator LLVMBasicBlockRef(LLVMOpaqueBasicBlock* value) => new LLVMBasicBlockRef((IntPtr)value); + + public static implicit operator LLVMOpaqueBasicBlock*(LLVMBasicBlockRef value) => (LLVMOpaqueBasicBlock*)value.Handle; + + public static implicit operator LLVMOpaqueValue*(LLVMBasicBlockRef value) => (LLVMOpaqueValue*)value.Handle; + public static bool operator ==(LLVMBasicBlockRef left, LLVMBasicBlockRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMBasicBlockRef left, LLVMBasicBlockRef right) => !(left == right); @@ -79,9 +67,9 @@ public static LLVMBasicBlockRef InsertInContext(LLVMContextRef C, LLVMBasicBlock public void Dump() => LLVM.DumpValue(this); - public override bool Equals(object obj) => obj is LLVMBasicBlockRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMBasicBlockRef other) && Equals(other); - public bool Equals(LLVMBasicBlockRef other) => Handle == other.Handle; + public bool Equals(LLVMBasicBlockRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMBinaryRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMBinaryRef.cs index 10dd5a8f..af0086a7 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMBinaryRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMBinaryRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMBinaryRef + public unsafe partial struct LLVMBinaryRef : IEquatable { + public IntPtr Handle; + public LLVMBinaryRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMBinaryRef(LLVMOpaqueBinary* Comdat) => new LLVMBinaryRef((IntPtr)Comdat); - public static implicit operator LLVMBinaryRef(LLVMOpaqueBinary* Comdat) - { - return new LLVMBinaryRef((IntPtr)Comdat); - } + public static implicit operator LLVMOpaqueBinary*(LLVMBinaryRef Comdat) => (LLVMOpaqueBinary*)Comdat.Handle; - public static implicit operator LLVMOpaqueBinary*(LLVMBinaryRef Comdat) - { - return (LLVMOpaqueBinary*)Comdat.Handle; - } + public static bool operator ==(LLVMBinaryRef left, LLVMBinaryRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMBinaryRef left, LLVMBinaryRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMBinaryRef other) && Equals(other); + + public bool Equals(LLVMBinaryRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMBinaryRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMBuilderRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMBuilderRef.cs index fc84df87..46b69c70 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMBuilderRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMBuilderRef.cs @@ -6,21 +6,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMBuilderRef : IDisposable, IEquatable { - public LLVMBuilderRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMBuilderRef(LLVMOpaqueBuilder* Builder) - { - return new LLVMBuilderRef((IntPtr)Builder); - } - - public static implicit operator LLVMOpaqueBuilder*(LLVMBuilderRef Builder) + public LLVMBuilderRef(IntPtr handle) { - return (LLVMOpaqueBuilder*)Builder.Handle; + Handle = handle; } public LLVMValueRef CurrentDebugLocation @@ -31,7 +21,11 @@ public LLVMValueRef CurrentDebugLocation public LLVMBasicBlockRef InsertBlock => (Handle != IntPtr.Zero) ? LLVM.GetInsertBlock(this) : default; - public static bool operator ==(LLVMBuilderRef left, LLVMBuilderRef right) => left.Equals(right); + public static implicit operator LLVMBuilderRef(LLVMOpaqueBuilder* Builder) => new LLVMBuilderRef((IntPtr)Builder); + + public static implicit operator LLVMOpaqueBuilder*(LLVMBuilderRef Builder) => (LLVMOpaqueBuilder*)Builder.Handle; + + public static bool operator ==(LLVMBuilderRef left, LLVMBuilderRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMBuilderRef left, LLVMBuilderRef right) => !(left == right); @@ -725,9 +719,9 @@ public void Dispose() } } - public override bool Equals(object obj) => obj is LLVMBuilderRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMBuilderRef other) && Equals(other); - public bool Equals(LLVMBuilderRef other) => Handle == other.Handle; + public bool Equals(LLVMBuilderRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); @@ -748,5 +742,7 @@ public void InsertWithName(LLVMValueRef Instr, ReadOnlySpan Name) public void PositionBefore(LLVMValueRef Instr) => LLVM.PositionBuilderBefore(this, Instr); public void SetInstDebugLocation(LLVMValueRef Inst) => LLVM.SetInstDebugLocation(this, Inst); + + public override string ToString() => $"{nameof(LLVMBuilderRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMComdatRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMComdatRef.cs index ec4a2b98..2c3edac9 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMComdatRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMComdatRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMComdatRef + public unsafe partial struct LLVMComdatRef : IEquatable { + public IntPtr Handle; + public LLVMComdatRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMComdatRef(LLVMComdat* Comdat) => new LLVMComdatRef((IntPtr)Comdat); - public static implicit operator LLVMComdatRef(LLVMComdat* Comdat) - { - return new LLVMComdatRef((IntPtr)Comdat); - } + public static implicit operator LLVMComdat*(LLVMComdatRef Comdat) => (LLVMComdat*)Comdat.Handle; - public static implicit operator LLVMComdat*(LLVMComdatRef Comdat) - { - return (LLVMComdat*)Comdat.Handle; - } + public static bool operator ==(LLVMComdatRef left, LLVMComdatRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMComdatRef left, LLVMComdatRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMComdatRef other) && Equals(other); + + public bool Equals(LLVMComdatRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMComdatRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs index 795dda2d..872e1203 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs @@ -7,21 +7,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMContextRef : IDisposable, IEquatable { - public LLVMContextRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) - { - return new LLVMContextRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueContext*(LLVMContextRef value) + public LLVMContextRef(IntPtr handle) { - return (LLVMOpaqueContext*)value.Handle; + Handle = handle; } public static LLVMContextRef Global => LLVM.GetGlobalContext(); @@ -54,6 +44,10 @@ public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) public LLVMTypeRef X86MMXType => (Handle != IntPtr.Zero) ? LLVM.X86MMXTypeInContext(this) : default; + public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) => new LLVMContextRef((IntPtr)value); + + public static implicit operator LLVMOpaqueContext*(LLVMContextRef value) => (LLVMOpaqueContext*)value.Handle; + public static bool operator ==(LLVMContextRef left, LLVMContextRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMContextRef left, LLVMContextRef right) => !(left == right); @@ -62,24 +56,15 @@ public static implicit operator LLVMContextRef(LLVMOpaqueContext* value) public LLVMBasicBlockRef AppendBasicBlock(LLVMValueRef Fn, string Name) => AppendBasicBlock(Fn, Name.AsSpan()); - public LLVMBasicBlockRef AppendBasicBlock(LLVMValueRef Fn, ReadOnlySpan Name) - { - return LLVMBasicBlockRef.AppendInContext(this, Fn, Name); - } + public LLVMBasicBlockRef AppendBasicBlock(LLVMValueRef Fn, ReadOnlySpan Name) => LLVMBasicBlockRef.AppendInContext(this, Fn, Name); public LLVMBasicBlockRef CreateBasicBlock(string Name) => CreateBasicBlock(Name.AsSpan()); - public LLVMBasicBlockRef CreateBasicBlock(ReadOnlySpan Name) - { - return LLVMBasicBlockRef.CreateInContext(this, Name); - } + public LLVMBasicBlockRef CreateBasicBlock(ReadOnlySpan Name) => LLVMBasicBlockRef.CreateInContext(this, Name); public LLVMBuilderRef CreateBuilder() => LLVMBuilderRef.Create(this); - public LLVMMetadataRef CreateDebugLocation(uint Line, uint Column, LLVMMetadataRef Scope, LLVMMetadataRef InlinedAt) - { - return LLVM.DIBuilderCreateDebugLocation(this, Line, Column, Scope, InlinedAt); - } + public LLVMMetadataRef CreateDebugLocation(uint Line, uint Column, LLVMMetadataRef Scope, LLVMMetadataRef InlinedAt) => LLVM.DIBuilderCreateDebugLocation(this, Line, Column, Scope, InlinedAt); public LLVMModuleRef CreateModuleWithName(string ModuleID) => CreateModuleWithName(ModuleID.AsSpan()); @@ -106,9 +91,9 @@ public void Dispose() } } - public override bool Equals(object obj) => obj is LLVMContextRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMContextRef other) && Equals(other); - public bool Equals(LLVMContextRef other) => Handle == other.Handle; + public bool Equals(LLVMContextRef other) => this == other; public LLVMModuleRef GetBitcodeModule(LLVMMemoryBufferRef MemBuf) { @@ -182,15 +167,9 @@ public LLVMTypeRef GetStructType(ReadOnlySpan ElementTypes, bool Pa } } - public LLVMBasicBlockRef InsertBasicBlock(LLVMBasicBlockRef BB, string Name) - { - return LLVMBasicBlockRef.InsertInContext(this, BB, Name); - } + public LLVMBasicBlockRef InsertBasicBlock(LLVMBasicBlockRef BB, string Name) => LLVMBasicBlockRef.InsertInContext(this, BB, Name); - public LLVMValueRef MetadataAsValue(LLVMMetadataRef MD) - { - return LLVM.MetadataAsValue(this, MD); - } + public LLVMValueRef MetadataAsValue(LLVMMetadataRef MD) => LLVM.MetadataAsValue(this, MD); public LLVMModuleRef ParseBitcode(LLVMMemoryBufferRef MemBuf) { @@ -224,6 +203,8 @@ public void SetYieldCallback(LLVMYieldCallback Callback, IntPtr OpaqueHandle) LLVM.ContextSetYieldCallback(this, pCallback, (void*)OpaqueHandle); } + public override string ToString() => $"{nameof(LLVMContextRef)}: {Handle:X}"; + public bool TryGetBitcodeModule(LLVMMemoryBufferRef MemBuf, out LLVMModuleRef OutM, out string OutMessage) { fixed (LLVMModuleRef* pOutM = &OutM) diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs index a8eaa2b7..7da7fa8c 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs @@ -4,14 +4,22 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMDIBuilderRef + public unsafe partial struct LLVMDIBuilderRef : IEquatable { + public IntPtr Handle; + public LLVMDIBuilderRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMDIBuilderRef(LLVMOpaqueDIBuilder* value) => new LLVMDIBuilderRef((IntPtr)value); + + public static implicit operator LLVMOpaqueDIBuilder*(LLVMDIBuilderRef value) => (LLVMOpaqueDIBuilder*)value.Handle; + + public static bool operator ==(LLVMDIBuilderRef left, LLVMDIBuilderRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMDIBuilderRef left, LLVMDIBuilderRef right) => !(left == right); public LLVMMetadataRef CreateCompileUnit(LLVMDWARFSourceLanguage SourceLanguage, LLVMMetadataRef FileMetadata, string Producer, int IsOptimized, string Flags, uint RuntimeVersion, string SplitName, LLVMDWARFEmissionKind DwarfEmissionKind, uint DWOld, int SplitDebugInlining, int DebugInfoForProfiling) => CreateCompileUnit(SourceLanguage, FileMetadata, Producer.AsSpan(), IsOptimized, Flags.AsSpan(), RuntimeVersion, SplitName.AsSpan(), DwarfEmissionKind, DWOld, SplitDebugInlining, DebugInfoForProfiling); @@ -101,19 +109,14 @@ public LLVMMetadataRef CreateTypedef(LLVMMetadataRef Type, ReadOnlySpan Na return LLVM.DIBuilderCreateTypedef(this, Type, marshaledName, (UIntPtr)nameLength, File, LineNo, Scope, AlignInBits); } - public void DIBuilderFinalize() - { - LLVM.DIBuilderFinalize(this); - } + public void DIBuilderFinalize() => LLVM.DIBuilderFinalize(this); - public static implicit operator LLVMDIBuilderRef(LLVMOpaqueDIBuilder* value) - { - return new LLVMDIBuilderRef((IntPtr)value); - } + public override bool Equals(object obj) => (obj is LLVMDIBuilderRef other) && Equals(other); - public static implicit operator LLVMOpaqueDIBuilder*(LLVMDIBuilderRef value) - { - return (LLVMOpaqueDIBuilder*)value.Handle; - } + public bool Equals(LLVMDIBuilderRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMDIBuilderRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDiagnosticInfoRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMDiagnosticInfoRef.cs index ca027594..ce095ef5 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMDiagnosticInfoRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMDiagnosticInfoRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMDiagnosticInfoRef : IEquatable { + public IntPtr Handle; + public LLVMDiagnosticInfoRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMDiagnosticInfoRef(LLVMOpaqueDiagnosticInfo* value) => new LLVMDiagnosticInfoRef((IntPtr)value); - public static implicit operator LLVMDiagnosticInfoRef(LLVMOpaqueDiagnosticInfo* value) - { - return new LLVMDiagnosticInfoRef((IntPtr)value); - } + public static implicit operator LLVMOpaqueDiagnosticInfo*(LLVMDiagnosticInfoRef value) => (LLVMOpaqueDiagnosticInfo*)value.Handle; - public static implicit operator LLVMOpaqueDiagnosticInfo*(LLVMDiagnosticInfoRef value) - { - return (LLVMOpaqueDiagnosticInfo*)value.Handle; - } - - public static bool operator ==(LLVMDiagnosticInfoRef left, LLVMDiagnosticInfoRef right) => left.Equals(right); + public static bool operator ==(LLVMDiagnosticInfoRef left, LLVMDiagnosticInfoRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMDiagnosticInfoRef left, LLVMDiagnosticInfoRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMDiagnosticInfoRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMDiagnosticInfoRef other) && Equals(other); - public bool Equals(LLVMDiagnosticInfoRef other) => Handle == other.Handle; + public bool Equals(LLVMDiagnosticInfoRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMDiagnosticInfoRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDisasmContextRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMDisasmContextRef.cs index a7b92508..ce5a2a18 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMDisasmContextRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMDisasmContextRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMDisasmContextRef : IEquatable { + public IntPtr Handle; + public LLVMDisasmContextRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static explicit operator LLVMDisasmContextRef(void* value) => new LLVMDisasmContextRef((IntPtr)value); - public static explicit operator LLVMDisasmContextRef(void* value) - { - return new LLVMDisasmContextRef((IntPtr)value); - } - - public static implicit operator void*(LLVMDisasmContextRef value) - { - return (void*)value.Handle; - } + public static implicit operator void*(LLVMDisasmContextRef value) => (void*)value.Handle; public static bool operator ==(LLVMDisasmContextRef left, LLVMDisasmContextRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMDisasmContextRef left, LLVMDisasmContextRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMDisasmContextRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMDisasmContextRef other) && Equals(other); - public bool Equals(LLVMDisasmContextRef other) => Handle == other.Handle; + public bool Equals(LLVMDisasmContextRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMDisasmContextRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMErrorRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMErrorRef.cs index bcdbaff8..8fc5abbd 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMErrorRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMErrorRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMErrorRef + public unsafe partial struct LLVMErrorRef : IEquatable { + public IntPtr Handle; + public LLVMErrorRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMErrorRef(LLVMOpaqueError* value) =>new LLVMErrorRef((IntPtr)value); - public static implicit operator LLVMErrorRef(LLVMOpaqueError* value) - { - return new LLVMErrorRef((IntPtr)value); - } + public static implicit operator LLVMOpaqueError*(LLVMErrorRef value) => (LLVMOpaqueError*)value.Handle; - public static implicit operator LLVMOpaqueError*(LLVMErrorRef value) - { - return (LLVMOpaqueError*)value.Handle; - } + public static bool operator ==(LLVMErrorRef left, LLVMErrorRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMErrorRef left, LLVMErrorRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMErrorRef other) && Equals(other); + + public bool Equals(LLVMErrorRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMErrorRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMErrorTypeId.cs b/sources/LLVMSharp/Interop.Extensions/LLVMErrorTypeId.cs index 94880c07..bdf78109 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMErrorTypeId.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMErrorTypeId.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMErrorTypeId + public unsafe partial struct LLVMErrorTypeId : IEquatable { + public IntPtr Handle; + public LLVMErrorTypeId(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static explicit operator LLVMErrorTypeId(void* value) => new LLVMErrorTypeId((IntPtr)value); - public static explicit operator LLVMErrorTypeId(void* value) - { - return new LLVMErrorTypeId((IntPtr)value); - } + public static implicit operator void*(LLVMErrorTypeId value) => (void*)value.Handle; - public static implicit operator void*(LLVMErrorTypeId value) - { - return (void*)value.Handle; - } + public static bool operator ==(LLVMErrorTypeId left, LLVMErrorTypeId right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMErrorTypeId left, LLVMErrorTypeId right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMErrorTypeId other) && Equals(other); + + public bool Equals(LLVMErrorTypeId other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMErrorTypeId)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMExecutionEngineRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMExecutionEngineRef.cs index 9e073227..c153a1ef 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMExecutionEngineRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMExecutionEngineRef.cs @@ -7,27 +7,21 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMExecutionEngineRef : IDisposable, IEquatable { - public LLVMExecutionEngineRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMExecutionEngineRef(LLVMOpaqueExecutionEngine* value) - { - return new LLVMExecutionEngineRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueExecutionEngine*(LLVMExecutionEngineRef value) + public LLVMExecutionEngineRef(IntPtr handle) { - return (LLVMOpaqueExecutionEngine*)value.Handle; + Handle = handle; } public LLVMTargetDataRef TargetData => (Handle != IntPtr.Zero) ? LLVM.GetExecutionEngineTargetData(this) : default; public LLVMTargetMachineRef TargetMachine => (Handle != IntPtr.Zero) ? LLVM.GetExecutionEngineTargetMachine(this) : default; + public static implicit operator LLVMExecutionEngineRef(LLVMOpaqueExecutionEngine* value) => new LLVMExecutionEngineRef((IntPtr)value); + + public static implicit operator LLVMOpaqueExecutionEngine*(LLVMExecutionEngineRef value) => (LLVMOpaqueExecutionEngine*)value.Handle; + public static bool operator ==(LLVMExecutionEngineRef left, LLVMExecutionEngineRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMExecutionEngineRef left, LLVMExecutionEngineRef right) => !(left == right); @@ -45,9 +39,9 @@ public void Dispose() } } - public override bool Equals(object obj) => obj is LLVMExecutionEngineRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMExecutionEngineRef other) && Equals(other); - public bool Equals(LLVMExecutionEngineRef other) => Handle == other.Handle; + public bool Equals(LLVMExecutionEngineRef other) => this == other; public LLVMValueRef FindFunction(string Name) => FindFunction(Name.AsSpan()); @@ -131,6 +125,8 @@ public int RunFunctionAsMain(LLVMValueRef F, uint ArgC, ReadOnlySpan Arg public IntPtr RecompileAndRelinkFunction(LLVMValueRef Fn) => (IntPtr)LLVM.RecompileAndRelinkFunction(this, Fn); + public override string ToString() => $"{nameof(LLVMExecutionEngineRef)}: {Handle:X}"; + public bool TryFindFunction(string Name, out LLVMValueRef OutFn) => TryFindFunction(Name.AsSpan(), out OutFn); public bool TryFindFunction(ReadOnlySpan Name, out LLVMValueRef OutFn) diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMGenericValueRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMGenericValueRef.cs index f2faf20f..a4ba0a01 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMGenericValueRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMGenericValueRef.cs @@ -6,22 +6,16 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMGenericValueRef : IEquatable { + public IntPtr Handle; + public LLVMGenericValueRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMGenericValueRef(LLVMOpaqueGenericValue* GenericValue) => new LLVMGenericValueRef((IntPtr)GenericValue); - public static implicit operator LLVMGenericValueRef(LLVMOpaqueGenericValue* GenericValue) - { - return new LLVMGenericValueRef((IntPtr)GenericValue); - } - - public static implicit operator LLVMOpaqueGenericValue*(LLVMGenericValueRef GenericValue) - { - return (LLVMOpaqueGenericValue*)GenericValue.Handle; - } + public static implicit operator LLVMOpaqueGenericValue*(LLVMGenericValueRef GenericValue) => (LLVMOpaqueGenericValue*)GenericValue.Handle; public static bool operator ==(LLVMGenericValueRef left, LLVMGenericValueRef right) => left.Handle == right.Handle; @@ -31,10 +25,12 @@ public static implicit operator LLVMGenericValueRef(LLVMOpaqueGenericValue* Gene public LLVMGenericValueRef CreateFloat(LLVMTypeRef Ty, double N) => LLVM.CreateGenericValueOfFloat(Ty, N); - public override bool Equals(object obj) => obj is LLVMGenericValueRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMGenericValueRef other) && Equals(other); - public bool Equals(LLVMGenericValueRef other) => Handle == other.Handle; + public bool Equals(LLVMGenericValueRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMGenericValueRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMJITEventListenerRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMJITEventListenerRef.cs index 5d29d1b5..f5ecca9c 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMJITEventListenerRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMJITEventListenerRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMJITEventListenerRef + public unsafe partial struct LLVMJITEventListenerRef : IEquatable { + public IntPtr Handle; + public LLVMJITEventListenerRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMJITEventListenerRef(LLVMOpaqueJITEventListener* value) => new LLVMJITEventListenerRef((IntPtr)value); - public static implicit operator LLVMJITEventListenerRef(LLVMOpaqueJITEventListener* value) - { - return new LLVMJITEventListenerRef((IntPtr)value); - } + public static implicit operator LLVMOpaqueJITEventListener*(LLVMJITEventListenerRef value) => (LLVMOpaqueJITEventListener*)value.Handle; - public static implicit operator LLVMOpaqueJITEventListener*(LLVMJITEventListenerRef value) - { - return (LLVMOpaqueJITEventListener*)value.Handle; - } + public static bool operator ==(LLVMJITEventListenerRef left, LLVMJITEventListenerRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMJITEventListenerRef left, LLVMJITEventListenerRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMJITEventListenerRef other) && Equals(other); + + public bool Equals(LLVMJITEventListenerRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMJITEventListenerRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMCJITMemoryManagerRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMMCJITMemoryManagerRef.cs index 0b520cbe..fcd01151 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMMCJITMemoryManagerRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMMCJITMemoryManagerRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMMCJITMemoryManagerRef : IEquatable { + public IntPtr Handle; + public LLVMMCJITMemoryManagerRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMMCJITMemoryManagerRef(LLVMOpaqueMCJITMemoryManager* value) => new LLVMMCJITMemoryManagerRef((IntPtr)value); - public static implicit operator LLVMMCJITMemoryManagerRef(LLVMOpaqueMCJITMemoryManager* value) - { - return new LLVMMCJITMemoryManagerRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueMCJITMemoryManager*(LLVMMCJITMemoryManagerRef value) - { - return (LLVMOpaqueMCJITMemoryManager*)value.Handle; - } + public static implicit operator LLVMOpaqueMCJITMemoryManager*(LLVMMCJITMemoryManagerRef value) => (LLVMOpaqueMCJITMemoryManager*)value.Handle; public static bool operator ==(LLVMMCJITMemoryManagerRef left, LLVMMCJITMemoryManagerRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMMCJITMemoryManagerRef left, LLVMMCJITMemoryManagerRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMMCJITMemoryManagerRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMMCJITMemoryManagerRef other) && Equals(other); - public bool Equals(LLVMMCJITMemoryManagerRef other) => Handle == other.Handle; + public bool Equals(LLVMMCJITMemoryManagerRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMMCJITMemoryManagerRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMemoryBufferRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMMemoryBufferRef.cs index e176aa3f..6e56cdd4 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMMemoryBufferRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMMemoryBufferRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMMemoryBufferRef : IEquatable { + public IntPtr Handle; + public LLVMMemoryBufferRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMMemoryBufferRef(LLVMOpaqueMemoryBuffer* MemoryBuffer) => new LLVMMemoryBufferRef((IntPtr)MemoryBuffer); - public static implicit operator LLVMMemoryBufferRef(LLVMOpaqueMemoryBuffer* MemoryBuffer) - { - return new LLVMMemoryBufferRef((IntPtr)MemoryBuffer); - } - - public static implicit operator LLVMOpaqueMemoryBuffer*(LLVMMemoryBufferRef MemoryBuffer) - { - return (LLVMOpaqueMemoryBuffer*)MemoryBuffer.Handle; - } + public static implicit operator LLVMOpaqueMemoryBuffer*(LLVMMemoryBufferRef MemoryBuffer) => (LLVMOpaqueMemoryBuffer*)MemoryBuffer.Handle; public static bool operator ==(LLVMMemoryBufferRef left, LLVMMemoryBufferRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMMemoryBufferRef left, LLVMMemoryBufferRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMMemoryBufferRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMMemoryBufferRef other) && Equals(other); - public bool Equals(LLVMMemoryBufferRef other) => Handle == other.Handle; + public bool Equals(LLVMMemoryBufferRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMMemoryBufferRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMMetadataRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMMetadataRef.cs index 355b8d9c..c738b09b 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMMetadataRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMMetadataRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMMetadataRef + public unsafe partial struct LLVMMetadataRef : IEquatable { + public IntPtr Handle; + public LLVMMetadataRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMMetadataRef(LLVMOpaqueMetadata* value) => new LLVMMetadataRef((IntPtr)value); - public static implicit operator LLVMMetadataRef(LLVMOpaqueMetadata* value) - { - return new LLVMMetadataRef((IntPtr)value); - } + public static implicit operator LLVMOpaqueMetadata*(LLVMMetadataRef value) => (LLVMOpaqueMetadata*)value.Handle; - public static implicit operator LLVMOpaqueMetadata*(LLVMMetadataRef value) - { - return (LLVMOpaqueMetadata*)value.Handle; - } + public static bool operator ==(LLVMMetadataRef left, LLVMMetadataRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMMetadataRef left, LLVMMetadataRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMMetadataRef other) && Equals(other); + + public bool Equals(LLVMMetadataRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMMetadataRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMModuleFlagEntry.cs b/sources/LLVMSharp/Interop.Extensions/LLVMModuleFlagEntry.cs index 2ddc37d5..e55eec99 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMModuleFlagEntry.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMModuleFlagEntry.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMModuleFlagEntry + public unsafe partial struct LLVMModuleFlagEntry : IEquatable { + public IntPtr Handle; + public LLVMModuleFlagEntry(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMModuleFlagEntry(LLVMOpaqueModuleFlagEntry* Comdat) => new LLVMModuleFlagEntry((IntPtr)Comdat); - public static implicit operator LLVMModuleFlagEntry(LLVMOpaqueModuleFlagEntry* Comdat) - { - return new LLVMModuleFlagEntry((IntPtr)Comdat); - } + public static implicit operator LLVMOpaqueModuleFlagEntry*(LLVMModuleFlagEntry Comdat) => (LLVMOpaqueModuleFlagEntry*)Comdat.Handle; - public static implicit operator LLVMOpaqueModuleFlagEntry*(LLVMModuleFlagEntry Comdat) - { - return (LLVMOpaqueModuleFlagEntry*)Comdat.Handle; - } + public static bool operator ==(LLVMModuleFlagEntry left, LLVMModuleFlagEntry right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMModuleFlagEntry left, LLVMModuleFlagEntry right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMModuleFlagEntry other) && Equals(other); + + public bool Equals(LLVMModuleFlagEntry other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMModuleFlagEntry)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMModuleProviderRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMModuleProviderRef.cs index 6e0c8a97..96d7fae2 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMModuleProviderRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMModuleProviderRef.cs @@ -6,22 +6,16 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMModuleProviderRef : IEquatable { + public IntPtr Handle; + public LLVMModuleProviderRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMModuleProviderRef(LLVMOpaqueModuleProvider* value) => new LLVMModuleProviderRef((IntPtr)value); - public static implicit operator LLVMModuleProviderRef(LLVMOpaqueModuleProvider* value) - { - return new LLVMModuleProviderRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueModuleProvider*(LLVMModuleProviderRef value) - { - return (LLVMOpaqueModuleProvider*)value.Handle; - } + public static implicit operator LLVMOpaqueModuleProvider*(LLVMModuleProviderRef value) => (LLVMOpaqueModuleProvider*)value.Handle; public static bool operator ==(LLVMModuleProviderRef left, LLVMModuleProviderRef right) => left.Handle == right.Handle; @@ -29,10 +23,12 @@ public static implicit operator LLVMModuleProviderRef(LLVMOpaqueModuleProvider* public LLVMPassManagerRef CreateFunctionPassManager() => LLVM.CreateFunctionPassManager(this); - public override bool Equals(object obj) => obj is LLVMModuleProviderRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMModuleProviderRef other) && Equals(other); - public bool Equals(LLVMModuleProviderRef other) => Handle == other.Handle; + public bool Equals(LLVMModuleProviderRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMModuleProviderRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMModuleRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMModuleRef.cs index 1102f612..7b538825 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMModuleRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMModuleRef.cs @@ -7,21 +7,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMModuleRef : IDisposable, IEquatable { - public LLVMModuleRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMModuleRef(LLVMOpaqueModule* value) - { - return new LLVMModuleRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueModule*(LLVMModuleRef value) + public LLVMModuleRef(IntPtr handle) { - return (LLVMOpaqueModule*)value.Handle; + Handle = handle; } public LLVMContextRef Context => (Handle != IntPtr.Zero) ? LLVM.GetModuleContext(this) : default; @@ -88,6 +78,10 @@ public string Target } } + public static implicit operator LLVMModuleRef(LLVMOpaqueModule* value) => new LLVMModuleRef((IntPtr)value); + + public static implicit operator LLVMOpaqueModule*(LLVMModuleRef value) => (LLVMOpaqueModule*)value.Handle; + public static bool operator ==(LLVMModuleRef left, LLVMModuleRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMModuleRef left, LLVMModuleRef right) => !(left == right); @@ -210,9 +204,9 @@ public void Dispose() public void Dump() => LLVM.DumpModule(this); - public override bool Equals(object obj) => obj is LLVMModuleRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMModuleRef other) && Equals(other); - public bool Equals(LLVMModuleRef other) => Handle == other.Handle; + public bool Equals(LLVMModuleRef other) => this == other; public LLVMValueRef GetNamedFunction(string Name) => GetNamedFunction(Name.AsSpan()); diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMNamedMDNodeRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMNamedMDNodeRef.cs index 7c92b300..ab93bb55 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMNamedMDNodeRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMNamedMDNodeRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMNamedMDNodeRef + public unsafe partial struct LLVMNamedMDNodeRef : IEquatable { + public IntPtr Handle; + public LLVMNamedMDNodeRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMNamedMDNodeRef(LLVMOpaqueNamedMDNode* value) => new LLVMNamedMDNodeRef((IntPtr)value); - public static implicit operator LLVMNamedMDNodeRef(LLVMOpaqueNamedMDNode* value) - { - return new LLVMNamedMDNodeRef((IntPtr)value); - } + public static implicit operator LLVMOpaqueNamedMDNode*(LLVMNamedMDNodeRef value) => (LLVMOpaqueNamedMDNode*)value.Handle; - public static implicit operator LLVMOpaqueNamedMDNode*(LLVMNamedMDNodeRef value) - { - return (LLVMOpaqueNamedMDNode*)value.Handle; - } + public static bool operator ==(LLVMNamedMDNodeRef left, LLVMNamedMDNodeRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMNamedMDNodeRef left, LLVMNamedMDNodeRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMNamedMDNodeRef other) && Equals(other); + + public bool Equals(LLVMNamedMDNodeRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMNamedMDNodeRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMObjectFileRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMObjectFileRef.cs index d4946054..17f34909 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMObjectFileRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMObjectFileRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMObjectFileRef : IEquatable { + public IntPtr Handle; + public LLVMObjectFileRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMObjectFileRef(LLVMOpaqueObjectFile* value) => new LLVMObjectFileRef((IntPtr)value); - public static implicit operator LLVMObjectFileRef(LLVMOpaqueObjectFile* value) - { - return new LLVMObjectFileRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueObjectFile*(LLVMObjectFileRef value) - { - return (LLVMOpaqueObjectFile*)value.Handle; - } + public static implicit operator LLVMOpaqueObjectFile*(LLVMObjectFileRef value) => (LLVMOpaqueObjectFile*)value.Handle; public static bool operator ==(LLVMObjectFileRef left, LLVMObjectFileRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMObjectFileRef left, LLVMObjectFileRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMObjectFileRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMObjectFileRef other) && Equals(other); - public bool Equals(LLVMObjectFileRef other) => Handle == other.Handle; + public bool Equals(LLVMObjectFileRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMObjectFileRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMOrcJITStackRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMOrcJITStackRef.cs index f684c6f4..e056f87a 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMOrcJITStackRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMOrcJITStackRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMOrcJITStackRef + public unsafe partial struct LLVMOrcJITStackRef : IEquatable { + public IntPtr Handle; + public LLVMOrcJITStackRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMOrcJITStackRef(LLVMOrcOpaqueJITStack* value) => new LLVMOrcJITStackRef((IntPtr)value); - public static implicit operator LLVMOrcJITStackRef(LLVMOrcOpaqueJITStack* value) - { - return new LLVMOrcJITStackRef((IntPtr)value); - } + public static implicit operator LLVMOrcOpaqueJITStack*(LLVMOrcJITStackRef value) => (LLVMOrcOpaqueJITStack*)value.Handle; - public static implicit operator LLVMOrcOpaqueJITStack*(LLVMOrcJITStackRef value) - { - return (LLVMOrcOpaqueJITStack*)value.Handle; - } + public static bool operator ==(LLVMOrcJITStackRef left, LLVMOrcJITStackRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMOrcJITStackRef left, LLVMOrcJITStackRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMOrcJITStackRef other) && Equals(other); + + public bool Equals(LLVMOrcJITStackRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMOrcJITStackRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerBuilderRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerBuilderRef.cs index 406aa512..1d50c792 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerBuilderRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerBuilderRef.cs @@ -6,33 +6,21 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMPassManagerBuilderRef : IEquatable, IDisposable { + public IntPtr Handle; + public LLVMPassManagerBuilderRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMPassManagerBuilderRef(LLVMOpaquePassManagerBuilder* value) => new LLVMPassManagerBuilderRef((IntPtr)value); - public static implicit operator LLVMPassManagerBuilderRef(LLVMOpaquePassManagerBuilder* value) - { - return new LLVMPassManagerBuilderRef((IntPtr)value); - } - - public static implicit operator LLVMOpaquePassManagerBuilder*(LLVMPassManagerBuilderRef value) - { - return (LLVMOpaquePassManagerBuilder*)value.Handle; - } + public static implicit operator LLVMOpaquePassManagerBuilder*(LLVMPassManagerBuilderRef value) => (LLVMOpaquePassManagerBuilder*)value.Handle; public static bool operator ==(LLVMPassManagerBuilderRef left, LLVMPassManagerBuilderRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMPassManagerBuilderRef left, LLVMPassManagerBuilderRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMPassManagerBuilderRef other && Equals(other); - - public bool Equals(LLVMPassManagerBuilderRef other) => Handle == other.Handle; - - public override int GetHashCode() => Handle.GetHashCode(); - public void Dispose() { if (Handle != IntPtr.Zero) @@ -42,6 +30,12 @@ public void Dispose() } } + public override bool Equals(object obj) => (obj is LLVMPassManagerBuilderRef other) && Equals(other); + + public bool Equals(LLVMPassManagerBuilderRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + public void PopulateFunctionPassManager(LLVMPassManagerRef PM) => LLVM.PassManagerBuilderPopulateFunctionPassManager(this, PM); public void PopulateModulePassManager(LLVMPassManagerRef PM) => LLVM.PassManagerBuilderPopulateModulePassManager(this, PM); @@ -61,6 +55,8 @@ public void PopulateLTOPassManager(LLVMPassManagerRef PM, int Internalize, int R public void SetDisableSimplifyLibCalls(int Value) => LLVM.PassManagerBuilderSetDisableSimplifyLibCalls(this, Value); + public override string ToString() => $"{nameof(LLVMPassManagerBuilderRef)}: {Handle:X}"; + public void UseInlinerWithThreshold(uint Threshold) => LLVM.PassManagerBuilderUseInlinerWithThreshold(this, Threshold); } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs index 3609f7f1..2fe88b89 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMPassManagerRef.cs @@ -6,22 +6,16 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMPassManagerRef : IDisposable, IEquatable { + public IntPtr Handle; + public LLVMPassManagerRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; - - public static implicit operator LLVMPassManagerRef(LLVMOpaquePassManager* value) - { - return new LLVMPassManagerRef((IntPtr)value); - } + public static implicit operator LLVMPassManagerRef(LLVMOpaquePassManager* value) => new LLVMPassManagerRef((IntPtr)value); - public static implicit operator LLVMOpaquePassManager*(LLVMPassManagerRef value) - { - return (LLVMOpaquePassManager*)value.Handle; - } + public static implicit operator LLVMOpaquePassManager*(LLVMPassManagerRef value) => (LLVMOpaquePassManager*)value.Handle; public static bool operator ==(LLVMPassManagerRef left, LLVMPassManagerRef right) => left.Handle == right.Handle; @@ -158,9 +152,9 @@ public void Dispose() } } - public override bool Equals(object obj) => obj is LLVMPassManagerRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMPassManagerRef other) && Equals(other); - public bool Equals(LLVMPassManagerRef other) => Handle == other.Handle; + public bool Equals(LLVMPassManagerRef other) => this == other; public bool FinalizeFunctionPassManager() => LLVM.FinalizeFunctionPassManager(this) != 0; @@ -172,5 +166,6 @@ public void Dispose() public bool RunFunctionPassManager(LLVMValueRef F) => LLVM.RunFunctionPassManager(this, F) != 0; + public override string ToString() => $"{nameof(LLVMPassManagerRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMPassRegistryRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMPassRegistryRef.cs index af6c49a2..18befc0a 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMPassRegistryRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMPassRegistryRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMPassRegistryRef : IEquatable { + public IntPtr Handle; + public LLVMPassRegistryRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMPassRegistryRef(LLVMOpaquePassRegistry* value) => new LLVMPassRegistryRef((IntPtr)value); - public static implicit operator LLVMPassRegistryRef(LLVMOpaquePassRegistry* value) - { - return new LLVMPassRegistryRef((IntPtr)value); - } - - public static implicit operator LLVMOpaquePassRegistry*(LLVMPassRegistryRef value) - { - return (LLVMOpaquePassRegistry*)value.Handle; - } + public static implicit operator LLVMOpaquePassRegistry*(LLVMPassRegistryRef value) => (LLVMOpaquePassRegistry*)value.Handle; public static bool operator ==(LLVMPassRegistryRef left, LLVMPassRegistryRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMPassRegistryRef left, LLVMPassRegistryRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMPassRegistryRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMPassRegistryRef other) && Equals(other); - public bool Equals(LLVMPassRegistryRef other) => Handle == other.Handle; + public bool Equals(LLVMPassRegistryRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMPassRegistryRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRelocationIteratorRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMRelocationIteratorRef.cs index cfced7ea..b286696b 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMRelocationIteratorRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMRelocationIteratorRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMRelocationIteratorRef : IEquatable { + public IntPtr Handle; + public LLVMRelocationIteratorRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMRelocationIteratorRef(LLVMOpaqueRelocationIterator* value) => new LLVMRelocationIteratorRef((IntPtr)value); - public static implicit operator LLVMRelocationIteratorRef(LLVMOpaqueRelocationIterator* value) - { - return new LLVMRelocationIteratorRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueRelocationIterator*(LLVMRelocationIteratorRef value) - { - return (LLVMOpaqueRelocationIterator*)value.Handle; - } + public static implicit operator LLVMOpaqueRelocationIterator*(LLVMRelocationIteratorRef value) => (LLVMOpaqueRelocationIterator*)value.Handle; public static bool operator ==(LLVMRelocationIteratorRef left, LLVMRelocationIteratorRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMRelocationIteratorRef left, LLVMRelocationIteratorRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMRelocationIteratorRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMRelocationIteratorRef other) && Equals(other); - public bool Equals(LLVMRelocationIteratorRef other) => Handle == other.Handle; + public bool Equals(LLVMRelocationIteratorRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMRelocationIteratorRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkArgRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkArgRef.cs index 046d4f05..a8b877ed 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkArgRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkArgRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMRemarkArgRef + public unsafe partial struct LLVMRemarkArgRef : IEquatable { + public IntPtr Handle; + public LLVMRemarkArgRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMRemarkArgRef(LLVMRemarkOpaqueArg* value) => new LLVMRemarkArgRef((IntPtr)value); - public static implicit operator LLVMRemarkArgRef(LLVMRemarkOpaqueArg* value) - { - return new LLVMRemarkArgRef((IntPtr)value); - } + public static implicit operator LLVMRemarkOpaqueArg*(LLVMRemarkArgRef value) => (LLVMRemarkOpaqueArg*)value.Handle; - public static implicit operator LLVMRemarkOpaqueArg*(LLVMRemarkArgRef value) - { - return (LLVMRemarkOpaqueArg*)value.Handle; - } + public static bool operator ==(LLVMRemarkArgRef left, LLVMRemarkArgRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMRemarkArgRef left, LLVMRemarkArgRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMRemarkArgRef other) && Equals(other); + + public bool Equals(LLVMRemarkArgRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMRemarkArgRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkDebugLocRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkDebugLocRef.cs index 3638ec78..51f46567 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkDebugLocRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkDebugLocRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMRemarkDebugLocRef + public unsafe partial struct LLVMRemarkDebugLocRef : IEquatable { + public IntPtr Handle; + public LLVMRemarkDebugLocRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMRemarkDebugLocRef(LLVMRemarkOpaqueDebugLoc* value) => new LLVMRemarkDebugLocRef((IntPtr)value); - public static implicit operator LLVMRemarkDebugLocRef(LLVMRemarkOpaqueDebugLoc* value) - { - return new LLVMRemarkDebugLocRef((IntPtr)value); - } + public static implicit operator LLVMRemarkOpaqueDebugLoc*(LLVMRemarkDebugLocRef value) => (LLVMRemarkOpaqueDebugLoc*)value.Handle; - public static implicit operator LLVMRemarkOpaqueDebugLoc*(LLVMRemarkDebugLocRef value) - { - return (LLVMRemarkOpaqueDebugLoc*)value.Handle; - } + public static bool operator ==(LLVMRemarkDebugLocRef left, LLVMRemarkDebugLocRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMRemarkDebugLocRef left, LLVMRemarkDebugLocRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMRemarkDebugLocRef other) && Equals(other); + + public bool Equals(LLVMRemarkDebugLocRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMRemarkDebugLocRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkEntryRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkEntryRef.cs index 4dca149e..25d4b127 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkEntryRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkEntryRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMRemarkEntryRef + public unsafe partial struct LLVMRemarkEntryRef : IEquatable { + public IntPtr Handle; + public LLVMRemarkEntryRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMRemarkEntryRef(LLVMRemarkOpaqueEntry* value) => new LLVMRemarkEntryRef((IntPtr)value); - public static implicit operator LLVMRemarkEntryRef(LLVMRemarkOpaqueEntry* value) - { - return new LLVMRemarkEntryRef((IntPtr)value); - } + public static implicit operator LLVMRemarkOpaqueEntry*(LLVMRemarkEntryRef value) => (LLVMRemarkOpaqueEntry*)value.Handle; - public static implicit operator LLVMRemarkOpaqueEntry*(LLVMRemarkEntryRef value) - { - return (LLVMRemarkOpaqueEntry*)value.Handle; - } + public static bool operator ==(LLVMRemarkEntryRef left, LLVMRemarkEntryRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMRemarkEntryRef left, LLVMRemarkEntryRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMRemarkEntryRef other) && Equals(other); + + public bool Equals(LLVMRemarkEntryRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMRemarkEntryRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkParserRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkParserRef.cs index af146be5..768b69ba 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkParserRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkParserRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMRemarkParserRef + public unsafe partial struct LLVMRemarkParserRef : IEquatable { + public IntPtr Handle; + public LLVMRemarkParserRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMRemarkParserRef(LLVMRemarkOpaqueParser* value) => new LLVMRemarkParserRef((IntPtr)value); - public static implicit operator LLVMRemarkParserRef(LLVMRemarkOpaqueParser* value) - { - return new LLVMRemarkParserRef((IntPtr)value); - } + public static implicit operator LLVMRemarkOpaqueParser*(LLVMRemarkParserRef value) => (LLVMRemarkOpaqueParser*)value.Handle; - public static implicit operator LLVMRemarkOpaqueParser*(LLVMRemarkParserRef value) - { - return (LLVMRemarkOpaqueParser*)value.Handle; - } + public static bool operator ==(LLVMRemarkParserRef left, LLVMRemarkParserRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMRemarkParserRef left, LLVMRemarkParserRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMRemarkParserRef other) && Equals(other); + + public bool Equals(LLVMRemarkParserRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMRemarkParserRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkStringRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkStringRef.cs index 558cd02e..47e118ea 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMRemarkStringRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMRemarkStringRef.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct LLVMRemarkStringRef + public unsafe partial struct LLVMRemarkStringRef : IEquatable { + public IntPtr Handle; + public LLVMRemarkStringRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMRemarkStringRef(LLVMRemarkOpaqueString* value) => new LLVMRemarkStringRef((IntPtr)value); - public static implicit operator LLVMRemarkStringRef(LLVMRemarkOpaqueString* value) - { - return new LLVMRemarkStringRef((IntPtr)value); - } + public static implicit operator LLVMRemarkOpaqueString*(LLVMRemarkStringRef value) => (LLVMRemarkOpaqueString*)value.Handle; - public static implicit operator LLVMRemarkOpaqueString*(LLVMRemarkStringRef value) - { - return (LLVMRemarkOpaqueString*)value.Handle; - } + public static bool operator ==(LLVMRemarkStringRef left, LLVMRemarkStringRef right) => left.Handle == right.Handle; + + public static bool operator !=(LLVMRemarkStringRef left, LLVMRemarkStringRef right) => !(left == right); + + public override bool Equals(object obj) => (obj is LLVMRemarkStringRef other) && Equals(other); + + public bool Equals(LLVMRemarkStringRef other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMRemarkStringRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMSectionIteratorRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMSectionIteratorRef.cs index 95e55dda..227a5ea4 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMSectionIteratorRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMSectionIteratorRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMSectionIteratorRef : IEquatable { + public IntPtr Handle; + public LLVMSectionIteratorRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMSectionIteratorRef(LLVMOpaqueSectionIterator* value) => new LLVMSectionIteratorRef((IntPtr)value); - public static implicit operator LLVMSectionIteratorRef(LLVMOpaqueSectionIterator* value) - { - return new LLVMSectionIteratorRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueSectionIterator*(LLVMSectionIteratorRef value) - { - return (LLVMOpaqueSectionIterator*)value.Handle; - } + public static implicit operator LLVMOpaqueSectionIterator*(LLVMSectionIteratorRef value) => (LLVMOpaqueSectionIterator*)value.Handle; public static bool operator ==(LLVMSectionIteratorRef left, LLVMSectionIteratorRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMSectionIteratorRef left, LLVMSectionIteratorRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMSectionIteratorRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMSectionIteratorRef other) && Equals(other); - public bool Equals(LLVMSectionIteratorRef other) => Handle == other.Handle; + public bool Equals(LLVMSectionIteratorRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMSectionIteratorRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMSymbolIteratorRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMSymbolIteratorRef.cs index c2b6a3b1..1909e51b 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMSymbolIteratorRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMSymbolIteratorRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMSymbolIteratorRef : IEquatable { + public IntPtr Handle; + public LLVMSymbolIteratorRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMSymbolIteratorRef(LLVMOpaqueSymbolIterator* value) => new LLVMSymbolIteratorRef((IntPtr)value); - public static implicit operator LLVMSymbolIteratorRef(LLVMOpaqueSymbolIterator* value) - { - return new LLVMSymbolIteratorRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueSymbolIterator*(LLVMSymbolIteratorRef value) - { - return (LLVMOpaqueSymbolIterator*)value.Handle; - } + public static implicit operator LLVMOpaqueSymbolIterator*(LLVMSymbolIteratorRef value) => (LLVMOpaqueSymbolIterator*)value.Handle; public static bool operator ==(LLVMSymbolIteratorRef left, LLVMSymbolIteratorRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMSymbolIteratorRef left, LLVMSymbolIteratorRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMSymbolIteratorRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMSymbolIteratorRef other) && Equals(other); - public bool Equals(LLVMSymbolIteratorRef other) => Handle == other.Handle; + public bool Equals(LLVMSymbolIteratorRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMSymbolIteratorRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetDataRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMTargetDataRef.cs index 9fa0cd55..c1a63961 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTargetDataRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMTargetDataRef.cs @@ -6,81 +6,47 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMTargetDataRef : IEquatable { + public IntPtr Handle; + public LLVMTargetDataRef(IntPtr handle) { Handle = handle; } - public static LLVMTargetDataRef FromStringRepresentation(ReadOnlySpan stringRep) - { - return LLVM.CreateTargetData(new MarshaledString(stringRep)); - } - - public IntPtr Handle; - - public static implicit operator LLVMTargetDataRef(LLVMOpaqueTargetData* TargetData) - { - return new LLVMTargetDataRef((IntPtr)TargetData); - } + public static implicit operator LLVMTargetDataRef(LLVMOpaqueTargetData* TargetData) => new LLVMTargetDataRef((IntPtr)TargetData); - public static implicit operator LLVMOpaqueTargetData*(LLVMTargetDataRef TargetData) - { - return (LLVMOpaqueTargetData*)TargetData.Handle; - } + public static implicit operator LLVMOpaqueTargetData*(LLVMTargetDataRef TargetData) => (LLVMOpaqueTargetData*)TargetData.Handle; public static bool operator ==(LLVMTargetDataRef left, LLVMTargetDataRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMTargetDataRef left, LLVMTargetDataRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMTargetDataRef other && Equals(other); + public static LLVMTargetDataRef FromStringRepresentation(ReadOnlySpan stringRep) => LLVM.CreateTargetData(new MarshaledString(stringRep)); + + public override bool Equals(object obj) => (obj is LLVMTargetDataRef other) && Equals(other); - public bool Equals(LLVMTargetDataRef other) => Handle == other.Handle; + public bool Equals(LLVMTargetDataRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); - public ulong OffsetOfElement(LLVMTypeRef type, uint element) - { - return LLVM.OffsetOfElement(this, type, element); - } + public ulong OffsetOfElement(LLVMTypeRef type, uint element) => LLVM.OffsetOfElement(this, type, element); - public ulong ElementAtOffset(LLVMTypeRef type, ulong offset) - { - return LLVM.ElementAtOffset(this, type, offset); - } + public ulong ElementAtOffset(LLVMTypeRef type, ulong offset) => LLVM.ElementAtOffset(this, type, offset); - public ulong SizeOfTypeInBits(LLVMTypeRef type) - { - return LLVM.SizeOfTypeInBits(this, type); - } + public ulong SizeOfTypeInBits(LLVMTypeRef type) => LLVM.SizeOfTypeInBits(this, type); - public ulong StoreSizeOfType(LLVMTypeRef type) - { - return LLVM.StoreSizeOfType(this, type); - } + public ulong StoreSizeOfType(LLVMTypeRef type) => LLVM.StoreSizeOfType(this, type); - public ulong ABISizeOfType(LLVMTypeRef type) - { - return LLVM.ABISizeOfType(this, type); - } + public ulong ABISizeOfType(LLVMTypeRef type) => LLVM.ABISizeOfType(this, type); - public uint ABIAlignmentOfType(LLVMTypeRef type) - { - return LLVM.ABIAlignmentOfType(this, type); - } + public uint ABIAlignmentOfType(LLVMTypeRef type) => LLVM.ABIAlignmentOfType(this, type); - public uint CallFrameAlignmentOfType(LLVMTypeRef type) - { - return LLVM.CallFrameAlignmentOfType(this, type); - } + public uint CallFrameAlignmentOfType(LLVMTypeRef type) => LLVM.CallFrameAlignmentOfType(this, type); - public uint PreferredAlignmentOfType(LLVMTypeRef type) - { - return LLVM.PreferredAlignmentOfType(this, type); - } + public uint PreferredAlignmentOfType(LLVMTypeRef type) => LLVM.PreferredAlignmentOfType(this, type); - public uint PreferredAlignmentOfGlobal(LLVMValueRef globalVar) - { - return LLVM.PreferredAlignmentOfGlobal(this, globalVar); - } + public uint PreferredAlignmentOfGlobal(LLVMValueRef globalVar) => LLVM.PreferredAlignmentOfGlobal(this, globalVar); + + public override string ToString() => $"{nameof(LLVMTargetDataRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetLibraryInfoRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMTargetLibraryInfoRef.cs index 22b7fb08..eeb826ef 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTargetLibraryInfoRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMTargetLibraryInfoRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMTargetLibraryInfoRef : IEquatable { + public IntPtr Handle; + public LLVMTargetLibraryInfoRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMTargetLibraryInfoRef(LLVMOpaqueTargetLibraryInfotData* value) => new LLVMTargetLibraryInfoRef((IntPtr)value); - public static implicit operator LLVMTargetLibraryInfoRef(LLVMOpaqueTargetLibraryInfotData* value) - { - return new LLVMTargetLibraryInfoRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueTargetLibraryInfotData*(LLVMTargetLibraryInfoRef value) - { - return (LLVMOpaqueTargetLibraryInfotData*)value.Handle; - } + public static implicit operator LLVMOpaqueTargetLibraryInfotData*(LLVMTargetLibraryInfoRef value) => (LLVMOpaqueTargetLibraryInfotData*)value.Handle; public static bool operator ==(LLVMTargetLibraryInfoRef left, LLVMTargetLibraryInfoRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMTargetLibraryInfoRef left, LLVMTargetLibraryInfoRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMTargetLibraryInfoRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMTargetLibraryInfoRef other) && Equals(other); - public bool Equals(LLVMTargetLibraryInfoRef other) => Handle == other.Handle; + public bool Equals(LLVMTargetLibraryInfoRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMTargetLibraryInfoRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetMachineRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMTargetMachineRef.cs index 214b6297..cd37b48c 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTargetMachineRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMTargetMachineRef.cs @@ -7,22 +7,16 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMTargetMachineRef : IEquatable { + public IntPtr Handle; + public LLVMTargetMachineRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMTargetMachineRef(LLVMOpaqueTargetMachine* value) => new LLVMTargetMachineRef((IntPtr)value); - public static implicit operator LLVMTargetMachineRef(LLVMOpaqueTargetMachine* value) - { - return new LLVMTargetMachineRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueTargetMachine*(LLVMTargetMachineRef value) - { - return (LLVMOpaqueTargetMachine*)value.Handle; - } + public static implicit operator LLVMOpaqueTargetMachine*(LLVMTargetMachineRef value) => (LLVMOpaqueTargetMachine*)value.Handle; public static bool operator ==(LLVMTargetMachineRef left, LLVMTargetMachineRef right) => left.Handle == right.Handle; @@ -51,12 +45,14 @@ public void EmitToFile(LLVMModuleRef module, ReadOnlySpan fileName, LLVMCo } } - public override bool Equals(object obj) => obj is LLVMTargetMachineRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMTargetMachineRef other) && Equals(other); - public bool Equals(LLVMTargetMachineRef other) => Handle == other.Handle; + public bool Equals(LLVMTargetMachineRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + public override string ToString() => $"{nameof(LLVMTargetMachineRef)}: {Handle:X}"; + public bool TryEmitToFile(LLVMModuleRef module, string fileName, LLVMCodeGenFileType codegen, out string message) => TryEmitToFile(module, fileName.AsSpan(), codegen, out message); public bool TryEmitToFile(LLVMModuleRef module, ReadOnlySpan fileName, LLVMCodeGenFileType codegen, out string message) diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTargetRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMTargetRef.cs index 5bd55db7..0b1ab452 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTargetRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMTargetRef.cs @@ -7,21 +7,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMTargetRef : IEquatable { - public LLVMTargetRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMTargetRef(LLVMTarget* value) - { - return new LLVMTargetRef((IntPtr)value); - } - - public static implicit operator LLVMTarget*(LLVMTargetRef value) + public LLVMTargetRef(IntPtr handle) { - return (LLVMTarget*)value.Handle; + Handle = handle; } public static string DefaultTriple @@ -77,13 +67,17 @@ public string Name } } + public static implicit operator LLVMTargetRef(LLVMTarget* value) => new LLVMTargetRef((IntPtr)value); + + public static implicit operator LLVMTarget*(LLVMTargetRef value) => (LLVMTarget*)value.Handle; + public static bool operator ==(LLVMTargetRef left, LLVMTargetRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMTargetRef left, LLVMTargetRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMTargetRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMTargetRef other) && Equals(other); - public bool Equals(LLVMTargetRef other) => Handle == other.Handle; + public bool Equals(LLVMTargetRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); @@ -98,5 +92,7 @@ public LLVMTargetMachineRef CreateTargetMachine(ReadOnlySpan triple, ReadO using var marshaledFeatures = new MarshaledString(features); return LLVM.CreateTargetMachine(this, marshaledTriple, marshaledCPU, marshaledFeatures, level, reloc, codeModel); } + + public override string ToString() => $"{nameof(LLVMTargetRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs index 571047a5..0674fd1d 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs @@ -6,21 +6,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMTypeRef : IEquatable { - public LLVMTypeRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMTypeRef(LLVMOpaqueType* value) - { - return new LLVMTypeRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueType*(LLVMTypeRef value) + public LLVMTypeRef(IntPtr handle) { - return (LLVMOpaqueType*)value.Handle; + Handle = handle; } public static LLVMTypeRef Double => LLVM.DoubleType(); @@ -168,6 +158,10 @@ public LLVMTypeRef[] Subtypes public uint VectorSize => (Kind == LLVMTypeKind.LLVMVectorTypeKind) ? LLVM.GetVectorSize(this) : default; + public static implicit operator LLVMTypeRef(LLVMOpaqueType* value) => new LLVMTypeRef((IntPtr)value); + + public static implicit operator LLVMOpaqueType*(LLVMTypeRef value) => (LLVMOpaqueType*)value.Handle; + public static bool operator ==(LLVMTypeRef left, LLVMTypeRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMTypeRef left, LLVMTypeRef right) => !(left == right); @@ -206,9 +200,9 @@ public static LLVMTypeRef CreateStruct(ReadOnlySpan ElementTypes, b public void Dump() => LLVM.DumpType(this); - public override bool Equals(object obj) => obj is LLVMTypeRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMTypeRef other) && Equals(other); - public bool Equals(LLVMTypeRef other) => Handle == other.Handle; + public bool Equals(LLVMTypeRef other) => this == other; public double GenericValueToFloat(LLVMGenericValueRef GenVal) => LLVM.GenericValueToFloat(this, GenVal); diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMUseRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMUseRef.cs index da9741ce..f140c55f 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMUseRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMUseRef.cs @@ -6,31 +6,27 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMUseRef : IEquatable { + public IntPtr Handle; + public LLVMUseRef(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator LLVMUseRef(LLVMOpaqueUse* Use) => new LLVMUseRef((IntPtr)Use); - public static implicit operator LLVMUseRef(LLVMOpaqueUse* Use) - { - return new LLVMUseRef((IntPtr)Use); - } - - public static implicit operator LLVMOpaqueUse*(LLVMUseRef Use) - { - return (LLVMOpaqueUse*)Use.Handle; - } + public static implicit operator LLVMOpaqueUse*(LLVMUseRef Use) => (LLVMOpaqueUse*)Use.Handle; public static bool operator ==(LLVMUseRef left, LLVMUseRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMUseRef left, LLVMUseRef right) => !(left == right); - public override bool Equals(object obj) => obj is LLVMUseRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMUseRef other) && Equals(other); - public bool Equals(LLVMUseRef other) => Handle == other.Handle; + public bool Equals(LLVMUseRef other) => this == other; public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(LLVMUseRef)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs index 26a4337b..560a2543 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMValueRef.cs @@ -6,21 +6,11 @@ namespace LLVMSharp.Interop { public unsafe partial struct LLVMValueRef : IEquatable { - public LLVMValueRef(IntPtr handle) - { - Handle = handle; - } - public IntPtr Handle; - public static implicit operator LLVMValueRef(LLVMOpaqueValue* value) - { - return new LLVMValueRef((IntPtr)value); - } - - public static implicit operator LLVMOpaqueValue*(LLVMValueRef value) + public LLVMValueRef(IntPtr handle) { - return (LLVMOpaqueValue*)value.Handle; + Handle = handle; } public uint Alignment @@ -543,6 +533,10 @@ public bool Weak set => LLVM.SetWeak(this, value ? 1 : 0); } + public static implicit operator LLVMValueRef(LLVMOpaqueValue* value) => new LLVMValueRef((IntPtr)value); + + public static implicit operator LLVMOpaqueValue*(LLVMValueRef value) => (LLVMOpaqueValue*)value.Handle; + public static bool operator ==(LLVMValueRef left, LLVMValueRef right) => left.Handle == right.Handle; public static bool operator !=(LLVMValueRef left, LLVMValueRef right) => !(left == right); @@ -848,9 +842,9 @@ public LLVMBasicBlockRef AppendBasicBlock(ReadOnlySpan Name) public void Dump() => LLVM.DumpValue(this); - public override bool Equals(object obj) => obj is LLVMValueRef other && Equals(other); + public override bool Equals(object obj) => (obj is LLVMValueRef other) && Equals(other); - public bool Equals(LLVMValueRef other) => Handle == other.Handle; + public bool Equals(LLVMValueRef other) => this == other; public string GetAsString(out UIntPtr Length) { diff --git a/sources/LLVMSharp/Interop.Extensions/lto_code_gen_t.cs b/sources/LLVMSharp/Interop.Extensions/lto_code_gen_t.cs index 505fa029..1b6a01b4 100644 --- a/sources/LLVMSharp/Interop.Extensions/lto_code_gen_t.cs +++ b/sources/LLVMSharp/Interop.Extensions/lto_code_gen_t.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct lto_code_gen_t + public unsafe partial struct lto_code_gen_t : IEquatable { + public IntPtr Handle; + public lto_code_gen_t(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator lto_code_gen_t(LLVMOpaqueLTOCodeGenerator* Comdat) => new lto_code_gen_t((IntPtr)Comdat); - public static implicit operator lto_code_gen_t(LLVMOpaqueLTOCodeGenerator* Comdat) - { - return new lto_code_gen_t((IntPtr)Comdat); - } + public static implicit operator LLVMOpaqueLTOCodeGenerator*(lto_code_gen_t Comdat) => (LLVMOpaqueLTOCodeGenerator*)Comdat.Handle; - public static implicit operator LLVMOpaqueLTOCodeGenerator*(lto_code_gen_t Comdat) - { - return (LLVMOpaqueLTOCodeGenerator*)Comdat.Handle; - } + public static bool operator ==(lto_code_gen_t left, lto_code_gen_t right) => left.Handle == right.Handle; + + public static bool operator !=(lto_code_gen_t left, lto_code_gen_t right) => !(left == right); + + public override bool Equals(object obj) => (obj is lto_code_gen_t other) && Equals(other); + + public bool Equals(lto_code_gen_t other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(lto_code_gen_t)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/lto_input_t.cs b/sources/LLVMSharp/Interop.Extensions/lto_input_t.cs index 7ee030a7..15cb3c0c 100644 --- a/sources/LLVMSharp/Interop.Extensions/lto_input_t.cs +++ b/sources/LLVMSharp/Interop.Extensions/lto_input_t.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct lto_input_t + public unsafe partial struct lto_input_t : IEquatable { + public IntPtr Handle; + public lto_input_t(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator lto_input_t(LLVMOpaqueLTOInput* Comdat) => new lto_input_t((IntPtr)Comdat); - public static implicit operator lto_input_t(LLVMOpaqueLTOInput* Comdat) - { - return new lto_input_t((IntPtr)Comdat); - } + public static implicit operator LLVMOpaqueLTOInput*(lto_input_t Comdat) => (LLVMOpaqueLTOInput*)Comdat.Handle; - public static implicit operator LLVMOpaqueLTOInput*(lto_input_t Comdat) - { - return (LLVMOpaqueLTOInput*)Comdat.Handle; - } + public static bool operator ==(lto_input_t left, lto_input_t right) => left.Handle == right.Handle; + + public static bool operator !=(lto_input_t left, lto_input_t right) => !(left == right); + + public override bool Equals(object obj) => (obj is lto_input_t other) && Equals(other); + + public bool Equals(lto_input_t other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(lto_input_t)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/lto_module_t.cs b/sources/LLVMSharp/Interop.Extensions/lto_module_t.cs index e59cf1d2..e0897de3 100644 --- a/sources/LLVMSharp/Interop.Extensions/lto_module_t.cs +++ b/sources/LLVMSharp/Interop.Extensions/lto_module_t.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct lto_module_t + public unsafe partial struct lto_module_t : IEquatable { + public IntPtr Handle; + public lto_module_t(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator lto_module_t(LLVMOpaqueLTOModule* Comdat) => new lto_module_t((IntPtr)Comdat); - public static implicit operator lto_module_t(LLVMOpaqueLTOModule* Comdat) - { - return new lto_module_t((IntPtr)Comdat); - } + public static implicit operator LLVMOpaqueLTOModule*(lto_module_t Comdat) => (LLVMOpaqueLTOModule*)Comdat.Handle; - public static implicit operator LLVMOpaqueLTOModule*(lto_module_t Comdat) - { - return (LLVMOpaqueLTOModule*)Comdat.Handle; - } + public static bool operator ==(lto_module_t left, lto_module_t right) => left.Handle == right.Handle; + + public static bool operator !=(lto_module_t left, lto_module_t right) => !(left == right); + + public override bool Equals(object obj) => (obj is lto_module_t other) && Equals(other); + + public bool Equals(lto_module_t other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(lto_module_t)}: {Handle:X}"; } } diff --git a/sources/LLVMSharp/Interop.Extensions/thinlto_code_gen_t.cs b/sources/LLVMSharp/Interop.Extensions/thinlto_code_gen_t.cs index 88426c72..e6f6ba25 100644 --- a/sources/LLVMSharp/Interop.Extensions/thinlto_code_gen_t.cs +++ b/sources/LLVMSharp/Interop.Extensions/thinlto_code_gen_t.cs @@ -4,23 +4,29 @@ namespace LLVMSharp.Interop { - public unsafe partial struct thinlto_code_gen_t + public unsafe partial struct thinlto_code_gen_t : IEquatable { + public IntPtr Handle; + public thinlto_code_gen_t(IntPtr handle) { Handle = handle; } - public IntPtr Handle; + public static implicit operator thinlto_code_gen_t(LLVMOpaqueThinLTOCodeGenerator* Comdat) => new thinlto_code_gen_t((IntPtr)Comdat); - public static implicit operator thinlto_code_gen_t(LLVMOpaqueThinLTOCodeGenerator* Comdat) - { - return new thinlto_code_gen_t((IntPtr)Comdat); - } + public static implicit operator LLVMOpaqueThinLTOCodeGenerator*(thinlto_code_gen_t Comdat) => (LLVMOpaqueThinLTOCodeGenerator*)Comdat.Handle; - public static implicit operator LLVMOpaqueThinLTOCodeGenerator*(thinlto_code_gen_t Comdat) - { - return (LLVMOpaqueThinLTOCodeGenerator*)Comdat.Handle; - } + public static bool operator ==(thinlto_code_gen_t left, thinlto_code_gen_t right) => left.Handle == right.Handle; + + public static bool operator !=(thinlto_code_gen_t left, thinlto_code_gen_t right) => !(left == right); + + public override bool Equals(object obj) => (obj is thinlto_code_gen_t other) && Equals(other); + + public bool Equals(thinlto_code_gen_t other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => $"{nameof(thinlto_code_gen_t)}: {Handle:X}"; } } From b4febff496103d853944bb432f10b7146db2f266 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Sat, 3 Oct 2020 11:55:36 -0700 Subject: [PATCH 2/3] Adding some base managed types for various handles --- sources/LLVMSharp/Attribute.cs | 24 ++++++++++ sources/LLVMSharp/DataLayout.cs | 46 +++++-------------- sources/LLVMSharp/Error.cs | 24 ++++++++++ sources/LLVMSharp/IRBuilderBase.cs | 4 +- .../Internals/NativeTypeNameAttribute.cs | 2 +- sources/LLVMSharp/LLVMContext.cs | 4 +- sources/LLVMSharp/LLVMSharp.csproj | 1 + sources/LLVMSharp/Metadata.cs | 24 ++++++++++ sources/LLVMSharp/Module.cs | 24 ++++++++++ sources/LLVMSharp/StructLayout.cs | 19 ++------ sources/LLVMSharp/Target.cs | 24 ++++++++++ sources/LLVMSharp/TargetMachine.cs | 24 ++++++++++ sources/LLVMSharp/Types/Type.cs | 4 +- sources/LLVMSharp/Values/Value.cs | 4 +- 14 files changed, 171 insertions(+), 57 deletions(-) create mode 100644 sources/LLVMSharp/Attribute.cs create mode 100644 sources/LLVMSharp/Error.cs create mode 100644 sources/LLVMSharp/Metadata.cs create mode 100644 sources/LLVMSharp/Module.cs create mode 100644 sources/LLVMSharp/Target.cs create mode 100644 sources/LLVMSharp/TargetMachine.cs diff --git a/sources/LLVMSharp/Attribute.cs b/sources/LLVMSharp/Attribute.cs new file mode 100644 index 00000000..febeb2ea --- /dev/null +++ b/sources/LLVMSharp/Attribute.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using LLVMSharp.Interop; + +namespace LLVMSharp +{ + public sealed class Attribute : IEquatable + { + public LLVMAttributeRef Handle { get; } + + public static bool operator ==(Attribute left, Attribute right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); + + public static bool operator !=(Attribute left, Attribute right) => !(left == right); + + public override bool Equals(object obj) => (obj is Attribute other) && Equals(other); + + public bool Equals(Attribute other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); + } +} diff --git a/sources/LLVMSharp/DataLayout.cs b/sources/LLVMSharp/DataLayout.cs index 7a77edc8..d3379da2 100644 --- a/sources/LLVMSharp/DataLayout.cs +++ b/sources/LLVMSharp/DataLayout.cs @@ -14,52 +14,30 @@ public DataLayout(ReadOnlySpan stringRep) public LLVMTargetDataRef Handle { get; } - public StructLayout GetStructLayout(StructType structType) - { - return new StructLayout(this, structType); - } + public StructLayout GetStructLayout(StructType structType) => new StructLayout(this, structType); - public ulong GetTypeSizeInBits(Type type) - { - return Handle.SizeOfTypeInBits(type.Handle); - } + public ulong GetTypeSizeInBits(Type type) => Handle.SizeOfTypeInBits(type.Handle); - public ulong GetTypeStoreSize(Type type) - { - return Handle.StoreSizeOfType(type.Handle); - } + public ulong GetTypeStoreSize(Type type) => Handle.StoreSizeOfType(type.Handle); - public ulong GetTypeAllocSize(Type type) - { - return Handle.ABISizeOfType(type.Handle); - } + public ulong GetTypeAllocSize(Type type) => Handle.ABISizeOfType(type.Handle); - public uint GetABITypeAlignment(Type type) - { - return Handle.ABIAlignmentOfType(type.Handle); - } + public uint GetABITypeAlignment(Type type) => Handle.ABIAlignmentOfType(type.Handle); - public uint GetPrefTypeAlignment(Type type) - { - return Handle.PreferredAlignmentOfType(type.Handle); - } + public uint GetPrefTypeAlignment(Type type) => Handle.PreferredAlignmentOfType(type.Handle); - public uint GetPreferredAlign(Value value) - { - return Handle.PreferredAlignmentOfGlobal(value.Handle); - } + public uint GetPreferredAlign(Value value) => Handle.PreferredAlignmentOfGlobal(value.Handle); - public static bool operator ==(DataLayout left, DataLayout right) => (left is object) ? ((right is object) && (left.Handle == right.Handle)) : (right is null); + public static bool operator ==(DataLayout left, DataLayout right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); - public static bool operator !=(DataLayout left, DataLayout right) => (left is object) ? ((right is null) || (left.Handle != right.Handle)) : (right is object); + public static bool operator !=(DataLayout left, DataLayout right) => !(left == right); public override bool Equals(object obj) => (obj is DataLayout other) && Equals(other); public bool Equals(DataLayout other) => this == other; - public override int GetHashCode() - { - return Handle.GetHashCode(); - } + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); } } diff --git a/sources/LLVMSharp/Error.cs b/sources/LLVMSharp/Error.cs new file mode 100644 index 00000000..bc574295 --- /dev/null +++ b/sources/LLVMSharp/Error.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using LLVMSharp.Interop; + +namespace LLVMSharp +{ + public sealed class Error : IEquatable + { + public LLVMErrorRef Handle { get; } + + public static bool operator ==(Error left, Error right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); + + public static bool operator !=(Error left, Error right) => !(left == right); + + public override bool Equals(object obj) => (obj is Error other) && Equals(other); + + public bool Equals(Error other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); + } +} diff --git a/sources/LLVMSharp/IRBuilderBase.cs b/sources/LLVMSharp/IRBuilderBase.cs index f211a873..20640225 100644 --- a/sources/LLVMSharp/IRBuilderBase.cs +++ b/sources/LLVMSharp/IRBuilderBase.cs @@ -26,9 +26,9 @@ public BasicBlock InsertBlock } } - public static bool operator ==(IRBuilderBase left, IRBuilderBase right) => (left is object) ? ((right is object) && (left.Handle == right.Handle)) : (right is null); + public static bool operator ==(IRBuilderBase left, IRBuilderBase right) => ReferenceEquals(left, right) || (left.Handle == right.Handle); - public static bool operator !=(IRBuilderBase left, IRBuilderBase right) => (left is object) ? ((right is null) || (left.Handle != right.Handle)) : (right is object); + public static bool operator !=(IRBuilderBase left, IRBuilderBase right) => !(left == right); public void ClearInsertionPoint() => Handle.ClearInsertionPosition(); diff --git a/sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs b/sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs index c397c7b9..8cd087d7 100644 --- a/sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs +++ b/sources/LLVMSharp/Internals/NativeTypeNameAttribute.cs @@ -7,7 +7,7 @@ namespace LLVMSharp { [Conditional("DEBUG")] [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)] - internal sealed class NativeTypeNameAttribute : Attribute + internal sealed class NativeTypeNameAttribute : System.Attribute { public NativeTypeNameAttribute(string name) { diff --git a/sources/LLVMSharp/LLVMContext.cs b/sources/LLVMSharp/LLVMContext.cs index 5b5f1e2a..9df03bac 100644 --- a/sources/LLVMSharp/LLVMContext.cs +++ b/sources/LLVMSharp/LLVMContext.cs @@ -18,9 +18,9 @@ public LLVMContext() public LLVMContextRef Handle { get; } - public static bool operator ==(LLVMContext left, LLVMContext right) => (left is object) ? ((right is object) && (left.Handle == right.Handle)) : (right is null); + public static bool operator ==(LLVMContext left, LLVMContext right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); - public static bool operator !=(LLVMContext left, LLVMContext right) => (left is object) ? ((right is null) || (left.Handle != right.Handle)) : (right is object); + public static bool operator !=(LLVMContext left, LLVMContext right) => !(left == right); public override bool Equals(object obj) => (obj is LLVMContext other) && Equals(other); diff --git a/sources/LLVMSharp/LLVMSharp.csproj b/sources/LLVMSharp/LLVMSharp.csproj index 50433300..be7d05f7 100644 --- a/sources/LLVMSharp/LLVMSharp.csproj +++ b/sources/LLVMSharp/LLVMSharp.csproj @@ -12,6 +12,7 @@ + diff --git a/sources/LLVMSharp/Metadata.cs b/sources/LLVMSharp/Metadata.cs new file mode 100644 index 00000000..99783d7c --- /dev/null +++ b/sources/LLVMSharp/Metadata.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using LLVMSharp.Interop; + +namespace LLVMSharp +{ + public sealed class Metadata : IEquatable + { + public LLVMMetadataRef Handle { get; } + + public static bool operator ==(Metadata left, Metadata right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); + + public static bool operator !=(Metadata left, Metadata right) => !(left == right); + + public override bool Equals(object obj) => (obj is Metadata other) && Equals(other); + + public bool Equals(Metadata other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); + } +} diff --git a/sources/LLVMSharp/Module.cs b/sources/LLVMSharp/Module.cs new file mode 100644 index 00000000..f81f3bae --- /dev/null +++ b/sources/LLVMSharp/Module.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using LLVMSharp.Interop; + +namespace LLVMSharp +{ + public sealed class Module : IEquatable + { + public LLVMModuleRef Handle { get; } + + public static bool operator ==(Module left, Module right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); + + public static bool operator !=(Module left, Module right) => !(left == right); + + public override bool Equals(object obj) => (obj is Module other) && Equals(other); + + public bool Equals(Module other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); + } +} diff --git a/sources/LLVMSharp/StructLayout.cs b/sources/LLVMSharp/StructLayout.cs index 36af839f..dbcd45d0 100644 --- a/sources/LLVMSharp/StructLayout.cs +++ b/sources/LLVMSharp/StructLayout.cs @@ -15,27 +15,18 @@ internal StructLayout(DataLayout dataLayout, StructType structType) _structType = structType; } - public ulong OffsetOfElement(uint element) - { - return _dataLayout.Handle.OffsetOfElement(_structType.Handle, element); - } + public ulong OffsetOfElement(uint element) => _dataLayout.Handle.OffsetOfElement(_structType.Handle, element); - public ulong ElementAtOffset(ulong offset) - { - return _dataLayout.Handle.ElementAtOffset(_structType.Handle, offset); - } + public ulong ElementAtOffset(ulong offset) => _dataLayout.Handle.ElementAtOffset(_structType.Handle, offset); - public static bool operator ==(StructLayout left, StructLayout right) => (left is object) ? ((right is object) && (left._dataLayout == right._dataLayout && left._structType == right._structType)) : (right is null); + public static bool operator ==(StructLayout left, StructLayout right) => ReferenceEquals(left, right) || ((left?._dataLayout == right._dataLayout) && (left?._structType == right?._structType)); - public static bool operator !=(StructLayout left, StructLayout right) => (left is object) ? ((right is null) || (left._dataLayout != right._dataLayout || left._structType != right._structType)) : (right is object); + public static bool operator !=(StructLayout left, StructLayout right) => !(left == right); public override bool Equals(object obj) => (obj is StructLayout other) && Equals(other); public bool Equals(StructLayout other) => this == other; - public override int GetHashCode() - { - return _structType.GetHashCode() * 397 ^ _dataLayout.GetHashCode(); - } + public override int GetHashCode() => HashCode.Combine(_structType, _dataLayout); } } diff --git a/sources/LLVMSharp/Target.cs b/sources/LLVMSharp/Target.cs new file mode 100644 index 00000000..4012c655 --- /dev/null +++ b/sources/LLVMSharp/Target.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using LLVMSharp.Interop; + +namespace LLVMSharp +{ + public sealed class Target : IEquatable + { + public LLVMTargetRef Handle { get; } + + public static bool operator ==(Target left, Target right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); + + public static bool operator !=(Target left, Target right) => !(left == right); + + public override bool Equals(object obj) => (obj is Target other) && Equals(other); + + public bool Equals(Target other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); + } +} diff --git a/sources/LLVMSharp/TargetMachine.cs b/sources/LLVMSharp/TargetMachine.cs new file mode 100644 index 00000000..715c0638 --- /dev/null +++ b/sources/LLVMSharp/TargetMachine.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +using System; +using LLVMSharp.Interop; + +namespace LLVMSharp +{ + public sealed class TargetMachine : IEquatable + { + public LLVMTargetMachineRef Handle { get; } + + public static bool operator ==(TargetMachine left, TargetMachine right) => ReferenceEquals(left, right) || (left?.Handle == right?.Handle); + + public static bool operator !=(TargetMachine left, TargetMachine right) => !(left == right); + + public override bool Equals(object obj) => (obj is TargetMachine other) && Equals(other); + + public bool Equals(TargetMachine other) => this == other; + + public override int GetHashCode() => Handle.GetHashCode(); + + public override string ToString() => Handle.ToString(); + } +} diff --git a/sources/LLVMSharp/Types/Type.cs b/sources/LLVMSharp/Types/Type.cs index 3c0bd6b5..a588267e 100644 --- a/sources/LLVMSharp/Types/Type.cs +++ b/sources/LLVMSharp/Types/Type.cs @@ -18,9 +18,9 @@ private protected Type(LLVMTypeRef handle, LLVMTypeKind expectedTypeKind) public LLVMTypeRef Handle { get; } - public static bool operator ==(Type left, Type right) => (left is object) ? ((right is object) && (left.Handle == right.Handle)) : (right is null); + public static bool operator ==(Type left, Type right) => ReferenceEquals(left, right) || (left.Handle == right.Handle); - public static bool operator !=(Type left, Type right) => (left is object) ? ((right is null) || (left.Handle != right.Handle)) : (right is object); + public static bool operator !=(Type left, Type right) => !(left == right); public static Type GetDoubleTy(LLVMContext C) { diff --git a/sources/LLVMSharp/Values/Value.cs b/sources/LLVMSharp/Values/Value.cs index 49911bd9..34bd705d 100644 --- a/sources/LLVMSharp/Values/Value.cs +++ b/sources/LLVMSharp/Values/Value.cs @@ -18,9 +18,9 @@ private protected Value(LLVMValueRef handle, LLVMValueKind expectedValueKind) public LLVMValueRef Handle { get; } - public static bool operator ==(Value left, Value right) => (left is object) ? ((right is object) && (left.Handle == right.Handle)) : (right is null); + public static bool operator ==(Value left, Value right) => ReferenceEquals(left, right) || (left.Handle == right.Handle); - public static bool operator !=(Value left, Value right) => (left is object) ? ((right is null) || (left.Handle != right.Handle)) : (right is object); + public static bool operator !=(Value left, Value right) => !(left == right); public override bool Equals(object obj) => (obj is Value other) && Equals(other); From b469b02473b4b0ca77c8c953d1426267bed6fad6 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Mon, 19 Oct 2020 14:45:00 -0700 Subject: [PATCH 3/3] Regenerating bindings for LLVM 11.0.0 --- Directory.Build.props | 2 +- Directory.Build.targets | 2 +- .../libLLVM.runtime.freebsd.11-x64.nuspec | 4 +- .../libLLVM.runtime.freebsd.11-x86.nuspec | 4 +- .../libLLVM.runtime.linux-arm.nuspec | 4 +- .../libLLVM.runtime.linux-arm64.nuspec | 4 +- .../libLLVM.runtime.osx-x64.nuspec | 4 +- .../libLLVM.runtime.sles-x64.nuspec | 4 +- .../libLLVM.runtime.ubuntu.16.04-x64.nuspec | 4 +- .../libLLVM.runtime.ubuntu.18.04-x64.nuspec | 4 +- .../libLLVM.runtime.ubuntu.20.04-x64.nuspec | 4 +- .../libLLVM.runtime.win-x64.nuspec | 4 +- .../libLLVM.runtime.win-x86.nuspec | 4 +- packages/libLLVM/libLLVM/libLLVM.nuspec | 4 +- packages/libLLVM/libLLVM/runtime.json | 22 +- .../Interop.Extensions/LLVM.Manual.cs | 309 ++ .../LLVMAttributeIndex.cs | 0 .../Interop.Extensions/LLVMContextRef.cs | 2 + .../Interop.Extensions/LLVMDIBuilderRef.cs | 8 +- .../LLVMMetadataKind.cs | 0 .../Interop.Extensions/LLVMTypeRef.cs | 2 + sources/LLVMSharp/Interop/LLVM.cs | 2900 ++++++++--------- .../LLVMSharp/Interop/LLVMAtomicOrdering.cs | 2 +- .../LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs | 2 +- sources/LLVMSharp/Interop/LLVMBinaryType.cs | 2 +- sources/LLVMSharp/Interop/LLVMByteOrdering.cs | 2 +- sources/LLVMSharp/Interop/LLVMCallConv.cs | 2 +- .../LLVMSharp/Interop/LLVMCodeGenFileType.cs | 2 +- .../LLVMSharp/Interop/LLVMCodeGenOptLevel.cs | 2 +- sources/LLVMSharp/Interop/LLVMCodeModel.cs | 2 +- sources/LLVMSharp/Interop/LLVMComdat.cs | 2 +- .../Interop/LLVMComdatSelectionKind.cs | 2 +- sources/LLVMSharp/Interop/LLVMDIFlags.cs | 2 +- .../LLVMSharp/Interop/LLVMDLLStorageClass.cs | 2 +- .../Interop/LLVMDWARFEmissionKind.cs | 2 +- .../Interop/LLVMDWARFMacinfoRecordType.cs | 2 +- .../Interop/LLVMDWARFSourceLanguage.cs | 2 +- .../Interop/LLVMDiagnosticHandler.cs | 2 +- .../Interop/LLVMDiagnosticSeverity.cs | 2 +- .../Interop/LLVMFatalErrorHandler.cs | 2 +- .../LLVMSharp/Interop/LLVMInlineAsmDialect.cs | 2 +- sources/LLVMSharp/Interop/LLVMIntPredicate.cs | 2 +- .../Interop/LLVMLandingPadClauseTy.cs | 2 +- sources/LLVMSharp/Interop/LLVMLinkage.cs | 2 +- sources/LLVMSharp/Interop/LLVMLinkerMode.cs | 2 +- .../Interop/LLVMMCJITCompilerOptions.cs | 2 +- ...emoryManagerAllocateCodeSectionCallback.cs | 2 +- ...emoryManagerAllocateDataSectionCallback.cs | 2 +- .../LLVMMemoryManagerDestroyCallback.cs | 2 +- ...LLVMMemoryManagerFinalizeMemoryCallback.cs | 2 +- .../Interop/LLVMModuleFlagBehavior.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpInfo1.cs | 2 +- .../LLVMSharp/Interop/LLVMOpInfoCallback.cs | 2 +- .../LLVMSharp/Interop/LLVMOpInfoSymbol1.cs | 2 +- .../Interop/LLVMOpaqueAttributeRef.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueBuilder.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueContext.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs | 2 +- .../Interop/LLVMOpaqueDiagnosticInfo.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpaqueError.cs | 2 +- .../Interop/LLVMOpaqueExecutionEngine.cs | 2 +- .../Interop/LLVMOpaqueGenericValue.cs | 2 +- .../Interop/LLVMOpaqueJITEventListener.cs | 2 +- .../Interop/LLVMOpaqueLTOCodeGenerator.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueLTOInput.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueLTOModule.cs | 2 +- .../Interop/LLVMOpaqueMCJITMemoryManager.cs | 2 +- .../Interop/LLVMOpaqueMemoryBuffer.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueMetadata.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpaqueModule.cs | 2 +- .../Interop/LLVMOpaqueModuleFlagEntry.cs | 2 +- .../Interop/LLVMOpaqueModuleProvider.cs | 2 +- .../Interop/LLVMOpaqueNamedMDNode.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueObjectFile.cs | 2 +- .../Interop/LLVMOpaquePassManager.cs | 2 +- .../Interop/LLVMOpaquePassManagerBuilder.cs | 2 +- .../Interop/LLVMOpaquePassRegistry.cs | 2 +- .../Interop/LLVMOpaqueRelocationIterator.cs | 2 +- .../Interop/LLVMOpaqueSectionIterator.cs | 2 +- .../Interop/LLVMOpaqueSymbolIterator.cs | 2 +- .../LLVMSharp/Interop/LLVMOpaqueTargetData.cs | 2 +- .../LLVMOpaqueTargetLibraryInfotData.cs | 2 +- .../Interop/LLVMOpaqueTargetMachine.cs | 2 +- .../Interop/LLVMOpaqueThinLTOCodeGenerator.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpaqueType.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpaqueUse.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpaqueValue.cs | 2 +- .../Interop/LLVMOpaqueValueMetadataEntry.cs | 2 +- sources/LLVMSharp/Interop/LLVMOpcode.cs | 2 +- .../Interop/LLVMOrcLazyCompileCallbackFn.cs | 2 +- .../Interop/LLVMOrcOpaqueExecutionSession.cs | 11 + .../Interop/LLVMOrcOpaqueJITDylib.cs | 11 + ...LVMOrcOpaqueJITDylibDefinitionGenerator.cs | 11 + .../Interop/LLVMOrcOpaqueJITStack.cs | 2 +- .../LLVMOrcOpaqueJITTargetMachineBuilder.cs | 11 + .../LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs | 11 + .../Interop/LLVMOrcOpaqueLLJITBuilder.cs | 11 + .../Interop/LLVMOrcOpaqueThreadSafeContext.cs | 11 + .../Interop/LLVMOrcOpaqueThreadSafeModule.cs | 11 + .../LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs | 11 + .../Interop/LLVMOrcSymbolPredicate.cs | 12 + .../Interop/LLVMOrcSymbolResolverFn.cs | 2 +- .../LLVMSharp/Interop/LLVMRealPredicate.cs | 2 +- sources/LLVMSharp/Interop/LLVMRelocMode.cs | 2 +- .../LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs | 2 +- .../Interop/LLVMRemarkOpaqueDebugLoc.cs | 2 +- .../Interop/LLVMRemarkOpaqueEntry.cs | 2 +- .../Interop/LLVMRemarkOpaqueParser.cs | 2 +- .../Interop/LLVMRemarkOpaqueString.cs | 2 +- sources/LLVMSharp/Interop/LLVMRemarkType.cs | 2 +- .../Interop/LLVMSymbolLookupCallback.cs | 2 +- sources/LLVMSharp/Interop/LLVMTarget.cs | 2 +- .../LLVMSharp/Interop/LLVMThreadLocalMode.cs | 2 +- sources/LLVMSharp/Interop/LLVMTypeKind.cs | 4 +- sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs | 2 +- sources/LLVMSharp/Interop/LLVMValueKind.cs | 2 +- .../Interop/LLVMVerifierFailureAction.cs | 2 +- sources/LLVMSharp/Interop/LLVMVisibility.cs | 2 +- .../LLVMSharp/Interop/LLVMYieldCallback.cs | 2 +- sources/LLVMSharp/Interop/LTOObjectBuffer.cs | 2 +- sources/LLVMSharp/Interop/llvm_lto_status.cs | 2 +- .../lto_codegen_diagnostic_severity_t.cs | 2 +- .../LLVMSharp/Interop/lto_codegen_model.cs | 2 +- sources/LLVMSharp/Interop/lto_debug_model.cs | 2 +- .../Interop/lto_diagnostic_handler_t.cs | 2 +- .../Interop/lto_symbol_attributes.cs | 2 +- sources/LLVMSharp/Types/Type.cs | 6 + .../LLVMSharp.UnitTests/DIBuilder.cs | 4 +- .../LLVMSharp.UnitTests/Functions.cs | 0 .../Interop/LLVMComdatTests.cs | 35 + .../Interop/LLVMMCJITCompilerOptionsTests.cs | 43 + .../Interop/LLVMOpInfo1Tests.cs | 35 + .../Interop/LLVMOpInfoSymbol1Tests.cs | 35 + .../Interop/LLVMOpaqueAttributeRefTests.cs | 35 + .../Interop/LLVMOpaqueBasicBlockTests.cs | 35 + .../Interop/LLVMOpaqueBinaryTests.cs | 35 + .../Interop/LLVMOpaqueBuilderTests.cs | 35 + .../Interop/LLVMOpaqueContextTests.cs | 35 + .../Interop/LLVMOpaqueDIBuilderTests.cs | 35 + .../Interop/LLVMOpaqueDiagnosticInfoTests.cs | 35 + .../Interop/LLVMOpaqueErrorTests.cs | 35 + .../Interop/LLVMOpaqueExecutionEngineTests.cs | 35 + .../Interop/LLVMOpaqueGenericValueTests.cs | 35 + .../LLVMOpaqueJITEventListenerTests.cs | 35 + .../LLVMOpaqueLTOCodeGeneratorTests.cs | 35 + .../Interop/LLVMOpaqueLTOInputTests.cs | 35 + .../Interop/LLVMOpaqueLTOModuleTests.cs | 35 + .../LLVMOpaqueMCJITMemoryManagerTests.cs | 35 + .../Interop/LLVMOpaqueMemoryBufferTests.cs | 35 + .../Interop/LLVMOpaqueMetadataTests.cs | 35 + .../Interop/LLVMOpaqueModuleFlagEntryTests.cs | 35 + .../Interop/LLVMOpaqueModuleProviderTests.cs | 35 + .../Interop/LLVMOpaqueModuleTests.cs | 35 + .../Interop/LLVMOpaqueNamedMDNodeTests.cs | 35 + .../Interop/LLVMOpaqueObjectFileTests.cs | 35 + .../LLVMOpaquePassManagerBuilderTests.cs | 35 + .../Interop/LLVMOpaquePassManagerTests.cs | 35 + .../Interop/LLVMOpaquePassRegistryTests.cs | 35 + .../LLVMOpaqueRelocationIteratorTests.cs | 35 + .../Interop/LLVMOpaqueSectionIteratorTests.cs | 35 + .../Interop/LLVMOpaqueSymbolIteratorTests.cs | 35 + .../Interop/LLVMOpaqueTargetDataTests.cs | 35 + .../LLVMOpaqueTargetLibraryInfotDataTests.cs | 35 + .../Interop/LLVMOpaqueTargetMachineTests.cs | 35 + .../LLVMOpaqueThinLTOCodeGeneratorTests.cs | 35 + .../Interop/LLVMOpaqueTypeTests.cs | 35 + .../Interop/LLVMOpaqueUseTests.cs | 35 + .../LLVMOpaqueValueMetadataEntryTests.cs | 35 + .../Interop/LLVMOpaqueValueTests.cs | 35 + .../LLVMOrcOpaqueExecutionSessionTests.cs | 35 + ...cOpaqueJITDylibDefinitionGeneratorTests.cs | 35 + .../Interop/LLVMOrcOpaqueJITDylibTests.cs | 35 + .../Interop/LLVMOrcOpaqueJITStackTests.cs | 35 + ...VMOrcOpaqueJITTargetMachineBuilderTests.cs | 35 + .../Interop/LLVMOrcOpaqueLLJITBuilderTests.cs | 35 + .../Interop/LLVMOrcOpaqueLLJITTests.cs | 35 + .../LLVMOrcOpaqueThreadSafeContextTests.cs | 35 + .../LLVMOrcOpaqueThreadSafeModuleTests.cs | 35 + ...MOrcQuaqueSymbolStringPoolEntryPtrTests.cs | 35 + .../Interop/LLVMRemarkOpaqueArgTests.cs | 35 + .../Interop/LLVMRemarkOpaqueDebugLocTests.cs | 35 + .../Interop/LLVMRemarkOpaqueEntryTests.cs | 35 + .../Interop/LLVMRemarkOpaqueParserTests.cs | 35 + .../Interop/LLVMRemarkOpaqueStringTests.cs | 35 + .../Interop/LLVMTargetTests.cs | 35 + .../Interop/LTOObjectBufferTests.cs | 43 + .../Properties/launchSettings.json | 0 189 files changed, 4027 insertions(+), 1594 deletions(-) create mode 100644 sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs rename sources/LLVMSharp/{Interop => Interop.Extensions}/LLVMAttributeIndex.cs (100%) rename sources/LLVMSharp/{Interop => Interop.Extensions}/LLVMMetadataKind.cs (100%) create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylib.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJITBuilder.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeModule.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs create mode 100644 sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs rename {Tests => tests}/LLVMSharp.UnitTests/DIBuilder.cs (96%) rename {Tests => tests}/LLVMSharp.UnitTests/Functions.cs (100%) create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs create mode 100644 tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs rename {Tests => tests}/LLVMSharp.UnitTests/Properties/launchSettings.json (100%) diff --git a/Directory.Build.props b/Directory.Build.props index 66020251..378350e6 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -40,7 +40,7 @@ Microsoft $(BaseArtifactsPath)pkg/$(Configuration)/ LLVMSharp - 10.0.0 + 11.0.0 beta diff --git a/Directory.Build.targets b/Directory.Build.targets index 419af15c..ec173a49 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -22,7 +22,7 @@ - + diff --git a/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec b/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec index e51d610d..ca4049ae 100644 --- a/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.freebsd.11-x64/libLLVM.runtime.freebsd.11-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.freebsd.11-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp freebsd 11 x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec b/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec index 8d4f9d55..546c95fb 100644 --- a/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec +++ b/packages/libLLVM/libLLVM.runtime.freebsd.11-x86/libLLVM.runtime.freebsd.11-x86.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.freebsd.11-x86 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp freebsd 11 x86 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec b/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec index a6bd0829..837c88ef 100644 --- a/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec +++ b/packages/libLLVM/libLLVM.runtime.linux-arm/libLLVM.runtime.linux-arm.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.linux-arm - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp linux arm native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec b/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec index 8616d2fe..d313f7b8 100644 --- a/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.linux-arm64/libLLVM.runtime.linux-arm64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.linux-arm64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp linux arm64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec b/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec index cffdadaf..d0a44d64 100644 --- a/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.osx-x64/libLLVM.runtime.osx-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.osx-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp osx x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec b/packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec index 4acf2e1c..13b0d247 100644 --- a/packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.sles-x64/libLLVM.runtime.sles-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.sles-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp sles x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec b/packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec index 81bfc22d..f26fa8c6 100644 --- a/packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.ubuntu.16.04-x64/libLLVM.runtime.ubuntu.16.04-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.ubuntu.16.04-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp ubuntu 16.04 x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec b/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec index e18eaca0..15df4751 100644 --- a/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.ubuntu.18.04-x64/libLLVM.runtime.ubuntu.18.04-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.ubuntu.18.04-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp ubuntu 18.04 x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec b/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec index 2a085bb4..b87a13e7 100644 --- a/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.ubuntu.20.04-x64/libLLVM.runtime.ubuntu.20.04-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.ubuntu.20.04-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp ubuntu 20.04 x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec b/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec index 7b84c8b9..86f2065a 100644 --- a/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec +++ b/packages/libLLVM/libLLVM.runtime.win-x64/libLLVM.runtime.win-x64.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.win-x64 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp win x64 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec b/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec index b0f92b23..ce97a61a 100644 --- a/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec +++ b/packages/libLLVM/libLLVM.runtime.win-x86/libLLVM.runtime.win-x86.nuspec @@ -2,7 +2,7 @@ libLLVM.runtime.win-x86 - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp win x86 native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM/libLLVM.nuspec b/packages/libLLVM/libLLVM/libLLVM.nuspec index 34631d52..aa16768e 100644 --- a/packages/libLLVM/libLLVM/libLLVM.nuspec +++ b/packages/libLLVM/libLLVM/libLLVM.nuspec @@ -2,7 +2,7 @@ libLLVM - 10.0.0 + 11.0.0 Microsoft and Contributors Microsoft and Contributors true @@ -10,7 +10,7 @@ https://github.com/microsoft/llvmsharp Multi-platform native library for libLLVM. Copyright © University of Illinois at Urbana-Champaign - + diff --git a/packages/libLLVM/libLLVM/runtime.json b/packages/libLLVM/libLLVM/runtime.json index d5184377..4b1f72f0 100644 --- a/packages/libLLVM/libLLVM/runtime.json +++ b/packages/libLLVM/libLLVM/runtime.json @@ -2,57 +2,57 @@ "runtimes": { "freebsd.11-x64": { "libLLVM": { - "libLLVM.runtime.freebsd.11-x64": "10.0.0" + "libLLVM.runtime.freebsd.11-x64": "11.0.0" } }, "freebsd.11-x86": { "libLLVM": { - "libLLVM.runtime.freebsd.11-x86": "10.0.0" + "libLLVM.runtime.freebsd.11-x86": "11.0.0" } }, "linux-arm": { "libLLVM": { - "libLLVM.runtime.linux-arm": "10.0.0" + "libLLVM.runtime.linux-arm": "11.0.0" } }, "linux-arm64": { "libLLVM": { - "libLLVM.runtime.linux-arm64": "10.0.0" + "libLLVM.runtime.linux-arm64": "11.0.0" } }, "osx-x64": { "libLLVM": { - "libLLVM.runtime.osx-x64": "10.0.0" + "libLLVM.runtime.osx-x64": "11.0.0" } }, "sles-x64": { "libLLVM": { - "libLLVM.runtime.sles-x64": "10.0.0" + "libLLVM.runtime.sles-x64": "11.0.0" } }, "ubuntu.16.04-x64": { "libLLVM": { - "libLLVM.runtime.ubuntu.16.04-x64": "10.0.0" + "libLLVM.runtime.ubuntu.16.04-x64": "11.0.0" } }, "ubuntu.18.04-x64": { "libLLVM": { - "libLLVM.runtime.ubuntu.18.04-x64": "10.0.0" + "libLLVM.runtime.ubuntu.18.04-x64": "11.0.0" } }, "ubuntu.20.04-x64": { "libLLVM": { - "libLLVM.runtime.ubuntu.20.04-x64": "10.0.0" + "libLLVM.runtime.ubuntu.20.04-x64": "11.0.0" } }, "win-x64": { "libLLVM": { - "libLLVM.runtime.win-x64": "10.0.0" + "libLLVM.runtime.win-x64": "11.0.0" } }, "win-x86": { "libLLVM": { - "libLLVM.runtime.win-x86": "10.0.0" + "libLLVM.runtime.win-x86": "11.0.0" } } } diff --git a/sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs b/sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs new file mode 100644 index 00000000..862ab2ab --- /dev/null +++ b/sources/LLVMSharp/Interop.Extensions/LLVM.Manual.cs @@ -0,0 +1,309 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop +{ + public static unsafe partial class LLVM + { + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64TargetInfo", ExactSpelling = true)] + public static extern void InitializeAArch64TargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUTargetInfo", ExactSpelling = true)] + public static extern void InitializeAMDGPUTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMTargetInfo", ExactSpelling = true)] + public static extern void InitializeARMTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAVRTargetInfo", ExactSpelling = true)] + public static extern void InitializeAVRTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFTargetInfo", ExactSpelling = true)] + public static extern void InitializeBPFTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonTargetInfo", ExactSpelling = true)] + public static extern void InitializeHexagonTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiTargetInfo", ExactSpelling = true)] + public static extern void InitializeLanaiTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsTargetInfo", ExactSpelling = true)] + public static extern void InitializeMipsTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430TargetInfo", ExactSpelling = true)] + public static extern void InitializeMSP430TargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXTargetInfo", ExactSpelling = true)] + public static extern void InitializeNVPTXTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCTargetInfo", ExactSpelling = true)] + public static extern void InitializePowerPCTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVTargetInfo", ExactSpelling = true)] + public static extern void InitializeRISCVTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetInfo", ExactSpelling = true)] + public static extern void InitializeSparcTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTargetInfo", ExactSpelling = true)] + public static extern void InitializeSystemZTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyTargetInfo", ExactSpelling = true)] + public static extern void InitializeWebAssemblyTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86TargetInfo", ExactSpelling = true)] + public static extern void InitializeX86TargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreTargetInfo", ExactSpelling = true)] + public static extern void InitializeXCoreTargetInfo(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64Target", ExactSpelling = true)] + public static extern void InitializeAArch64Target(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUTarget", ExactSpelling = true)] + public static extern void InitializeAMDGPUTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMTarget", ExactSpelling = true)] + public static extern void InitializeARMTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAVRTarget", ExactSpelling = true)] + public static extern void InitializeAVRTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFTarget", ExactSpelling = true)] + public static extern void InitializeBPFTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonTarget", ExactSpelling = true)] + public static extern void InitializeHexagonTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiTarget", ExactSpelling = true)] + public static extern void InitializeLanaiTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsTarget", ExactSpelling = true)] + public static extern void InitializeMipsTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430Target", ExactSpelling = true)] + public static extern void InitializeMSP430Target(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXTarget", ExactSpelling = true)] + public static extern void InitializeNVPTXTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCTarget", ExactSpelling = true)] + public static extern void InitializePowerPCTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVTarget", ExactSpelling = true)] + public static extern void InitializeRISCVTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTarget", ExactSpelling = true)] + public static extern void InitializeSparcTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTarget", ExactSpelling = true)] + public static extern void InitializeSystemZTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyTarget", ExactSpelling = true)] + public static extern void InitializeWebAssemblyTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86Target", ExactSpelling = true)] + public static extern void InitializeX86Target(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreTarget", ExactSpelling = true)] + public static extern void InitializeXCoreTarget(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64TargetMC", ExactSpelling = true)] + public static extern void InitializeAArch64TargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUTargetMC", ExactSpelling = true)] + public static extern void InitializeAMDGPUTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMTargetMC", ExactSpelling = true)] + public static extern void InitializeARMTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAVRTargetMC", ExactSpelling = true)] + public static extern void InitializeAVRTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFTargetMC", ExactSpelling = true)] + public static extern void InitializeBPFTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonTargetMC", ExactSpelling = true)] + public static extern void InitializeHexagonTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiTargetMC", ExactSpelling = true)] + public static extern void InitializeLanaiTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsTargetMC", ExactSpelling = true)] + public static extern void InitializeMipsTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430TargetMC", ExactSpelling = true)] + public static extern void InitializeMSP430TargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXTargetMC", ExactSpelling = true)] + public static extern void InitializeNVPTXTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCTargetMC", ExactSpelling = true)] + public static extern void InitializePowerPCTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVTargetMC", ExactSpelling = true)] + public static extern void InitializeRISCVTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetMC", ExactSpelling = true)] + public static extern void InitializeSparcTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTargetMC", ExactSpelling = true)] + public static extern void InitializeSystemZTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyTargetMC", ExactSpelling = true)] + public static extern void InitializeWebAssemblyTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86TargetMC", ExactSpelling = true)] + public static extern void InitializeX86TargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreTargetMC", ExactSpelling = true)] + public static extern void InitializeXCoreTargetMC(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64AsmPrinter", ExactSpelling = true)] + public static extern void InitializeAArch64AsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUAsmPrinter", ExactSpelling = true)] + public static extern void InitializeAMDGPUAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMAsmPrinter", ExactSpelling = true)] + public static extern void InitializeARMAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAVRAsmPrinter", ExactSpelling = true)] + public static extern void InitializeAVRAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFAsmPrinter", ExactSpelling = true)] + public static extern void InitializeBPFAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonAsmPrinter", ExactSpelling = true)] + public static extern void InitializeHexagonAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiAsmPrinter", ExactSpelling = true)] + public static extern void InitializeLanaiAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsAsmPrinter", ExactSpelling = true)] + public static extern void InitializeMipsAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430AsmPrinter", ExactSpelling = true)] + public static extern void InitializeMSP430AsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXAsmPrinter", ExactSpelling = true)] + public static extern void InitializeNVPTXAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCAsmPrinter", ExactSpelling = true)] + public static extern void InitializePowerPCAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVAsmPrinter", ExactSpelling = true)] + public static extern void InitializeRISCVAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcAsmPrinter", ExactSpelling = true)] + public static extern void InitializeSparcAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZAsmPrinter", ExactSpelling = true)] + public static extern void InitializeSystemZAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyAsmPrinter", ExactSpelling = true)] + public static extern void InitializeWebAssemblyAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86AsmPrinter", ExactSpelling = true)] + public static extern void InitializeX86AsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreAsmPrinter", ExactSpelling = true)] + public static extern void InitializeXCoreAsmPrinter(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64AsmParser", ExactSpelling = true)] + public static extern void InitializeAArch64AsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUAsmParser", ExactSpelling = true)] + public static extern void InitializeAMDGPUAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMAsmParser", ExactSpelling = true)] + public static extern void InitializeARMAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAVRAsmParser", ExactSpelling = true)] + public static extern void InitializeAVRAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFAsmParser", ExactSpelling = true)] + public static extern void InitializeBPFAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonAsmParser", ExactSpelling = true)] + public static extern void InitializeHexagonAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiAsmParser", ExactSpelling = true)] + public static extern void InitializeLanaiAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsAsmParser", ExactSpelling = true)] + public static extern void InitializeMipsAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430AsmParser", ExactSpelling = true)] + public static extern void InitializeMSP430AsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCAsmParser", ExactSpelling = true)] + public static extern void InitializePowerPCAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVAsmParser", ExactSpelling = true)] + public static extern void InitializeRISCVAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcAsmParser", ExactSpelling = true)] + public static extern void InitializeSparcAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZAsmParser", ExactSpelling = true)] + public static extern void InitializeSystemZAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyAsmParser", ExactSpelling = true)] + public static extern void InitializeWebAssemblyAsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86AsmParser", ExactSpelling = true)] + public static extern void InitializeX86AsmParser(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64Disassembler", ExactSpelling = true)] + public static extern void InitializeAArch64Disassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUDisassembler", ExactSpelling = true)] + public static extern void InitializeAMDGPUDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMDisassembler", ExactSpelling = true)] + public static extern void InitializeARMDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAVRDisassembler", ExactSpelling = true)] + public static extern void InitializeAVRDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFDisassembler", ExactSpelling = true)] + public static extern void InitializeBPFDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonDisassembler", ExactSpelling = true)] + public static extern void InitializeHexagonDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiDisassembler", ExactSpelling = true)] + public static extern void InitializeLanaiDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsDisassembler", ExactSpelling = true)] + public static extern void InitializeMipsDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430Disassembler", ExactSpelling = true)] + public static extern void InitializeMSP430Disassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCDisassembler", ExactSpelling = true)] + public static extern void InitializePowerPCDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVDisassembler", ExactSpelling = true)] + public static extern void InitializeRISCVDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcDisassembler", ExactSpelling = true)] + public static extern void InitializeSparcDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZDisassembler", ExactSpelling = true)] + public static extern void InitializeSystemZDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyDisassembler", ExactSpelling = true)] + public static extern void InitializeWebAssemblyDisassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86Disassembler", ExactSpelling = true)] + public static extern void InitializeX86Disassembler(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreDisassembler", ExactSpelling = true)] + public static extern void InitializeXCoreDisassembler(); + } +} diff --git a/sources/LLVMSharp/Interop/LLVMAttributeIndex.cs b/sources/LLVMSharp/Interop.Extensions/LLVMAttributeIndex.cs similarity index 100% rename from sources/LLVMSharp/Interop/LLVMAttributeIndex.cs rename to sources/LLVMSharp/Interop.Extensions/LLVMAttributeIndex.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs index 872e1203..ab92df93 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMContextRef.cs @@ -16,6 +16,8 @@ public LLVMContextRef(IntPtr handle) public static LLVMContextRef Global => LLVM.GetGlobalContext(); + public LLVMTypeRef BFloatType => (Handle != IntPtr.Zero) ? LLVM.BFloatTypeInContext(this) : default; + public LLVMTypeRef DoubleType => (Handle != IntPtr.Zero) ? LLVM.DoubleTypeInContext(this) : default; public LLVMTypeRef FloatType => (Handle != IntPtr.Zero) ? LLVM.FloatTypeInContext(this) : default; diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs index 7da7fa8c..ee25bbc6 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMDIBuilderRef.cs @@ -22,17 +22,19 @@ public LLVMDIBuilderRef(IntPtr handle) public static bool operator !=(LLVMDIBuilderRef left, LLVMDIBuilderRef right) => !(left == right); public LLVMMetadataRef CreateCompileUnit(LLVMDWARFSourceLanguage SourceLanguage, LLVMMetadataRef FileMetadata, string Producer, int IsOptimized, string Flags, uint RuntimeVersion, - string SplitName, LLVMDWARFEmissionKind DwarfEmissionKind, uint DWOld, int SplitDebugInlining, int DebugInfoForProfiling) => CreateCompileUnit(SourceLanguage, FileMetadata, Producer.AsSpan(), IsOptimized, Flags.AsSpan(), RuntimeVersion, SplitName.AsSpan(), DwarfEmissionKind, DWOld, SplitDebugInlining, DebugInfoForProfiling); + string SplitName, LLVMDWARFEmissionKind DwarfEmissionKind, uint DWOld, int SplitDebugInlining, int DebugInfoForProfiling, string SysRoot, string SDK) => CreateCompileUnit(SourceLanguage, FileMetadata, Producer.AsSpan(), IsOptimized, Flags.AsSpan(), RuntimeVersion, SplitName.AsSpan(), DwarfEmissionKind, DWOld, SplitDebugInlining, DebugInfoForProfiling, SysRoot.AsSpan(), SDK.AsSpan()); public LLVMMetadataRef CreateCompileUnit(LLVMDWARFSourceLanguage SourceLanguage, LLVMMetadataRef FileMetadata, ReadOnlySpan Producer, int IsOptimized, ReadOnlySpan Flags, uint RuntimeVersion, - ReadOnlySpan SplitName, LLVMDWARFEmissionKind DwarfEmissionKind, uint DWOld, int SplitDebugInlining, int DebugInfoForProfiling) + ReadOnlySpan SplitName, LLVMDWARFEmissionKind DwarfEmissionKind, uint DWOld, int SplitDebugInlining, int DebugInfoForProfiling, ReadOnlySpan SysRoot, ReadOnlySpan SDK) { using var marshaledProducer= new MarshaledString(Producer); using var marshaledFlags = new MarshaledString(Flags); using var marshaledSplitNameFlags = new MarshaledString(SplitName); + using var marshaledSysRoot = new MarshaledString(SysRoot); + using var marshaledSDK = new MarshaledString(SDK); return LLVM.DIBuilderCreateCompileUnit(this, SourceLanguage, FileMetadata, marshaledProducer, (UIntPtr)marshaledProducer.Length, IsOptimized, marshaledFlags, (UIntPtr)marshaledFlags.Length, - RuntimeVersion, marshaledSplitNameFlags, (UIntPtr)marshaledSplitNameFlags.Length, DwarfEmissionKind, DWOld, SplitDebugInlining, DebugInfoForProfiling); + RuntimeVersion, marshaledSplitNameFlags, (UIntPtr)marshaledSplitNameFlags.Length, DwarfEmissionKind, DWOld, SplitDebugInlining, DebugInfoForProfiling, marshaledSysRoot, (UIntPtr)marshaledSysRoot.Length, marshaledSDK, (UIntPtr)marshaledSDK.Length); } public LLVMMetadataRef CreateFile(string FullPath, string Directory) => CreateFile(FullPath.AsSpan(), Directory.AsSpan()); diff --git a/sources/LLVMSharp/Interop/LLVMMetadataKind.cs b/sources/LLVMSharp/Interop.Extensions/LLVMMetadataKind.cs similarity index 100% rename from sources/LLVMSharp/Interop/LLVMMetadataKind.cs rename to sources/LLVMSharp/Interop.Extensions/LLVMMetadataKind.cs diff --git a/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs b/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs index 0674fd1d..a2fc98f8 100644 --- a/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs +++ b/sources/LLVMSharp/Interop.Extensions/LLVMTypeRef.cs @@ -13,6 +13,8 @@ public LLVMTypeRef(IntPtr handle) Handle = handle; } + public static LLVMTypeRef BFloat => LLVM.BFloatType(); + public static LLVMTypeRef Double => LLVM.DoubleType(); public static LLVMTypeRef Float => LLVM.FloatType(); diff --git a/sources/LLVMSharp/Interop/LLVM.cs b/sources/LLVMSharp/Interop/LLVM.cs index 3480209e..1523bbd7 100644 --- a/sources/LLVMSharp/Interop/LLVM.cs +++ b/sources/LLVMSharp/Interop/LLVM.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; @@ -10,4167 +10,4147 @@ namespace LLVMSharp.Interop { public static unsafe partial class LLVM { - private const string LibraryPath = "libLLVM"; - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVerifyModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVerifyModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int VerifyModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, LLVMVerifierFailureAction Action, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVerifyFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVerifyFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int VerifyFunction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, LLVMVerifierFailureAction Action); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMViewFunctionCFG", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMViewFunctionCFG", ExactSpelling = true)] public static extern void ViewFunctionCFG([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMViewFunctionCFGOnly", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMViewFunctionCFGOnly", ExactSpelling = true)] public static extern void ViewFunctionCFGOnly([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcode", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ParseBitcode([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutModule, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcode2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcode2", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ParseBitcode2([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutModule); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcodeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcodeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ParseBitcodeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutModule, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcodeInContext2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseBitcodeInContext2", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ParseBitcodeInContext2([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutModule); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModuleInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModuleInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetBitcodeModuleInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModuleInContext2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModuleInContext2", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetBitcodeModuleInContext2([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetBitcodeModule([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModule2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBitcodeModule2", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetBitcodeModule2([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFile", ExactSpelling = true)] public static extern int WriteBitcodeToFile([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFD", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFD", ExactSpelling = true)] public static extern int WriteBitcodeToFD([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, int FD, int ShouldClose, int Unbuffered); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFileHandle", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToFileHandle", ExactSpelling = true)] public static extern int WriteBitcodeToFileHandle([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, int Handle); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToMemoryBuffer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMWriteBitcodeToMemoryBuffer", ExactSpelling = true)] [return: NativeTypeName("LLVMMemoryBufferRef")] public static extern LLVMOpaqueMemoryBuffer* WriteBitcodeToMemoryBuffer([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrInsertComdat", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrInsertComdat", ExactSpelling = true)] [return: NativeTypeName("LLVMComdatRef")] public static extern LLVMComdat* GetOrInsertComdat([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetComdat", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetComdat", ExactSpelling = true)] [return: NativeTypeName("LLVMComdatRef")] public static extern LLVMComdat* GetComdat([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetComdat", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetComdat", ExactSpelling = true)] public static extern void SetComdat([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("LLVMComdatRef")] LLVMComdat* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetComdatSelectionKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetComdatSelectionKind", ExactSpelling = true)] public static extern LLVMComdatSelectionKind GetComdatSelectionKind([NativeTypeName("LLVMComdatRef")] LLVMComdat* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetComdatSelectionKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetComdatSelectionKind", ExactSpelling = true)] public static extern void SetComdatSelectionKind([NativeTypeName("LLVMComdatRef")] LLVMComdat* C, LLVMComdatSelectionKind Kind); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeCore", ExactSpelling = true)] + public const int LLVMAttributeReturnIndex = 0; + public const int LLVMAttributeFunctionIndex = -1; + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeCore", ExactSpelling = true)] public static extern void InitializeCore([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMShutdown", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMShutdown", ExactSpelling = true)] public static extern void Shutdown(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMessage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMessage", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* CreateMessage([NativeTypeName("const char *")] sbyte* Message); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMessage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMessage", ExactSpelling = true)] public static extern void DisposeMessage([NativeTypeName("char *")] sbyte* Message); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextCreate", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextCreate", ExactSpelling = true)] [return: NativeTypeName("LLVMContextRef")] public static extern LLVMOpaqueContext* ContextCreate(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalContext", ExactSpelling = true)] [return: NativeTypeName("LLVMContextRef")] public static extern LLVMOpaqueContext* GetGlobalContext(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetDiagnosticHandler", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetDiagnosticHandler", ExactSpelling = true)] public static extern void ContextSetDiagnosticHandler([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMDiagnosticHandler")] IntPtr Handler, [NativeTypeName("void *")] void* DiagnosticContext); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextGetDiagnosticHandler", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextGetDiagnosticHandler", ExactSpelling = true)] [return: NativeTypeName("LLVMDiagnosticHandler")] public static extern IntPtr ContextGetDiagnosticHandler([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextGetDiagnosticContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextGetDiagnosticContext", ExactSpelling = true)] [return: NativeTypeName("void *")] public static extern void* ContextGetDiagnosticContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetYieldCallback", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetYieldCallback", ExactSpelling = true)] public static extern void ContextSetYieldCallback([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMYieldCallback")] IntPtr Callback, [NativeTypeName("void *")] void* OpaqueHandle); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextShouldDiscardValueNames", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextShouldDiscardValueNames", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ContextShouldDiscardValueNames([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetDiscardValueNames", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextSetDiscardValueNames", ExactSpelling = true)] public static extern void ContextSetDiscardValueNames([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMBool")] int Discard); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextDispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMContextDispose", ExactSpelling = true)] public static extern void ContextDispose([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDiagInfoDescription", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDiagInfoDescription", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetDiagInfoDescription([NativeTypeName("LLVMDiagnosticInfoRef")] LLVMOpaqueDiagnosticInfo* DI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDiagInfoSeverity", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDiagInfoSeverity", ExactSpelling = true)] public static extern LLVMDiagnosticSeverity GetDiagInfoSeverity([NativeTypeName("LLVMDiagnosticInfoRef")] LLVMOpaqueDiagnosticInfo* DI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDKindIDInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDKindIDInContext", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetMDKindIDInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("unsigned int")] uint SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDKindID", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDKindID", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetMDKindID([NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("unsigned int")] uint SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeKindForName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeKindForName", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetEnumAttributeKindForName([NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastEnumAttributeKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastEnumAttributeKind", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetLastEnumAttributeKind(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateEnumAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateEnumAttribute", ExactSpelling = true)] [return: NativeTypeName("LLVMAttributeRef")] public static extern LLVMOpaqueAttributeRef* CreateEnumAttribute([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("unsigned int")] uint KindID, [NativeTypeName("uint64_t")] ulong Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeKind", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetEnumAttributeKind([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeValue", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetEnumAttributeValue([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateStringAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateStringAttribute", ExactSpelling = true)] [return: NativeTypeName("LLVMAttributeRef")] public static extern LLVMOpaqueAttributeRef* CreateStringAttribute([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* K, [NativeTypeName("unsigned int")] uint KLength, [NativeTypeName("const char *")] sbyte* V, [NativeTypeName("unsigned int")] uint VLength); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringAttributeKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringAttributeKind", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetStringAttributeKind([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A, [NativeTypeName("unsigned int *")] uint* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringAttributeValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringAttributeValue", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetStringAttributeValue([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A, [NativeTypeName("unsigned int *")] uint* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsEnumAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsEnumAttribute", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsEnumAttribute([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsStringAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsStringAttribute", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsStringAttribute([NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithName", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleRef")] public static extern LLVMOpaqueModule* ModuleCreateWithName([NativeTypeName("const char *")] sbyte* ModuleID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithNameInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleCreateWithNameInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleRef")] public static extern LLVMOpaqueModule* ModuleCreateWithNameInContext([NativeTypeName("const char *")] sbyte* ModuleID, [NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCloneModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCloneModule", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleRef")] public static extern LLVMOpaqueModule* CloneModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeModule", ExactSpelling = true)] public static extern void DisposeModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleIdentifier", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleIdentifier", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetModuleIdentifier([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("size_t *")] UIntPtr* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleIdentifier", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleIdentifier", ExactSpelling = true)] public static extern void SetModuleIdentifier([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Ident, [NativeTypeName("size_t")] UIntPtr Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSourceFileName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSourceFileName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetSourceFileName([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("size_t *")] UIntPtr* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSourceFileName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSourceFileName", ExactSpelling = true)] public static extern void SetSourceFileName([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDataLayoutStr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDataLayoutStr", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetDataLayoutStr([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDataLayout", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDataLayout", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetDataLayout([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDataLayout", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDataLayout", ExactSpelling = true)] public static extern void SetDataLayout([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* DataLayoutStr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTarget", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTarget", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetTarget([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetTarget", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetTarget", ExactSpelling = true)] public static extern void SetTarget([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Triple); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCopyModuleFlagsMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCopyModuleFlagsMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleFlagEntry *")] public static extern LLVMOpaqueModuleFlagEntry* CopyModuleFlagsMetadata([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("size_t *")] UIntPtr* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeModuleFlagsMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeModuleFlagsMetadata", ExactSpelling = true)] public static extern void DisposeModuleFlagsMetadata([NativeTypeName("LLVMModuleFlagEntry *")] LLVMOpaqueModuleFlagEntry* Entries); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleFlagEntriesGetFlagBehavior", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleFlagEntriesGetFlagBehavior", ExactSpelling = true)] public static extern LLVMModuleFlagBehavior ModuleFlagEntriesGetFlagBehavior([NativeTypeName("LLVMModuleFlagEntry *")] LLVMOpaqueModuleFlagEntry* Entries, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleFlagEntriesGetKey", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleFlagEntriesGetKey", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* ModuleFlagEntriesGetKey([NativeTypeName("LLVMModuleFlagEntry *")] LLVMOpaqueModuleFlagEntry* Entries, [NativeTypeName("unsigned int")] uint Index, [NativeTypeName("size_t *")] UIntPtr* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleFlagEntriesGetMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMModuleFlagEntriesGetMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* ModuleFlagEntriesGetMetadata([NativeTypeName("LLVMModuleFlagEntry *")] LLVMOpaqueModuleFlagEntry* Entries, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleFlag", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleFlag", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* GetModuleFlag([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Key, [NativeTypeName("size_t")] UIntPtr KeyLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddModuleFlag", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddModuleFlag", ExactSpelling = true)] public static extern void AddModuleFlag([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, LLVMModuleFlagBehavior Behavior, [NativeTypeName("const char *")] sbyte* Key, [NativeTypeName("size_t")] UIntPtr KeyLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDumpModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDumpModule", ExactSpelling = true)] public static extern void DumpModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintModuleToFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintModuleToFile", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int PrintModuleToFile([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Filename, [NativeTypeName("char **")] sbyte** ErrorMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintModuleToString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintModuleToString", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* PrintModuleToString([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleInlineAsm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleInlineAsm", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetModuleInlineAsm([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("size_t *")] UIntPtr* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleInlineAsm2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleInlineAsm2", ExactSpelling = true)] public static extern void SetModuleInlineAsm2([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Asm, [NativeTypeName("size_t")] UIntPtr Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendModuleInlineAsm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendModuleInlineAsm", ExactSpelling = true)] public static extern void AppendModuleInlineAsm([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Asm, [NativeTypeName("size_t")] UIntPtr Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInlineAsm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInlineAsm", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetInlineAsm([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("char *")] sbyte* AsmString, [NativeTypeName("size_t")] UIntPtr AsmStringSize, [NativeTypeName("char *")] sbyte* Constraints, [NativeTypeName("size_t")] UIntPtr ConstraintsSize, [NativeTypeName("LLVMBool")] int HasSideEffects, [NativeTypeName("LLVMBool")] int IsAlignStack, LLVMInlineAsmDialect Dialect); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleContext", ExactSpelling = true)] [return: NativeTypeName("LLVMContextRef")] public static extern LLVMOpaqueContext* GetModuleContext([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeByName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeByName", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* GetTypeByName([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstNamedMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstNamedMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMNamedMDNodeRef")] public static extern LLVMOpaqueNamedMDNode* GetFirstNamedMetadata([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastNamedMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastNamedMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMNamedMDNodeRef")] public static extern LLVMOpaqueNamedMDNode* GetLastNamedMetadata([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextNamedMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextNamedMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMNamedMDNodeRef")] public static extern LLVMOpaqueNamedMDNode* GetNextNamedMetadata([NativeTypeName("LLVMNamedMDNodeRef")] LLVMOpaqueNamedMDNode* NamedMDNode); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousNamedMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousNamedMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMNamedMDNodeRef")] public static extern LLVMOpaqueNamedMDNode* GetPreviousNamedMetadata([NativeTypeName("LLVMNamedMDNodeRef")] LLVMOpaqueNamedMDNode* NamedMDNode); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMNamedMDNodeRef")] public static extern LLVMOpaqueNamedMDNode* GetNamedMetadata([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrInsertNamedMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrInsertNamedMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMNamedMDNodeRef")] public static extern LLVMOpaqueNamedMDNode* GetOrInsertNamedMetadata([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadataName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadataName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetNamedMetadataName([NativeTypeName("LLVMNamedMDNodeRef")] LLVMOpaqueNamedMDNode* NamedMD, [NativeTypeName("size_t *")] UIntPtr* NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadataNumOperands", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadataNumOperands", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNamedMetadataNumOperands([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadataOperands", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedMetadataOperands", ExactSpelling = true)] public static extern void GetNamedMetadataOperands([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddNamedMetadataOperand", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddNamedMetadataOperand", ExactSpelling = true)] public static extern void AddNamedMetadataOperand([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocDirectory", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocDirectory", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetDebugLocDirectory([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("unsigned int *")] uint* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocFilename", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocFilename", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetDebugLocFilename([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("unsigned int *")] uint* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocLine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocLine", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetDebugLocLine([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocColumn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDebugLocColumn", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetDebugLocColumn([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AddFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNamedFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetFirstFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetLastFunction([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNextFunction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPreviousFunction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleInlineAsm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleInlineAsm", ExactSpelling = true)] public static extern void SetModuleInlineAsm([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Asm); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeKind", ExactSpelling = true)] public static extern LLVMTypeKind GetTypeKind([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTypeIsSized", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTypeIsSized", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int TypeIsSized([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTypeContext", ExactSpelling = true)] [return: NativeTypeName("LLVMContextRef")] public static extern LLVMOpaqueContext* GetTypeContext([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDumpType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDumpType", ExactSpelling = true)] public static extern void DumpType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintTypeToString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintTypeToString", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* PrintTypeToString([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt1TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt1TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int1TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt8TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt8TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int8TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt16TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt16TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int16TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt32TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt32TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int32TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt64TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt64TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int64TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt128TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt128TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int128TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("unsigned int")] uint NumBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt1Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt1Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int1Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt8Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt8Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int8Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt16Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt16Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int16Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt32Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt32Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int32Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt64Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt64Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int64Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt128Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInt128Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* Int128Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntType([NativeTypeName("unsigned int")] uint NumBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntTypeWidth", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntTypeWidth", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetIntTypeWidth([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* IntegerTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHalfTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHalfTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* HalfTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFloatTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBFloatTypeInContext", ExactSpelling = true)] + [return: NativeTypeName("LLVMTypeRef")] + public static extern LLVMOpaqueType* BFloatTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFloatTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* FloatTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDoubleTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDoubleTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* DoubleTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86FP80TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86FP80TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* X86FP80TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFP128TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFP128TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* FP128TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPPCFP128TypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPPCFP128TypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* PPCFP128TypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHalfType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHalfType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* HalfType(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFloatType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBFloatType", ExactSpelling = true)] + [return: NativeTypeName("LLVMTypeRef")] + public static extern LLVMOpaqueType* BFloatType(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFloatType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* FloatType(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDoubleType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDoubleType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* DoubleType(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86FP80Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86FP80Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* X86FP80Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFP128Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFP128Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* FP128Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPPCFP128Type", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPPCFP128Type", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* PPCFP128Type(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFunctionType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFunctionType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* FunctionType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ReturnType, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ParamTypes, [NativeTypeName("unsigned int")] uint ParamCount, [NativeTypeName("LLVMBool")] int IsVarArg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsFunctionVarArg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsFunctionVarArg", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsFunctionVarArg([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetReturnType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetReturnType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* GetReturnType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountParamTypes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountParamTypes", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint CountParamTypes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParamTypes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParamTypes", ExactSpelling = true)] public static extern void GetParamTypes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* FunctionTy, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* StructTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ElementTypes, [NativeTypeName("unsigned int")] uint ElementCount, [NativeTypeName("LLVMBool")] int Packed); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* StructType([NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ElementTypes, [NativeTypeName("unsigned int")] uint ElementCount, [NativeTypeName("LLVMBool")] int Packed); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructCreateNamed", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructCreateNamed", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* StructCreateNamed([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStructName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStructName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetStructName([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructSetBody", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructSetBody", ExactSpelling = true)] public static extern void StructSetBody([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ElementTypes, [NativeTypeName("unsigned int")] uint ElementCount, [NativeTypeName("LLVMBool")] int Packed); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountStructElementTypes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountStructElementTypes", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint CountStructElementTypes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStructElementTypes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStructElementTypes", ExactSpelling = true)] public static extern void GetStructElementTypes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructGetTypeAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStructGetTypeAtIndex", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* StructGetTypeAtIndex([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy, [NativeTypeName("unsigned int")] uint i); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsPackedStruct", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsPackedStruct", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsPackedStruct([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsOpaqueStruct", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsOpaqueStruct", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsOpaqueStruct([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsLiteralStruct", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsLiteralStruct", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsLiteralStruct([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetElementType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetElementType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* GetElementType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSubtypes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSubtypes", ExactSpelling = true)] public static extern void GetSubtypes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Tp, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** Arr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumContainedTypes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumContainedTypes", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNumContainedTypes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Tp); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMArrayType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMArrayType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* ArrayType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ElementType, [NativeTypeName("unsigned int")] uint ElementCount); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetArrayLength", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetArrayLength", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetArrayLength([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ArrayTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPointerType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPointerType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* PointerType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ElementType, [NativeTypeName("unsigned int")] uint AddressSpace); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPointerAddressSpace", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPointerAddressSpace", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetPointerAddressSpace([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* PointerTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVectorType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVectorType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* VectorType([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ElementType, [NativeTypeName("unsigned int")] uint ElementCount); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVectorSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVectorSize", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetVectorSize([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* VectorTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVoidTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVoidTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* VoidTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLabelTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLabelTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* LabelTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86MMXTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86MMXTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* X86MMXTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTokenTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTokenTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* TokenTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMetadataTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMetadataTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* MetadataTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVoidType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMVoidType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* VoidType(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLabelType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLabelType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* LabelType(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86MMXType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMX86MMXType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* X86MMXType(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTypeOf", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTypeOf", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* TypeOf([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetValueKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetValueKind", ExactSpelling = true)] public static extern LLVMValueKind GetValueKind([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetValueName2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetValueName2", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetValueName2([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("size_t *")] UIntPtr* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetValueName2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetValueName2", ExactSpelling = true)] public static extern void SetValueName2([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDumpValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDumpValue", ExactSpelling = true)] public static extern void DumpValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintValueToString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPrintValueToString", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* PrintValueToString([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMReplaceAllUsesWith", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMReplaceAllUsesWith", ExactSpelling = true)] public static extern void ReplaceAllUsesWith([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* OldVal, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* NewVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConstant", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConstant", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsConstant([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsUndef", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsUndef", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsUndef([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAArgument", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAArgument", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAArgument([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsABasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInlineAsm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInlineAsm", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAInlineAsm([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUser", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUser", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUser([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstant", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstant", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstant([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABlockAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABlockAddress", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsABlockAddress([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantAggregateZero", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantAggregateZero", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantAggregateZero([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantArray", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantArray", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantArray([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantDataSequential", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantDataSequential", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantDataSequential([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantDataArray", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantDataArray", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantDataArray([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantDataVector", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantDataVector", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantDataVector([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantExpr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantExpr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantExpr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantFP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantFP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantFP([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantInt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantInt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantInt([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantPointerNull", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantPointerNull", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantPointerNull([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantStruct", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantStruct", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantStruct([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantTokenNone", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantTokenNone", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantTokenNone([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantVector", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAConstantVector", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAConstantVector([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAGlobalValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAGlobalAlias([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAGlobalIFunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalObject", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalObject", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAGlobalObject([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFunction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalVariable", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGlobalVariable", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAGlobalVariable([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUndefValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUndefValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUndefValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAInstruction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUnaryOperator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUnaryOperator", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUnaryOperator([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABinaryOperator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABinaryOperator", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsABinaryOperator([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACallInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACallInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACallInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAIntrinsicInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAIntrinsicInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAIntrinsicInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgInfoIntrinsic", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgInfoIntrinsic", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsADbgInfoIntrinsic([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgVariableIntrinsic", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgVariableIntrinsic", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsADbgVariableIntrinsic([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgDeclareInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgDeclareInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsADbgDeclareInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgLabelInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsADbgLabelInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsADbgLabelInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemIntrinsic", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemIntrinsic", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAMemIntrinsic([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemCpyInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemCpyInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAMemCpyInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemMoveInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemMoveInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAMemMoveInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemSetInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMemSetInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAMemSetInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACmpInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACmpInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACmpInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFCmpInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFCmpInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFCmpInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAICmpInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAICmpInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAICmpInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAExtractElementInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAExtractElementInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAExtractElementInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGetElementPtrInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAGetElementPtrInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAGetElementPtrInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInsertElementInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInsertElementInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAInsertElementInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInsertValueInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInsertValueInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAInsertValueInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsALandingPadInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsALandingPadInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsALandingPadInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAPHINode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAPHINode", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAPHINode([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASelectInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASelectInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsASelectInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAShuffleVectorInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAShuffleVectorInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAShuffleVectorInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAStoreInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAStoreInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAStoreInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABranchInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABranchInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsABranchInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAIndirectBrInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAIndirectBrInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAIndirectBrInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInvokeInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAInvokeInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAInvokeInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAReturnInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAReturnInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAReturnInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASwitchInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASwitchInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsASwitchInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUnreachableInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUnreachableInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUnreachableInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAResumeInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAResumeInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAResumeInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACleanupReturnInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACleanupReturnInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACleanupReturnInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACatchReturnInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACatchReturnInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACatchReturnInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACatchSwitchInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACatchSwitchInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACatchSwitchInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACallBrInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACallBrInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACallBrInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFuncletPadInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFuncletPadInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFuncletPadInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACatchPadInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACatchPadInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACatchPadInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACleanupPadInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACleanupPadInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACleanupPadInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUnaryInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUnaryInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUnaryInstruction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAllocaInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAllocaInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAAllocaInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACastInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsACastInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsACastInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAddrSpaceCastInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAddrSpaceCastInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAAddrSpaceCastInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABitCastInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsABitCastInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsABitCastInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPExtInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPExtInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFPExtInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPToSIInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPToSIInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFPToSIInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPToUIInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPToUIInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFPToUIInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPTruncInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFPTruncInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFPTruncInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAIntToPtrInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAIntToPtrInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAIntToPtrInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAPtrToIntInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAPtrToIntInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAPtrToIntInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASExtInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASExtInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsASExtInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASIToFPInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsASIToFPInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsASIToFPInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsATruncInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsATruncInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsATruncInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUIToFPInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAUIToFPInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAUIToFPInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAZExtInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAZExtInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAZExtInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAExtractValueInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAExtractValueInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAExtractValueInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsALoadInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsALoadInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsALoadInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAVAArgInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAVAArgInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAVAArgInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFreezeInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFreezeInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFreezeInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAtomicCmpXchgInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAtomicCmpXchgInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAAtomicCmpXchgInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAtomicRMWInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAAtomicRMWInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAAtomicRMWInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFenceInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAFenceInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAFenceInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMDNode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMDNode", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAMDNode([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMDString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAMDString", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsAMDString([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetValueName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetValueName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetValueName([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetValueName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetValueName", ExactSpelling = true)] public static extern void SetValueName([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstUse", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstUse", ExactSpelling = true)] [return: NativeTypeName("LLVMUseRef")] public static extern LLVMOpaqueUse* GetFirstUse([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextUse", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextUse", ExactSpelling = true)] [return: NativeTypeName("LLVMUseRef")] public static extern LLVMOpaqueUse* GetNextUse([NativeTypeName("LLVMUseRef")] LLVMOpaqueUse* U); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUser", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUser", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetUser([NativeTypeName("LLVMUseRef")] LLVMOpaqueUse* U); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUsedValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUsedValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetUsedValue([NativeTypeName("LLVMUseRef")] LLVMOpaqueUse* U); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOperand", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOperand", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetOperand([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOperandUse", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOperandUse", ExactSpelling = true)] [return: NativeTypeName("LLVMUseRef")] public static extern LLVMOpaqueUse* GetOperandUse([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetOperand", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetOperand", ExactSpelling = true)] public static extern void SetOperand([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* User, [NativeTypeName("unsigned int")] uint Index, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumOperands", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumOperands", ExactSpelling = true)] public static extern int GetNumOperands([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNull", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNull", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNull([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAllOnes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAllOnes", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstAllOnes([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUndef", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUndef", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetUndef([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsNull", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsNull", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsNull([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstPointerNull", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstPointerNull", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstPointerNull([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstInt([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* IntTy, [NativeTypeName("unsigned long long")] ulong N, [NativeTypeName("LLVMBool")] int SignExtend); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntOfArbitraryPrecision", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntOfArbitraryPrecision", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstIntOfArbitraryPrecision([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* IntTy, [NativeTypeName("unsigned int")] uint NumWords, [NativeTypeName("const uint64_t []")] ulong* Words); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntOfString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntOfString", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstIntOfString([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* IntTy, [NativeTypeName("const char *")] sbyte* Text, [NativeTypeName("uint8_t")] byte Radix); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntOfStringAndSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntOfStringAndSize", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstIntOfStringAndSize([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* IntTy, [NativeTypeName("const char *")] sbyte* Text, [NativeTypeName("unsigned int")] uint SLen, [NativeTypeName("uint8_t")] byte Radix); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstReal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstReal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstReal([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* RealTy, double N); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstRealOfString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstRealOfString", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstRealOfString([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* RealTy, [NativeTypeName("const char *")] sbyte* Text); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstRealOfStringAndSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstRealOfStringAndSize", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstRealOfStringAndSize([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* RealTy, [NativeTypeName("const char *")] sbyte* Text, [NativeTypeName("unsigned int")] uint SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntGetZExtValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntGetZExtValue", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] public static extern ulong ConstIntGetZExtValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntGetSExtValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntGetSExtValue", ExactSpelling = true)] [return: NativeTypeName("long long")] public static extern long ConstIntGetSExtValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstRealGetDouble", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstRealGetDouble", ExactSpelling = true)] public static extern double ConstRealGetDouble([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMBool *")] int* losesInfo); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStringInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStringInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstStringInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("unsigned int")] uint Length, [NativeTypeName("LLVMBool")] int DontNullTerminate); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstString", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstString([NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("unsigned int")] uint Length, [NativeTypeName("LLVMBool")] int DontNullTerminate); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConstantString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConstantString", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsConstantString([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* c); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAsString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAsString", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetAsString([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* c, [NativeTypeName("size_t *")] UIntPtr* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStructInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStructInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstStructInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantVals, [NativeTypeName("unsigned int")] uint Count, [NativeTypeName("LLVMBool")] int Packed); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStruct", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstStruct", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstStruct([NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantVals, [NativeTypeName("unsigned int")] uint Count, [NativeTypeName("LLVMBool")] int Packed); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstArray", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstArray", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstArray([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ElementTy, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantVals, [NativeTypeName("unsigned int")] uint Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNamedStruct", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNamedStruct", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNamedStruct([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantVals, [NativeTypeName("unsigned int")] uint Count); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetElementAsConstant", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetElementAsConstant", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetElementAsConstant([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("unsigned int")] uint idx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstVector", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstVector", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstVector([NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ScalarConstantVals, [NativeTypeName("unsigned int")] uint Size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetConstOpcode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetConstOpcode", ExactSpelling = true)] public static extern LLVMOpcode GetConstOpcode([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAlignOf", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAlignOf", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AlignOf([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSizeOf", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSizeOf", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* SizeOf([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNeg([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNSWNeg([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNUWNeg([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFNeg([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNot", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNot", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNot([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstAdd([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNSWAdd([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNUWAdd([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFAdd([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSub([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNSWSub([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNUWSub([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFSub([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstMul([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNSWMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNSWMul([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstNUWMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstNUWMul([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFMul([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstUDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstUDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstUDiv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExactUDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExactUDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstExactUDiv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSDiv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExactSDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExactSDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstExactSDiv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFDiv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstURem", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstURem", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstURem([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSRem", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSRem", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSRem([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFRem", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFRem", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFRem([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAnd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstAnd([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstOr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstOr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstOr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstXor", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstXor", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstXor([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstICmp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstICmp", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstICmp(LLVMIntPredicate Predicate, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFCmp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFCmp", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFCmp(LLVMRealPredicate Predicate, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstShl", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstShl", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstShl([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstLShr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstLShr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstLShr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAShr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAShr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstAShr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHSConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHSConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstGEP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstGEP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstGEP([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantIndices, [NativeTypeName("unsigned int")] uint NumIndices); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstGEP2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstGEP2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstGEP2([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantIndices, [NativeTypeName("unsigned int")] uint NumIndices); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInBoundsGEP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInBoundsGEP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstInBoundsGEP([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantIndices, [NativeTypeName("unsigned int")] uint NumIndices); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInBoundsGEP2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInBoundsGEP2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstInBoundsGEP2([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** ConstantIndices, [NativeTypeName("unsigned int")] uint NumIndices); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstTrunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstTrunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstTrunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSExt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSExt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSExt([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstZExt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstZExt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstZExt([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPTrunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPTrunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFPTrunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPExt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPExt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFPExt([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstUIToFP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstUIToFP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstUIToFP([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSIToFP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSIToFP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSIToFP([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPToUI", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPToUI", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFPToUI([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPToSI", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPToSI", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFPToSI([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstPtrToInt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstPtrToInt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstPtrToInt([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntToPtr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntToPtr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstIntToPtr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstBitCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAddrSpaceCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstAddrSpaceCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstAddrSpaceCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstZExtOrBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstZExtOrBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstZExtOrBitCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSExtOrBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSExtOrBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSExtOrBitCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstTruncOrBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstTruncOrBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstTruncOrBitCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstPointerCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstPointerCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstPointerCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstIntCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstIntCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType, [NativeTypeName("LLVMBool")] int isSigned); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstFPCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstFPCast([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* ToType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSelect", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstSelect", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstSelect([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantCondition, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantIfTrue, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantIfFalse); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExtractElement", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExtractElement", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstExtractElement([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* VectorConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IndexConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInsertElement", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInsertElement", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstInsertElement([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* VectorConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ElementValueConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IndexConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstShuffleVector", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstShuffleVector", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstShuffleVector([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* VectorAConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* VectorBConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MaskConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExtractValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstExtractValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstExtractValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AggConstant, [NativeTypeName("unsigned int *")] uint* IdxList, [NativeTypeName("unsigned int")] uint NumIdx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInsertValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInsertValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstInsertValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AggConstant, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ElementValueConstant, [NativeTypeName("unsigned int *")] uint* IdxList, [NativeTypeName("unsigned int")] uint NumIdx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBlockAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBlockAddress", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BlockAddress([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInlineAsm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConstInlineAsm", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* ConstInlineAsm([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* AsmString, [NativeTypeName("const char *")] sbyte* Constraints, [NativeTypeName("LLVMBool")] int HasSideEffects, [NativeTypeName("LLVMBool")] int IsAlignStack); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalParent", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleRef")] public static extern LLVMOpaqueModule* GetGlobalParent([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsDeclaration", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsDeclaration", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsDeclaration([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLinkage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLinkage", ExactSpelling = true)] public static extern LLVMLinkage GetLinkage([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetLinkage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetLinkage", ExactSpelling = true)] public static extern void SetLinkage([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, LLVMLinkage Linkage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSection", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSection", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetSection([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSection", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSection", ExactSpelling = true)] public static extern void SetSection([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("const char *")] sbyte* Section); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVisibility", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVisibility", ExactSpelling = true)] public static extern LLVMVisibility GetVisibility([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetVisibility", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetVisibility", ExactSpelling = true)] public static extern void SetVisibility([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, LLVMVisibility Viz); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDLLStorageClass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDLLStorageClass", ExactSpelling = true)] public static extern LLVMDLLStorageClass GetDLLStorageClass([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDLLStorageClass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDLLStorageClass", ExactSpelling = true)] public static extern void SetDLLStorageClass([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, LLVMDLLStorageClass Class); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUnnamedAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUnnamedAddress", ExactSpelling = true)] public static extern LLVMUnnamedAddr GetUnnamedAddress([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetUnnamedAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetUnnamedAddress", ExactSpelling = true)] public static extern void SetUnnamedAddress([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, LLVMUnnamedAddr UnnamedAddr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalGetValueType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalGetValueType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* GlobalGetValueType([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHasUnnamedAddr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHasUnnamedAddr", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int HasUnnamedAddr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetUnnamedAddr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetUnnamedAddr", ExactSpelling = true)] public static extern void SetUnnamedAddr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("LLVMBool")] int HasUnnamedAddr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAlignment", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAlignment", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetAlignment([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetAlignment", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetAlignment", ExactSpelling = true)] public static extern void SetAlignment([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("unsigned int")] uint Bytes); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalSetMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalSetMetadata", ExactSpelling = true)] public static extern void GlobalSetMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("unsigned int")] uint Kind, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* MD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalEraseMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalEraseMetadata", ExactSpelling = true)] public static extern void GlobalEraseMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("unsigned int")] uint Kind); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalClearMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalClearMetadata", ExactSpelling = true)] public static extern void GlobalClearMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalCopyAllMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGlobalCopyAllMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMValueMetadataEntry *")] public static extern LLVMOpaqueValueMetadataEntry* GlobalCopyAllMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Value, [NativeTypeName("size_t *")] UIntPtr* NumEntries); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeValueMetadataEntries", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeValueMetadataEntries", ExactSpelling = true)] public static extern void DisposeValueMetadataEntries([NativeTypeName("LLVMValueMetadataEntry *")] LLVMOpaqueValueMetadataEntry* Entries); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueMetadataEntriesGetKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueMetadataEntriesGetKind", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint ValueMetadataEntriesGetKind([NativeTypeName("LLVMValueMetadataEntry *")] LLVMOpaqueValueMetadataEntry* Entries, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueMetadataEntriesGetMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueMetadataEntriesGetMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* ValueMetadataEntriesGetMetadata([NativeTypeName("LLVMValueMetadataEntry *")] LLVMOpaqueValueMetadataEntry* Entries, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AddGlobal([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalInAddressSpace", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalInAddressSpace", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AddGlobalInAddressSpace([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("unsigned int")] uint AddressSpace); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedGlobal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNamedGlobal([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstGlobal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetFirstGlobal([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastGlobal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetLastGlobal([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextGlobal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNextGlobal([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousGlobal", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPreviousGlobal([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteGlobal", ExactSpelling = true)] public static extern void DeleteGlobal([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInitializer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInitializer", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetInitializer([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInitializer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInitializer", ExactSpelling = true)] public static extern void SetInitializer([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsThreadLocal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsThreadLocal", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsThreadLocal([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetThreadLocal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetThreadLocal", ExactSpelling = true)] public static extern void SetThreadLocal([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar, [NativeTypeName("LLVMBool")] int IsThreadLocal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsGlobalConstant", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsGlobalConstant", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsGlobalConstant([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetGlobalConstant", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetGlobalConstant", ExactSpelling = true)] public static extern void SetGlobalConstant([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar, [NativeTypeName("LLVMBool")] int IsConstant); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetThreadLocalMode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetThreadLocalMode", ExactSpelling = true)] public static extern LLVMThreadLocalMode GetThreadLocalMode([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetThreadLocalMode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetThreadLocalMode", ExactSpelling = true)] public static extern void SetThreadLocalMode([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar, LLVMThreadLocalMode Mode); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsExternallyInitialized", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsExternallyInitialized", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsExternallyInitialized([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetExternallyInitialized", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetExternallyInitialized", ExactSpelling = true)] public static extern void SetExternallyInitialized([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar, [NativeTypeName("LLVMBool")] int IsExtInit); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AddAlias([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Aliasee, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedGlobalAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedGlobalAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNamedGlobalAlias([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstGlobalAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstGlobalAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetFirstGlobalAlias([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastGlobalAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastGlobalAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetLastGlobalAlias([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextGlobalAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextGlobalAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNextGlobalAlias([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GA); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousGlobalAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousGlobalAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPreviousGlobalAlias([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GA); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAliasGetAliasee", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAliasGetAliasee", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AliasGetAliasee([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Alias); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAliasSetAliasee", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAliasSetAliasee", ExactSpelling = true)] public static extern void AliasSetAliasee([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Alias, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Aliasee); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteFunction", ExactSpelling = true)] public static extern void DeleteFunction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHasPersonalityFn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHasPersonalityFn", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int HasPersonalityFn([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPersonalityFn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPersonalityFn", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPersonalityFn([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetPersonalityFn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetPersonalityFn", ExactSpelling = true)] public static extern void SetPersonalityFn([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PersonalityFn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLookupIntrinsicID", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLookupIntrinsicID", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint LookupIntrinsicID([NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntrinsicID", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntrinsicID", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetIntrinsicID([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntrinsicDeclaration", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIntrinsicDeclaration", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetIntrinsicDeclaration([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Mod, [NativeTypeName("unsigned int")] uint ID, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ParamTypes, [NativeTypeName("size_t")] UIntPtr ParamCount); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicGetType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicGetType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntrinsicGetType([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* Ctx, [NativeTypeName("unsigned int")] uint ID, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ParamTypes, [NativeTypeName("size_t")] UIntPtr ParamCount); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicGetName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicGetName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* IntrinsicGetName([NativeTypeName("unsigned int")] uint ID, [NativeTypeName("size_t *")] UIntPtr* NameLength); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicCopyOverloadedName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicCopyOverloadedName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* IntrinsicCopyOverloadedName([NativeTypeName("unsigned int")] uint ID, [NativeTypeName("LLVMTypeRef *")] LLVMOpaqueType** ParamTypes, [NativeTypeName("size_t")] UIntPtr ParamCount, [NativeTypeName("size_t *")] UIntPtr* NameLength); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicIsOverloaded", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntrinsicIsOverloaded", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IntrinsicIsOverloaded([NativeTypeName("unsigned int")] uint ID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFunctionCallConv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFunctionCallConv", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetFunctionCallConv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetFunctionCallConv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetFunctionCallConv", ExactSpelling = true)] public static extern void SetFunctionCallConv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("unsigned int")] uint CC); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGC", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGC", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetGC([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetGC", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetGC", ExactSpelling = true)] public static extern void SetGC([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAttributeAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAttributeAtIndex", ExactSpelling = true)] public static extern void AddAttributeAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAttributeCountAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAttributeCountAtIndex", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetAttributeCountAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAttributesAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAttributesAtIndex", ExactSpelling = true)] public static extern void GetAttributesAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("LLVMAttributeRef *")] LLVMOpaqueAttributeRef** Attrs); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEnumAttributeAtIndex", ExactSpelling = true)] [return: NativeTypeName("LLVMAttributeRef")] public static extern LLVMOpaqueAttributeRef* GetEnumAttributeAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("unsigned int")] uint KindID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringAttributeAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringAttributeAtIndex", ExactSpelling = true)] [return: NativeTypeName("LLVMAttributeRef")] public static extern LLVMOpaqueAttributeRef* GetStringAttributeAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("const char *")] sbyte* K, [NativeTypeName("unsigned int")] uint KLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveEnumAttributeAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveEnumAttributeAtIndex", ExactSpelling = true)] public static extern void RemoveEnumAttributeAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("unsigned int")] uint KindID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveStringAttributeAtIndex", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveStringAttributeAtIndex", ExactSpelling = true)] public static extern void RemoveStringAttributeAtIndex([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("const char *")] sbyte* K, [NativeTypeName("unsigned int")] uint KLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTargetDependentFunctionAttr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTargetDependentFunctionAttr", ExactSpelling = true)] public static extern void AddTargetDependentFunctionAttr([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("const char *")] sbyte* A, [NativeTypeName("const char *")] sbyte* V); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountParams", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountParams", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint CountParams([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParams", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParams", ExactSpelling = true)] public static extern void GetParams([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Params); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParam", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParam", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetParam([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParamParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParamParent", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetParamParent([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstParam", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstParam", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetFirstParam([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastParam", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastParam", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetLastParam([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextParam", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextParam", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNextParam([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Arg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousParam", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousParam", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPreviousParam([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Arg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetParamAlignment", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetParamAlignment", ExactSpelling = true)] public static extern void SetParamAlignment([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Arg, [NativeTypeName("unsigned int")] uint Align); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* AddGlobalIFunc([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("unsigned int")] uint AddrSpace, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Resolver); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNamedGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNamedGlobalIFunc([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetFirstGlobalIFunc([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetLastGlobalIFunc([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNextGlobalIFunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IFunc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousGlobalIFunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPreviousGlobalIFunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IFunc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalIFuncResolver", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalIFuncResolver", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetGlobalIFuncResolver([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IFunc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetGlobalIFuncResolver", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetGlobalIFuncResolver", ExactSpelling = true)] public static extern void SetGlobalIFuncResolver([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IFunc, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Resolver); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMEraseGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMEraseGlobalIFunc", ExactSpelling = true)] public static extern void EraseGlobalIFunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IFunc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveGlobalIFunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveGlobalIFunc", ExactSpelling = true)] public static extern void RemoveGlobalIFunc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IFunc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDStringInContext2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDStringInContext2", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* MDStringInContext2([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("size_t")] UIntPtr SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNodeInContext2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNodeInContext2", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* MDNodeInContext2([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** MDs, [NativeTypeName("size_t")] UIntPtr Count); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMetadataAsValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMetadataAsValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* MetadataAsValue([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* MD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueAsMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueAsMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* ValueAsMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDString", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetMDString([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("unsigned int *")] uint* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDNodeNumOperands", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDNodeNumOperands", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetMDNodeNumOperands([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDNodeOperands", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMDNodeOperands", ExactSpelling = true)] public static extern void GetMDNodeOperands([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDStringInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDStringInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* MDStringInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("unsigned int")] uint SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDString", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* MDString([NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("unsigned int")] uint SLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNodeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNodeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* MDNodeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Vals, [NativeTypeName("unsigned int")] uint Count); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMDNode", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* MDNode([NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Vals, [NativeTypeName("unsigned int")] uint Count); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBasicBlockAsValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBasicBlockAsValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BasicBlockAsValue([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueIsBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueIsBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ValueIsBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueAsBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMValueAsBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* ValueAsBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlockName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlockName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetBasicBlockName([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlockParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlockParent", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetBasicBlockParent([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlockTerminator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlockTerminator", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetBasicBlockTerminator([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountBasicBlocks", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountBasicBlocks", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint CountBasicBlocks([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlocks", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBasicBlocks", ExactSpelling = true)] public static extern void GetBasicBlocks([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMBasicBlockRef *")] LLVMOpaqueBasicBlock** BasicBlocks); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetFirstBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetLastBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetNextBasicBlock([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetPreviousBasicBlock([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEntryBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetEntryBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetEntryBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertExistingBasicBlockAfterInsertBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertExistingBasicBlockAfterInsertBlock", ExactSpelling = true)] public static extern void InsertExistingBasicBlockAfterInsertBlock([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendExistingBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendExistingBasicBlock", ExactSpelling = true)] public static extern void AppendExistingBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBasicBlockInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBasicBlockInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* CreateBasicBlockInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendBasicBlockInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendBasicBlockInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* AppendBasicBlockInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAppendBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* AppendBasicBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertBasicBlockInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertBasicBlockInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* InsertBasicBlockInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertBasicBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* InsertBasicBlock([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* InsertBeforeBB, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteBasicBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDeleteBasicBlock", ExactSpelling = true)] public static extern void DeleteBasicBlock([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveBasicBlockFromParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveBasicBlockFromParent", ExactSpelling = true)] public static extern void RemoveBasicBlockFromParent([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveBasicBlockBefore", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveBasicBlockBefore", ExactSpelling = true)] public static extern void MoveBasicBlockBefore([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* MovePos); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveBasicBlockAfter", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveBasicBlockAfter", ExactSpelling = true)] public static extern void MoveBasicBlockAfter([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* MovePos); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetFirstInstruction([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetLastInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetLastInstruction([NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHasMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMHasMetadata", ExactSpelling = true)] public static extern int HasMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMetadata", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("unsigned int")] uint KindID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetMetadata", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetMetadata", ExactSpelling = true)] public static extern void SetMetadata([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("unsigned int")] uint KindID, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Node); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionGetAllMetadataOtherThanDebugLoc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionGetAllMetadataOtherThanDebugLoc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueMetadataEntry *")] public static extern LLVMOpaqueValueMetadataEntry* InstructionGetAllMetadataOtherThanDebugLoc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr, [NativeTypeName("size_t *")] UIntPtr* NumEntries); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInstructionParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInstructionParent", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetInstructionParent([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetNextInstruction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPreviousInstruction", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetPreviousInstruction([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionRemoveFromParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionRemoveFromParent", ExactSpelling = true)] public static extern void InstructionRemoveFromParent([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionEraseFromParent", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionEraseFromParent", ExactSpelling = true)] public static extern void InstructionEraseFromParent([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInstructionOpcode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInstructionOpcode", ExactSpelling = true)] public static extern LLVMOpcode GetInstructionOpcode([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetICmpPredicate", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetICmpPredicate", ExactSpelling = true)] public static extern LLVMIntPredicate GetICmpPredicate([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFCmpPredicate", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFCmpPredicate", ExactSpelling = true)] public static extern LLVMRealPredicate GetFCmpPredicate([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionClone", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionClone", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* InstructionClone([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsATerminatorInst", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsATerminatorInst", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* IsATerminatorInst([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumArgOperands", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumArgOperands", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNumArgOperands([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInstructionCallConv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInstructionCallConv", ExactSpelling = true)] public static extern void SetInstructionCallConv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr, [NativeTypeName("unsigned int")] uint CC); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInstructionCallConv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInstructionCallConv", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetInstructionCallConv([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInstrParamAlignment", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInstrParamAlignment", ExactSpelling = true)] public static extern void SetInstrParamAlignment([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr, [NativeTypeName("unsigned int")] uint index, [NativeTypeName("unsigned int")] uint Align); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCallSiteAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCallSiteAttribute", ExactSpelling = true)] public static extern void AddCallSiteAttribute([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("LLVMAttributeRef")] LLVMOpaqueAttributeRef* A); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteAttributeCount", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteAttributeCount", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetCallSiteAttributeCount([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteAttributes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteAttributes", ExactSpelling = true)] public static extern void GetCallSiteAttributes([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("LLVMAttributeRef *")] LLVMOpaqueAttributeRef** Attrs); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteEnumAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteEnumAttribute", ExactSpelling = true)] [return: NativeTypeName("LLVMAttributeRef")] public static extern LLVMOpaqueAttributeRef* GetCallSiteEnumAttribute([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("unsigned int")] uint KindID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteStringAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCallSiteStringAttribute", ExactSpelling = true)] [return: NativeTypeName("LLVMAttributeRef")] public static extern LLVMOpaqueAttributeRef* GetCallSiteStringAttribute([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("const char *")] sbyte* K, [NativeTypeName("unsigned int")] uint KLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveCallSiteEnumAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveCallSiteEnumAttribute", ExactSpelling = true)] public static extern void RemoveCallSiteEnumAttribute([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("unsigned int")] uint KindID); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveCallSiteStringAttribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveCallSiteStringAttribute", ExactSpelling = true)] public static extern void RemoveCallSiteStringAttribute([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C, [NativeTypeName("LLVMAttributeIndex")] uint Idx, [NativeTypeName("const char *")] sbyte* K, [NativeTypeName("unsigned int")] uint KLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCalledFunctionType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCalledFunctionType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* GetCalledFunctionType([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCalledValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCalledValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetCalledValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsTailCall", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsTailCall", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsTailCall([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CallInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetTailCall", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetTailCall", ExactSpelling = true)] public static extern void SetTailCall([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CallInst, [NativeTypeName("LLVMBool")] int IsTailCall); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNormalDest", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNormalDest", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetNormalDest([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* InvokeInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUnwindDest", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUnwindDest", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetUnwindDest([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* InvokeInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetNormalDest", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetNormalDest", ExactSpelling = true)] public static extern void SetNormalDest([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* InvokeInst, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* B); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetUnwindDest", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetUnwindDest", ExactSpelling = true)] public static extern void SetUnwindDest([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* InvokeInst, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* B); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumSuccessors", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumSuccessors", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNumSuccessors([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Term); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSuccessor", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSuccessor", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetSuccessor([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Term, [NativeTypeName("unsigned int")] uint i); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSuccessor", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSuccessor", ExactSpelling = true)] public static extern void SetSuccessor([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Term, [NativeTypeName("unsigned int")] uint i, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* block); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConditional", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsConditional", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsConditional([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Branch); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCondition", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCondition", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetCondition([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Branch); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCondition", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCondition", ExactSpelling = true)] public static extern void SetCondition([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Branch, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Cond); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSwitchDefaultDest", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSwitchDefaultDest", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetSwitchDefaultDest([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* SwitchInstr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAllocatedType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAllocatedType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* GetAllocatedType([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Alloca); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsInBounds", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsInBounds", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsInBounds([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GEP); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetIsInBounds", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetIsInBounds", ExactSpelling = true)] public static extern void SetIsInBounds([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GEP, [NativeTypeName("LLVMBool")] int InBounds); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIncoming", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIncoming", ExactSpelling = true)] public static extern void AddIncoming([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PhiNode, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** IncomingValues, [NativeTypeName("LLVMBasicBlockRef *")] LLVMOpaqueBasicBlock** IncomingBlocks, [NativeTypeName("unsigned int")] uint Count); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountIncoming", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCountIncoming", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint CountIncoming([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PhiNode); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIncomingValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIncomingValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetIncomingValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PhiNode, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIncomingBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIncomingBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetIncomingBlock([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PhiNode, [NativeTypeName("unsigned int")] uint Index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumIndices", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumIndices", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNumIndices([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIndices", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetIndices", ExactSpelling = true)] [return: NativeTypeName("const unsigned int *")] public static extern uint* GetIndices([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBuilderInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBuilderInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBuilderRef")] public static extern LLVMOpaqueBuilder* CreateBuilderInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBuilder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBuilder", ExactSpelling = true)] [return: NativeTypeName("LLVMBuilderRef")] public static extern LLVMOpaqueBuilder* CreateBuilder(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilder", ExactSpelling = true)] public static extern void PositionBuilder([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Block, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilderBefore", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilderBefore", ExactSpelling = true)] public static extern void PositionBuilderBefore([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilderAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPositionBuilderAtEnd", ExactSpelling = true)] public static extern void PositionBuilderAtEnd([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Block); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInsertBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetInsertBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMBasicBlockRef")] public static extern LLVMOpaqueBasicBlock* GetInsertBlock([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMClearInsertionPosition", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMClearInsertionPosition", ExactSpelling = true)] public static extern void ClearInsertionPosition([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertIntoBuilder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertIntoBuilder", ExactSpelling = true)] public static extern void InsertIntoBuilder([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertIntoBuilderWithName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInsertIntoBuilderWithName", ExactSpelling = true)] public static extern void InsertIntoBuilderWithName([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeBuilder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeBuilder", ExactSpelling = true)] public static extern void DisposeBuilder([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCurrentDebugLocation2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCurrentDebugLocation2", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* GetCurrentDebugLocation2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCurrentDebugLocation2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCurrentDebugLocation2", ExactSpelling = true)] public static extern void SetCurrentDebugLocation2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Loc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInstDebugLocation", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetInstDebugLocation", ExactSpelling = true)] public static extern void SetInstDebugLocation([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuilderGetDefaultFPMathTag", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuilderGetDefaultFPMathTag", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* BuilderGetDefaultFPMathTag([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuilderSetDefaultFPMathTag", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuilderSetDefaultFPMathTag", ExactSpelling = true)] public static extern void BuilderSetDefaultFPMathTag([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* FPMathTag); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCurrentDebugLocation", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCurrentDebugLocation", ExactSpelling = true)] public static extern void SetCurrentDebugLocation([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* L); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCurrentDebugLocation", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCurrentDebugLocation", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetCurrentDebugLocation([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildRetVoid", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildRetVoid", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildRetVoid([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildRet", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildRet", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildRet([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAggregateRet", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAggregateRet", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAggregateRet([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** RetVals, [NativeTypeName("unsigned int")] uint N); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildBr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildBr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildBr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCondBr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCondBr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCondBr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* If, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Then, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Else); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSwitch", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSwitch", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSwitch([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Else, [NativeTypeName("unsigned int")] uint NumCases); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIndirectBr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIndirectBr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildIndirectBr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Addr, [NativeTypeName("unsigned int")] uint NumDests); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInvoke", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInvoke", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildInvoke([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Args, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Then, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Catch, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInvoke2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInvoke2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildInvoke2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Args, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Then, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Catch, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildUnreachable", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildUnreachable", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildUnreachable([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildResume", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildResume", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildResume([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Exn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLandingPad", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLandingPad", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildLandingPad([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PersFn, [NativeTypeName("unsigned int")] uint NumClauses, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCleanupRet", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCleanupRet", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCleanupRet([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchPad, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCatchRet", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCatchRet", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCatchRet([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchPad, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* BB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCatchPad", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCatchPad", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCatchPad([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ParentPad, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Args, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCleanupPad", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCleanupPad", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCleanupPad([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ParentPad, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Args, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCatchSwitch", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCatchSwitch", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCatchSwitch([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ParentPad, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* UnwindBB, [NativeTypeName("unsigned int")] uint NumHandlers, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCase", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCase", ExactSpelling = true)] public static extern void AddCase([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Switch, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* OnVal, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDestination", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDestination", ExactSpelling = true)] public static extern void AddDestination([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* IndirectBr, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumClauses", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumClauses", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNumClauses([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LandingPad); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetClause", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetClause", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetClause([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LandingPad, [NativeTypeName("unsigned int")] uint Idx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddClause", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddClause", ExactSpelling = true)] public static extern void AddClause([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LandingPad, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ClauseVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsCleanup", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsCleanup", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsCleanup([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LandingPad); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCleanup", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCleanup", ExactSpelling = true)] public static extern void SetCleanup([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LandingPad, [NativeTypeName("LLVMBool")] int Val); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddHandler", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddHandler", ExactSpelling = true)] public static extern void AddHandler([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchSwitch, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Dest); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumHandlers", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumHandlers", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetNumHandlers([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchSwitch); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetHandlers", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetHandlers", ExactSpelling = true)] public static extern void GetHandlers([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchSwitch, [NativeTypeName("LLVMBasicBlockRef *")] LLVMOpaqueBasicBlock** Handlers); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetArgOperand", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetArgOperand", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetArgOperand([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Funclet, [NativeTypeName("unsigned int")] uint i); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetArgOperand", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetArgOperand", ExactSpelling = true)] public static extern void SetArgOperand([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Funclet, [NativeTypeName("unsigned int")] uint i, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* value); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParentCatchSwitch", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetParentCatchSwitch", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* GetParentCatchSwitch([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchPad); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetParentCatchSwitch", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetParentCatchSwitch", ExactSpelling = true)] public static extern void SetParentCatchSwitch([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchPad, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CatchSwitch); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAdd([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNSWAdd([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNUWAdd([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFAdd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFAdd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFAdd([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSub([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNSWSub([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNUWSub([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFSub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFSub", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFSub([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildMul([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNSWMul([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNUWMul([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFMul", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFMul", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFMul([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildUDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildUDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildUDiv([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExactUDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExactUDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildExactUDiv([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSDiv([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExactSDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExactSDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildExactSDiv([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFDiv", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFDiv", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFDiv([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildURem", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildURem", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildURem([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSRem", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSRem", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSRem([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFRem", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFRem", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFRem([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildShl", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildShl", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildShl([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLShr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLShr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildLShr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAShr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAShr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAShr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAnd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAnd([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildOr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildOr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildOr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildXor", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildXor", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildXor([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildBinOp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildBinOp", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildBinOp([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, LLVMOpcode Op, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNeg([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNSWNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNSWNeg([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNUWNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNUWNeg([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFNeg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFNeg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFNeg([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNot", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildNot", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildNot([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMalloc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMalloc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildMalloc([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildArrayMalloc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildArrayMalloc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildArrayMalloc([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMemSet", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMemSet", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildMemSet([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Ptr, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Len, [NativeTypeName("unsigned int")] uint Align); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMemCpy", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMemCpy", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildMemCpy([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Dst, [NativeTypeName("unsigned int")] uint DstAlign, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Src, [NativeTypeName("unsigned int")] uint SrcAlign, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMemMove", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildMemMove", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildMemMove([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Dst, [NativeTypeName("unsigned int")] uint DstAlign, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Src, [NativeTypeName("unsigned int")] uint SrcAlign, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAlloca", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAlloca", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAlloca([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildArrayAlloca", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildArrayAlloca", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildArrayAlloca([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFree", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFree", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFree([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PointerVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLoad", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLoad", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildLoad([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PointerVal, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLoad2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildLoad2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildLoad2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PointerVal, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildStore", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildStore", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildStore([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Ptr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGEP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGEP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildGEP([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Pointer, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Indices, [NativeTypeName("unsigned int")] uint NumIndices, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInBoundsGEP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInBoundsGEP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildInBoundsGEP([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Pointer, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Indices, [NativeTypeName("unsigned int")] uint NumIndices, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildStructGEP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildStructGEP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildStructGEP([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Pointer, [NativeTypeName("unsigned int")] uint Idx, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGEP2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGEP2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildGEP2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Pointer, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Indices, [NativeTypeName("unsigned int")] uint NumIndices, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInBoundsGEP2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInBoundsGEP2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildInBoundsGEP2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Pointer, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Indices, [NativeTypeName("unsigned int")] uint NumIndices, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildStructGEP2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildStructGEP2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildStructGEP2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Pointer, [NativeTypeName("unsigned int")] uint Idx, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGlobalString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGlobalString", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildGlobalString([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGlobalStringPtr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildGlobalStringPtr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildGlobalStringPtr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("const char *")] sbyte* Str, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVolatile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetVolatile", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetVolatile([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MemoryAccessInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetVolatile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetVolatile", ExactSpelling = true)] public static extern void SetVolatile([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MemoryAccessInst, [NativeTypeName("LLVMBool")] int IsVolatile); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetWeak", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetWeak", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetWeak([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CmpXchgInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetWeak", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetWeak", ExactSpelling = true)] public static extern void SetWeak([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CmpXchgInst, [NativeTypeName("LLVMBool")] int IsWeak); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrdering", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetOrdering", ExactSpelling = true)] public static extern LLVMAtomicOrdering GetOrdering([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MemoryAccessInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetOrdering", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetOrdering", ExactSpelling = true)] public static extern void SetOrdering([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* MemoryAccessInst, LLVMAtomicOrdering Ordering); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAtomicRMWBinOp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetAtomicRMWBinOp", ExactSpelling = true)] public static extern LLVMAtomicRMWBinOp GetAtomicRMWBinOp([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AtomicRMWInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetAtomicRMWBinOp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetAtomicRMWBinOp", ExactSpelling = true)] public static extern void SetAtomicRMWBinOp([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AtomicRMWInst, LLVMAtomicRMWBinOp BinOp); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildTrunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildTrunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildTrunc([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildZExt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildZExt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildZExt([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSExt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSExt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSExt([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPToUI", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPToUI", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFPToUI([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPToSI", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPToSI", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFPToSI([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildUIToFP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildUIToFP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildUIToFP([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSIToFP", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSIToFP", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSIToFP([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPTrunc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPTrunc", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFPTrunc([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPExt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPExt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFPExt([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPtrToInt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPtrToInt", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildPtrToInt([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIntToPtr", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIntToPtr", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildIntToPtr([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildBitCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAddrSpaceCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAddrSpaceCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAddrSpaceCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildZExtOrBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildZExtOrBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildZExtOrBitCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSExtOrBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSExtOrBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSExtOrBitCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildTruncOrBitCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildTruncOrBitCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildTruncOrBitCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, LLVMOpcode Op, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPointerCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPointerCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildPointerCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIntCast2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIntCast2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildIntCast2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("LLVMBool")] int IsSigned, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFPCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFPCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIntCast", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIntCast", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildIntCast([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* DestTy, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildICmp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildICmp", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildICmp([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, LLVMIntPredicate Op, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFCmp", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFCmp", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFCmp([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, LLVMRealPredicate Op, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPhi", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPhi", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildPhi([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCall", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCall", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCall([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Args, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCall2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildCall2", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildCall2([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* param1, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** Args, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSelect", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildSelect", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildSelect([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* If, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Then, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Else, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildVAArg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildVAArg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildVAArg([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* List, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExtractElement", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExtractElement", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildExtractElement([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* VecVal, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Index, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInsertElement", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInsertElement", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildInsertElement([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* VecVal, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* EltVal, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Index, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildShuffleVector", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildShuffleVector", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildShuffleVector([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V1, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* V2, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Mask, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExtractValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildExtractValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildExtractValue([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AggVal, [NativeTypeName("unsigned int")] uint Index, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInsertValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildInsertValue", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildInsertValue([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AggVal, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* EltVal, [NativeTypeName("unsigned int")] uint Index, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFreeze", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFreeze", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFreeze([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIsNull", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIsNull", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildIsNull([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIsNotNull", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildIsNotNull", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildIsNotNull([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPtrDiff", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildPtrDiff", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildPtrDiff([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* param0, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* LHS, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* RHS, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFence", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildFence", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildFence([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, LLVMAtomicOrdering ordering, [NativeTypeName("LLVMBool")] int singleThread, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAtomicRMW", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAtomicRMW", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAtomicRMW([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, LLVMAtomicRMWBinOp op, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* PTR, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, LLVMAtomicOrdering ordering, [NativeTypeName("LLVMBool")] int singleThread); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAtomicCmpXchg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBuildAtomicCmpXchg", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* BuildAtomicCmpXchg([NativeTypeName("LLVMBuilderRef")] LLVMOpaqueBuilder* B, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Ptr, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Cmp, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* New, LLVMAtomicOrdering SuccessOrdering, LLVMAtomicOrdering FailureOrdering, [NativeTypeName("LLVMBool")] int SingleThread); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAtomicSingleThread", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNumMaskElements", ExactSpelling = true)] + [return: NativeTypeName("unsigned int")] + public static extern uint GetNumMaskElements([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ShuffleVectorInst); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetUndefMaskElem", ExactSpelling = true)] + public static extern int GetUndefMaskElem(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMaskValue", ExactSpelling = true)] + public static extern int GetMaskValue([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ShuffleVectorInst, [NativeTypeName("unsigned int")] uint Elt); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsAtomicSingleThread", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsAtomicSingleThread([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AtomicInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetAtomicSingleThread", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetAtomicSingleThread", ExactSpelling = true)] public static extern void SetAtomicSingleThread([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* AtomicInst, [NativeTypeName("LLVMBool")] int SingleThread); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCmpXchgSuccessOrdering", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCmpXchgSuccessOrdering", ExactSpelling = true)] public static extern LLVMAtomicOrdering GetCmpXchgSuccessOrdering([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CmpXchgInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCmpXchgSuccessOrdering", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCmpXchgSuccessOrdering", ExactSpelling = true)] public static extern void SetCmpXchgSuccessOrdering([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CmpXchgInst, LLVMAtomicOrdering Ordering); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCmpXchgFailureOrdering", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetCmpXchgFailureOrdering", ExactSpelling = true)] public static extern LLVMAtomicOrdering GetCmpXchgFailureOrdering([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CmpXchgInst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCmpXchgFailureOrdering", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetCmpXchgFailureOrdering", ExactSpelling = true)] public static extern void SetCmpXchgFailureOrdering([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* CmpXchgInst, LLVMAtomicOrdering Ordering); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateModuleProviderForExistingModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateModuleProviderForExistingModule", ExactSpelling = true)] [return: NativeTypeName("LLVMModuleProviderRef")] public static extern LLVMOpaqueModuleProvider* CreateModuleProviderForExistingModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeModuleProvider", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeModuleProvider", ExactSpelling = true)] public static extern void DisposeModuleProvider([NativeTypeName("LLVMModuleProviderRef")] LLVMOpaqueModuleProvider* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithContentsOfFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithContentsOfFile", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int CreateMemoryBufferWithContentsOfFile([NativeTypeName("const char *")] sbyte* Path, [NativeTypeName("LLVMMemoryBufferRef *")] LLVMOpaqueMemoryBuffer** OutMemBuf, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithSTDIN", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithSTDIN", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int CreateMemoryBufferWithSTDIN([NativeTypeName("LLVMMemoryBufferRef *")] LLVMOpaqueMemoryBuffer** OutMemBuf, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithMemoryRange", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithMemoryRange", ExactSpelling = true)] [return: NativeTypeName("LLVMMemoryBufferRef")] public static extern LLVMOpaqueMemoryBuffer* CreateMemoryBufferWithMemoryRange([NativeTypeName("const char *")] sbyte* InputData, [NativeTypeName("size_t")] UIntPtr InputDataLength, [NativeTypeName("const char *")] sbyte* BufferName, [NativeTypeName("LLVMBool")] int RequiresNullTerminator); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithMemoryRangeCopy", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMemoryBufferWithMemoryRangeCopy", ExactSpelling = true)] [return: NativeTypeName("LLVMMemoryBufferRef")] public static extern LLVMOpaqueMemoryBuffer* CreateMemoryBufferWithMemoryRangeCopy([NativeTypeName("const char *")] sbyte* InputData, [NativeTypeName("size_t")] UIntPtr InputDataLength, [NativeTypeName("const char *")] sbyte* BufferName); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBufferStart", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBufferStart", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetBufferStart([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBufferSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetBufferSize", ExactSpelling = true)] [return: NativeTypeName("size_t")] public static extern UIntPtr GetBufferSize([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMemoryBuffer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMemoryBuffer", ExactSpelling = true)] public static extern void DisposeMemoryBuffer([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalPassRegistry", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalPassRegistry", ExactSpelling = true)] [return: NativeTypeName("LLVMPassRegistryRef")] public static extern LLVMOpaquePassRegistry* GetGlobalPassRegistry(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreatePassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreatePassManager", ExactSpelling = true)] [return: NativeTypeName("LLVMPassManagerRef")] public static extern LLVMOpaquePassManager* CreatePassManager(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateFunctionPassManagerForModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateFunctionPassManagerForModule", ExactSpelling = true)] [return: NativeTypeName("LLVMPassManagerRef")] public static extern LLVMOpaquePassManager* CreateFunctionPassManagerForModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateFunctionPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateFunctionPassManager", ExactSpelling = true)] [return: NativeTypeName("LLVMPassManagerRef")] public static extern LLVMOpaquePassManager* CreateFunctionPassManager([NativeTypeName("LLVMModuleProviderRef")] LLVMOpaqueModuleProvider* MP); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunPassManager", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int RunPassManager([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeFunctionPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeFunctionPassManager", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int InitializeFunctionPassManager([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* FPM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunFunctionPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunFunctionPassManager", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int RunFunctionPassManager([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* FPM, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFinalizeFunctionPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFinalizeFunctionPassManager", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int FinalizeFunctionPassManager([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* FPM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposePassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposePassManager", ExactSpelling = true)] public static extern void DisposePassManager([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStartMultithreaded", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStartMultithreaded", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int StartMultithreaded(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStopMultithreaded", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStopMultithreaded", ExactSpelling = true)] public static extern void StopMultithreaded(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsMultithreaded", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsMultithreaded", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsMultithreaded(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDebugMetadataVersion", ExactSpelling = true)] + public const int LLVMMDStringMetadataKind = 0; + public const int LLVMConstantAsMetadataMetadataKind = 1; + public const int LLVMLocalAsMetadataMetadataKind = 2; + public const int LLVMDistinctMDOperandPlaceholderMetadataKind = 3; + public const int LLVMMDTupleMetadataKind = 4; + public const int LLVMDILocationMetadataKind = 5; + public const int LLVMDIExpressionMetadataKind = 6; + public const int LLVMDIGlobalVariableExpressionMetadataKind = 7; + public const int LLVMGenericDINodeMetadataKind = 8; + public const int LLVMDISubrangeMetadataKind = 9; + public const int LLVMDIEnumeratorMetadataKind = 10; + public const int LLVMDIBasicTypeMetadataKind = 11; + public const int LLVMDIDerivedTypeMetadataKind = 12; + public const int LLVMDICompositeTypeMetadataKind = 13; + public const int LLVMDISubroutineTypeMetadataKind = 14; + public const int LLVMDIFileMetadataKind = 15; + public const int LLVMDICompileUnitMetadataKind = 16; + public const int LLVMDISubprogramMetadataKind = 17; + public const int LLVMDILexicalBlockMetadataKind = 18; + public const int LLVMDILexicalBlockFileMetadataKind = 19; + public const int LLVMDINamespaceMetadataKind = 20; + public const int LLVMDIModuleMetadataKind = 21; + public const int LLVMDITemplateTypeParameterMetadataKind = 22; + public const int LLVMDITemplateValueParameterMetadataKind = 23; + public const int LLVMDIGlobalVariableMetadataKind = 24; + public const int LLVMDILocalVariableMetadataKind = 25; + public const int LLVMDILabelMetadataKind = 26; + public const int LLVMDIObjCPropertyMetadataKind = 27; + public const int LLVMDIImportedEntityMetadataKind = 28; + public const int LLVMDIMacroMetadataKind = 29; + public const int LLVMDIMacroFileMetadataKind = 30; + public const int LLVMDICommonBlockMetadataKind = 31; + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDebugMetadataVersion", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint DebugMetadataVersion(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleDebugMetadataVersion", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleDebugMetadataVersion", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GetModuleDebugMetadataVersion([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Module); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStripModuleDebugInfo", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStripModuleDebugInfo", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int StripModuleDebugInfo([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Module); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDIBuilderDisallowUnresolved", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDIBuilderDisallowUnresolved", ExactSpelling = true)] [return: NativeTypeName("LLVMDIBuilderRef")] public static extern LLVMOpaqueDIBuilder* CreateDIBuilderDisallowUnresolved([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDIBuilder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDIBuilder", ExactSpelling = true)] [return: NativeTypeName("LLVMDIBuilderRef")] public static extern LLVMOpaqueDIBuilder* CreateDIBuilder([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeDIBuilder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeDIBuilder", ExactSpelling = true)] public static extern void DisposeDIBuilder([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderFinalize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderFinalize", ExactSpelling = true)] public static extern void DIBuilderFinalize([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateCompileUnit", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateCompileUnit", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] - public static extern LLVMOpaqueMetadata* DIBuilderCreateCompileUnit([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, LLVMDWARFSourceLanguage Lang, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* FileRef, [NativeTypeName("const char *")] sbyte* Producer, [NativeTypeName("size_t")] UIntPtr ProducerLen, [NativeTypeName("LLVMBool")] int isOptimized, [NativeTypeName("const char *")] sbyte* Flags, [NativeTypeName("size_t")] UIntPtr FlagsLen, [NativeTypeName("unsigned int")] uint RuntimeVer, [NativeTypeName("const char *")] sbyte* SplitName, [NativeTypeName("size_t")] UIntPtr SplitNameLen, LLVMDWARFEmissionKind Kind, [NativeTypeName("unsigned int")] uint DWOId, [NativeTypeName("LLVMBool")] int SplitDebugInlining, [NativeTypeName("LLVMBool")] int DebugInfoForProfiling); + public static extern LLVMOpaqueMetadata* DIBuilderCreateCompileUnit([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, LLVMDWARFSourceLanguage Lang, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* FileRef, [NativeTypeName("const char *")] sbyte* Producer, [NativeTypeName("size_t")] UIntPtr ProducerLen, [NativeTypeName("LLVMBool")] int isOptimized, [NativeTypeName("const char *")] sbyte* Flags, [NativeTypeName("size_t")] UIntPtr FlagsLen, [NativeTypeName("unsigned int")] uint RuntimeVer, [NativeTypeName("const char *")] sbyte* SplitName, [NativeTypeName("size_t")] UIntPtr SplitNameLen, LLVMDWARFEmissionKind Kind, [NativeTypeName("unsigned int")] uint DWOId, [NativeTypeName("LLVMBool")] int SplitDebugInlining, [NativeTypeName("LLVMBool")] int DebugInfoForProfiling, [NativeTypeName("const char *")] sbyte* SysRoot, [NativeTypeName("size_t")] UIntPtr SysRootLen, [NativeTypeName("const char *")] sbyte* SDK, [NativeTypeName("size_t")] UIntPtr SDKLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateFile", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateFile([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Filename, [NativeTypeName("size_t")] UIntPtr FilenameLen, [NativeTypeName("const char *")] sbyte* Directory, [NativeTypeName("size_t")] UIntPtr DirectoryLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateModule", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] - public static extern LLVMOpaqueMetadata* DIBuilderCreateModule([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ParentScope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("const char *")] sbyte* ConfigMacros, [NativeTypeName("size_t")] UIntPtr ConfigMacrosLen, [NativeTypeName("const char *")] sbyte* IncludePath, [NativeTypeName("size_t")] UIntPtr IncludePathLen, [NativeTypeName("const char *")] sbyte* SysRoot, [NativeTypeName("size_t")] UIntPtr SysRootLen); + public static extern LLVMOpaqueMetadata* DIBuilderCreateModule([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ParentScope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("const char *")] sbyte* ConfigMacros, [NativeTypeName("size_t")] UIntPtr ConfigMacrosLen, [NativeTypeName("const char *")] sbyte* IncludePath, [NativeTypeName("size_t")] UIntPtr IncludePathLen, [NativeTypeName("const char *")] sbyte* APINotesFile, [NativeTypeName("size_t")] UIntPtr APINotesFileLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateNameSpace", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateNameSpace", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateNameSpace([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ParentScope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMBool")] int ExportSymbols); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateFunction([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("const char *")] sbyte* LinkageName, [NativeTypeName("size_t")] UIntPtr LinkageNameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMBool")] int IsLocalToUnit, [NativeTypeName("LLVMBool")] int IsDefinition, [NativeTypeName("unsigned int")] uint ScopeLine, LLVMDIFlags Flags, [NativeTypeName("LLVMBool")] int IsOptimized); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateLexicalBlock", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateLexicalBlock", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateLexicalBlock([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line, [NativeTypeName("unsigned int")] uint Column); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateLexicalBlockFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateLexicalBlockFile", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateLexicalBlockFile([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Discriminator); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedModuleFromNamespace", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedModuleFromNamespace", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateImportedModuleFromNamespace([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* NS, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedModuleFromAlias", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedModuleFromAlias", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateImportedModuleFromAlias([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ImportedEntity, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedModuleFromModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedModuleFromModule", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateImportedModuleFromModule([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* M, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedDeclaration", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateImportedDeclaration", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateImportedDeclaration([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Decl, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateDebugLocation", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateDebugLocation", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateDebugLocation([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* Ctx, [NativeTypeName("unsigned int")] uint Line, [NativeTypeName("unsigned int")] uint Column, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* InlinedAt); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetLine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetLine", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint DILocationGetLine([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Location); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetColumn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetColumn", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint DILocationGetColumn([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Location); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetScope", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetScope", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DILocationGetScope([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Location); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetInlinedAt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDILocationGetInlinedAt", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DILocationGetInlinedAt([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Location); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIScopeGetFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIScopeGetFile", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIScopeGetFile([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIFileGetDirectory", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIFileGetDirectory", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* DIFileGetDirectory([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int *")] uint* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIFileGetFilename", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIFileGetFilename", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* DIFileGetFilename([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int *")] uint* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIFileGetSource", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIFileGetSource", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* DIFileGetSource([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int *")] uint* Len); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderGetOrCreateTypeArray", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderGetOrCreateTypeArray", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderGetOrCreateTypeArray([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Data, [NativeTypeName("size_t")] UIntPtr NumElements); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateSubroutineType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateSubroutineType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateSubroutineType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** ParameterTypes, [NativeTypeName("unsigned int")] uint NumParameterTypes, LLVMDIFlags Flags); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateMacro", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateMacro", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateMacro([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ParentMacroFile, [NativeTypeName("unsigned int")] uint Line, LLVMDWARFMacinfoRecordType RecordType, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("const char *")] sbyte* Value, [NativeTypeName("size_t")] UIntPtr ValueLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateTempMacroFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateTempMacroFile", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateTempMacroFile([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ParentMacroFile, [NativeTypeName("unsigned int")] uint Line, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateEnumerator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateEnumerator", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateEnumerator([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("int64_t")] long Value, [NativeTypeName("LLVMBool")] int IsUnsigned); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateEnumerationType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateEnumerationType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateEnumerationType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNumber, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Elements, [NativeTypeName("unsigned int")] uint NumElements, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ClassTy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateUnionType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateUnionType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateUnionType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNumber, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, LLVMDIFlags Flags, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Elements, [NativeTypeName("unsigned int")] uint NumElements, [NativeTypeName("unsigned int")] uint RunTimeLang, [NativeTypeName("const char *")] sbyte* UniqueId, [NativeTypeName("size_t")] UIntPtr UniqueIdLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateArrayType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateArrayType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateArrayType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("uint64_t")] ulong Size, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Subscripts, [NativeTypeName("unsigned int")] uint NumSubscripts); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateVectorType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateVectorType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateVectorType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("uint64_t")] ulong Size, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Subscripts, [NativeTypeName("unsigned int")] uint NumSubscripts); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateUnspecifiedType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateUnspecifiedType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateUnspecifiedType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateBasicType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateBasicType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateBasicType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("LLVMDWARFTypeEncoding")] uint Encoding, LLVMDIFlags Flags); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreatePointerType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreatePointerType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreatePointerType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* PointeeTy, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("unsigned int")] uint AddressSpace, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateStructType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateStructType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateStructType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNumber, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, LLVMDIFlags Flags, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DerivedFrom, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Elements, [NativeTypeName("unsigned int")] uint NumElements, [NativeTypeName("unsigned int")] uint RunTimeLang, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* VTableHolder, [NativeTypeName("const char *")] sbyte* UniqueId, [NativeTypeName("size_t")] UIntPtr UniqueIdLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateMemberType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateMemberType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateMemberType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("uint64_t")] ulong OffsetInBits, LLVMDIFlags Flags, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateStaticMemberType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateStaticMemberType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateStaticMemberType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNumber, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type, LLVMDIFlags Flags, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* ConstantVal, [NativeTypeName("uint32_t")] uint AlignInBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateMemberPointerType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateMemberPointerType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateMemberPointerType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* PointeeType, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* ClassType, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, LLVMDIFlags Flags); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateObjCIVar", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateObjCIVar", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateObjCIVar([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("uint64_t")] ulong OffsetInBits, LLVMDIFlags Flags, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* PropertyNode); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateObjCProperty", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateObjCProperty", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateObjCProperty([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("const char *")] sbyte* GetterName, [NativeTypeName("size_t")] UIntPtr GetterNameLen, [NativeTypeName("const char *")] sbyte* SetterName, [NativeTypeName("size_t")] UIntPtr SetterNameLen, [NativeTypeName("unsigned int")] uint PropertyAttributes, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateObjectPointerType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateObjectPointerType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateObjectPointerType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateQualifiedType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateQualifiedType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateQualifiedType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("unsigned int")] uint Tag, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateReferenceType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateReferenceType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateReferenceType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("unsigned int")] uint Tag, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateNullPtrType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateNullPtrType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateNullPtrType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateTypedef", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateTypedef", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateTypedef([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("uint32_t")] uint AlignInBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateInheritance", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateInheritance", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateInheritance([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* BaseTy, [NativeTypeName("uint64_t")] ulong BaseOffset, [NativeTypeName("uint32_t")] uint VBPtrOffset, LLVMDIFlags Flags); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateForwardDecl", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateForwardDecl", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateForwardDecl([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("unsigned int")] uint Tag, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line, [NativeTypeName("unsigned int")] uint RuntimeLang, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("const char *")] sbyte* UniqueIdentifier, [NativeTypeName("size_t")] UIntPtr UniqueIdentifierLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateReplaceableCompositeType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateReplaceableCompositeType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateReplaceableCompositeType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("unsigned int")] uint Tag, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint Line, [NativeTypeName("unsigned int")] uint RuntimeLang, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, LLVMDIFlags Flags, [NativeTypeName("const char *")] sbyte* UniqueIdentifier, [NativeTypeName("size_t")] UIntPtr UniqueIdentifierLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateBitFieldMemberType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateBitFieldMemberType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateBitFieldMemberType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNumber, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint64_t")] ulong OffsetInBits, [NativeTypeName("uint64_t")] ulong StorageOffsetInBits, LLVMDIFlags Flags, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateClassType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateClassType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateClassType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNumber, [NativeTypeName("uint64_t")] ulong SizeInBits, [NativeTypeName("uint32_t")] uint AlignInBits, [NativeTypeName("uint64_t")] ulong OffsetInBits, LLVMDIFlags Flags, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DerivedFrom, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Elements, [NativeTypeName("unsigned int")] uint NumElements, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* VTableHolder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* TemplateParamsNode, [NativeTypeName("const char *")] sbyte* UniqueIdentifier, [NativeTypeName("size_t")] UIntPtr UniqueIdentifierLen); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateArtificialType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateArtificialType", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateArtificialType([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Type); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* DITypeGetName([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DType, [NativeTypeName("size_t *")] UIntPtr* Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetSizeInBits", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetSizeInBits", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong DITypeGetSizeInBits([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetOffsetInBits", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetOffsetInBits", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong DITypeGetOffsetInBits([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetAlignInBits", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetAlignInBits", ExactSpelling = true)] [return: NativeTypeName("uint32_t")] public static extern uint DITypeGetAlignInBits([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetLine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetLine", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint DITypeGetLine([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetFlags", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDITypeGetFlags", ExactSpelling = true)] public static extern LLVMDIFlags DITypeGetFlags([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DType); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderGetOrCreateSubrange", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderGetOrCreateSubrange", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderGetOrCreateSubrange([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("int64_t")] long LowerBound, [NativeTypeName("int64_t")] long Count); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderGetOrCreateArray", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderGetOrCreateArray", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderGetOrCreateArray([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Data, [NativeTypeName("size_t")] UIntPtr NumElements); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateExpression", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateExpression", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateExpression([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("int64_t *")] long* Addr, [NativeTypeName("size_t")] UIntPtr Length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateConstantValueExpression", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateConstantValueExpression", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateConstantValueExpression([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("int64_t")] long Value); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateGlobalVariableExpression", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateGlobalVariableExpression", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateGlobalVariableExpression([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("const char *")] sbyte* Linkage, [NativeTypeName("size_t")] UIntPtr LinkLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMBool")] int LocalToUnit, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Expr, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Decl, [NativeTypeName("uint32_t")] uint AlignInBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIGlobalVariableExpressionGetVariable", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIGlobalVariableExpressionGetVariable", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIGlobalVariableExpressionGetVariable([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* GVE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIGlobalVariableExpressionGetExpression", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIGlobalVariableExpressionGetExpression", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIGlobalVariableExpressionGetExpression([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* GVE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIVariableGetFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIVariableGetFile", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIVariableGetFile([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Var); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIVariableGetScope", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIVariableGetScope", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIVariableGetScope([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Var); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIVariableGetLine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIVariableGetLine", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint DIVariableGetLine([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Var); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTemporaryMDNode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTemporaryMDNode", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* TemporaryMDNode([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* Ctx, [NativeTypeName("LLVMMetadataRef *")] LLVMOpaqueMetadata** Data, [NativeTypeName("size_t")] UIntPtr NumElements); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeTemporaryMDNode", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeTemporaryMDNode", ExactSpelling = true)] public static extern void DisposeTemporaryMDNode([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* TempNode); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMetadataReplaceAllUsesWith", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMetadataReplaceAllUsesWith", ExactSpelling = true)] public static extern void MetadataReplaceAllUsesWith([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* TempTargetMetadata, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Replacement); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateTempGlobalVariableFwdDecl", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateTempGlobalVariableFwdDecl", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateTempGlobalVariableFwdDecl([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("const char *")] sbyte* Linkage, [NativeTypeName("size_t")] UIntPtr LnkLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMBool")] int LocalToUnit, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Decl, [NativeTypeName("uint32_t")] uint AlignInBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDeclareBefore", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDeclareBefore", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* DIBuilderInsertDeclareBefore([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Storage, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* VarInfo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Expr, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DebugLoc, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDeclareAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDeclareAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* DIBuilderInsertDeclareAtEnd([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Storage, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* VarInfo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Expr, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DebugLoc, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Block); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDbgValueBefore", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDbgValueBefore", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* DIBuilderInsertDbgValueBefore([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* VarInfo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Expr, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DebugLoc, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Instr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDbgValueAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderInsertDbgValueAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMValueRef")] public static extern LLVMOpaqueValue* DIBuilderInsertDbgValueAtEnd([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Val, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* VarInfo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Expr, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* DebugLoc, [NativeTypeName("LLVMBasicBlockRef")] LLVMOpaqueBasicBlock* Block); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateAutoVariable", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateAutoVariable", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateAutoVariable([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMBool")] int AlwaysPreserve, LLVMDIFlags Flags, [NativeTypeName("uint32_t")] uint AlignInBits); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateParameterVariable", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDIBuilderCreateParameterVariable", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* DIBuilderCreateParameterVariable([NativeTypeName("LLVMDIBuilderRef")] LLVMOpaqueDIBuilder* Builder, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Scope, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("size_t")] UIntPtr NameLen, [NativeTypeName("unsigned int")] uint ArgNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* File, [NativeTypeName("unsigned int")] uint LineNo, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Ty, [NativeTypeName("LLVMBool")] int AlwaysPreserve, LLVMDIFlags Flags); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSubprogram", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSubprogram", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* GetSubprogram([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Func); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSubprogram", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetSubprogram", ExactSpelling = true)] public static extern void SetSubprogram([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Func, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* SP); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDISubprogramGetLine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDISubprogramGetLine", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint DISubprogramGetLine([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Subprogram); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionGetDebugLoc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionGetDebugLoc", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataRef")] public static extern LLVMOpaqueMetadata* InstructionGetDebugLoc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionSetDebugLoc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstructionSetDebugLoc", ExactSpelling = true)] public static extern void InstructionSetDebugLoc([NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Inst, [NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Loc); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMetadataKind", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetMetadataKind", ExactSpelling = true)] [return: NativeTypeName("LLVMMetadataKind")] public static extern uint GetMetadataKind([NativeTypeName("LLVMMetadataRef")] LLVMOpaqueMetadata* Metadata); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasm", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasm", ExactSpelling = true)] [return: NativeTypeName("LLVMDisasmContextRef")] public static extern void* CreateDisasm([NativeTypeName("const char *")] sbyte* TripleName, [NativeTypeName("void *")] void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasmCPU", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasmCPU", ExactSpelling = true)] [return: NativeTypeName("LLVMDisasmContextRef")] public static extern void* CreateDisasmCPU([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, [NativeTypeName("void *")] void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasmCPUFeatures", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateDisasmCPUFeatures", ExactSpelling = true)] [return: NativeTypeName("LLVMDisasmContextRef")] public static extern void* CreateDisasmCPUFeatures([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, [NativeTypeName("const char *")] sbyte* Features, [NativeTypeName("void *")] void* DisInfo, int TagType, [NativeTypeName("LLVMOpInfoCallback")] IntPtr GetOpInfo, [NativeTypeName("LLVMSymbolLookupCallback")] IntPtr SymbolLookUp); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDisasmOptions", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetDisasmOptions", ExactSpelling = true)] public static extern int SetDisasmOptions([NativeTypeName("LLVMDisasmContextRef")] void* DC, [NativeTypeName("uint64_t")] ulong Options); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisasmDispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisasmDispose", ExactSpelling = true)] public static extern void DisasmDispose([NativeTypeName("LLVMDisasmContextRef")] void* DC); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisasmInstruction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisasmInstruction", ExactSpelling = true)] [return: NativeTypeName("size_t")] public static extern UIntPtr DisasmInstruction([NativeTypeName("LLVMDisasmContextRef")] void* DC, [NativeTypeName("uint8_t *")] byte* Bytes, [NativeTypeName("uint64_t")] ulong BytesSize, [NativeTypeName("uint64_t")] ulong PC, [NativeTypeName("char *")] sbyte* OutString, [NativeTypeName("size_t")] UIntPtr OutStringSize); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetErrorTypeId", ExactSpelling = true)] + [NativeTypeName("#define LLVMDisassembler_Option_UseMarkup 1")] + public const int LLVMDisassembler_Option_UseMarkup = 1; + + [NativeTypeName("#define LLVMDisassembler_Option_PrintImmHex 2")] + public const int LLVMDisassembler_Option_PrintImmHex = 2; + + [NativeTypeName("#define LLVMDisassembler_Option_AsmPrinterVariant 4")] + public const int LLVMDisassembler_Option_AsmPrinterVariant = 4; + + [NativeTypeName("#define LLVMDisassembler_Option_SetInstrComments 8")] + public const int LLVMDisassembler_Option_SetInstrComments = 8; + + [NativeTypeName("#define LLVMDisassembler_Option_PrintLatency 16")] + public const int LLVMDisassembler_Option_PrintLatency = 16; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_None 0")] + public const int LLVMDisassembler_VariantKind_None = 0; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM_HI16 1")] + public const int LLVMDisassembler_VariantKind_ARM_HI16 = 1; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM_LO16 2")] + public const int LLVMDisassembler_VariantKind_ARM_LO16 = 2; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM64_PAGE 1")] + public const int LLVMDisassembler_VariantKind_ARM64_PAGE = 1; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM64_PAGEOFF 2")] + public const int LLVMDisassembler_VariantKind_ARM64_PAGEOFF = 2; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM64_GOTPAGE 3")] + public const int LLVMDisassembler_VariantKind_ARM64_GOTPAGE = 3; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM64_GOTPAGEOFF 4")] + public const int LLVMDisassembler_VariantKind_ARM64_GOTPAGEOFF = 4; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM64_TLVP 5")] + public const int LLVMDisassembler_VariantKind_ARM64_TLVP = 5; + + [NativeTypeName("#define LLVMDisassembler_VariantKind_ARM64_TLVOFF 6")] + public const int LLVMDisassembler_VariantKind_ARM64_TLVOFF = 6; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_InOut_None 0")] + public const int LLVMDisassembler_ReferenceType_InOut_None = 0; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_Branch 1")] + public const int LLVMDisassembler_ReferenceType_In_Branch = 1; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_PCrel_Load 2")] + public const int LLVMDisassembler_ReferenceType_In_PCrel_Load = 2; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_ARM64_ADRP 0x100000001")] + public const long LLVMDisassembler_ReferenceType_In_ARM64_ADRP = 0x100000001; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_ARM64_ADDXri 0x100000002")] + public const long LLVMDisassembler_ReferenceType_In_ARM64_ADDXri = 0x100000002; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_ARM64_LDRXui 0x100000003")] + public const long LLVMDisassembler_ReferenceType_In_ARM64_LDRXui = 0x100000003; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_ARM64_LDRXl 0x100000004")] + public const long LLVMDisassembler_ReferenceType_In_ARM64_LDRXl = 0x100000004; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_In_ARM64_ADR 0x100000005")] + public const long LLVMDisassembler_ReferenceType_In_ARM64_ADR = 0x100000005; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_SymbolStub 1")] + public const int LLVMDisassembler_ReferenceType_Out_SymbolStub = 1; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_LitPool_SymAddr 2")] + public const int LLVMDisassembler_ReferenceType_Out_LitPool_SymAddr = 2; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr 3")] + public const int LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr = 3; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref 4")] + public const int LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref = 4; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_Objc_Message 5")] + public const int LLVMDisassembler_ReferenceType_Out_Objc_Message = 5; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_Objc_Message_Ref 6")] + public const int LLVMDisassembler_ReferenceType_Out_Objc_Message_Ref = 6; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_Objc_Selector_Ref 7")] + public const int LLVMDisassembler_ReferenceType_Out_Objc_Selector_Ref = 7; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_Out_Objc_Class_Ref 8")] + public const int LLVMDisassembler_ReferenceType_Out_Objc_Class_Ref = 8; + + [NativeTypeName("#define LLVMDisassembler_ReferenceType_DeMangled_Name 9")] + public const int LLVMDisassembler_ReferenceType_DeMangled_Name = 9; + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetErrorTypeId", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorTypeId")] public static extern void* GetErrorTypeId([NativeTypeName("LLVMErrorRef")] LLVMOpaqueError* Err); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConsumeError", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMConsumeError", ExactSpelling = true)] public static extern void ConsumeError([NativeTypeName("LLVMErrorRef")] LLVMOpaqueError* Err); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetErrorMessage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetErrorMessage", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetErrorMessage([NativeTypeName("LLVMErrorRef")] LLVMOpaqueError* Err); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeErrorMessage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeErrorMessage", ExactSpelling = true)] public static extern void DisposeErrorMessage([NativeTypeName("char *")] sbyte* ErrMsg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringErrorTypeId", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetStringErrorTypeId", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorTypeId")] public static extern void* GetStringErrorTypeId(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstallFatalErrorHandler", ExactSpelling = true)] + [NativeTypeName("#define LLVMErrorSuccess 0")] + public const int LLVMErrorSuccess = 0; + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInstallFatalErrorHandler", ExactSpelling = true)] public static extern void InstallFatalErrorHandler([NativeTypeName("LLVMFatalErrorHandler")] IntPtr Handler); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMResetFatalErrorHandler", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMResetFatalErrorHandler", ExactSpelling = true)] public static extern void ResetFatalErrorHandler(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMEnablePrettyStackTrace", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMEnablePrettyStackTrace", ExactSpelling = true)] public static extern void EnablePrettyStackTrace(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkInMCJIT", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkInMCJIT", ExactSpelling = true)] public static extern void LinkInMCJIT(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkInInterpreter", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkInInterpreter", ExactSpelling = true)] public static extern void LinkInInterpreter(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfInt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfInt", ExactSpelling = true)] [return: NativeTypeName("LLVMGenericValueRef")] public static extern LLVMOpaqueGenericValue* CreateGenericValueOfInt([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, [NativeTypeName("unsigned long long")] ulong N, [NativeTypeName("LLVMBool")] int IsSigned); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfPointer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfPointer", ExactSpelling = true)] [return: NativeTypeName("LLVMGenericValueRef")] public static extern LLVMOpaqueGenericValue* CreateGenericValueOfPointer([NativeTypeName("void *")] void* P); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfFloat", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGenericValueOfFloat", ExactSpelling = true)] [return: NativeTypeName("LLVMGenericValueRef")] public static extern LLVMOpaqueGenericValue* CreateGenericValueOfFloat([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty, double N); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueIntWidth", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueIntWidth", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint GenericValueIntWidth([NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenValRef); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToInt", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToInt", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] public static extern ulong GenericValueToInt([NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenVal, [NativeTypeName("LLVMBool")] int IsSigned); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToPointer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToPointer", ExactSpelling = true)] [return: NativeTypeName("void *")] public static extern void* GenericValueToPointer([NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToFloat", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGenericValueToFloat", ExactSpelling = true)] public static extern double GenericValueToFloat([NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* TyRef, [NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeGenericValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeGenericValue", ExactSpelling = true)] public static extern void DisposeGenericValue([NativeTypeName("LLVMGenericValueRef")] LLVMOpaqueGenericValue* GenVal); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateExecutionEngineForModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateExecutionEngineForModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int CreateExecutionEngineForModule([NativeTypeName("LLVMExecutionEngineRef *")] LLVMOpaqueExecutionEngine** OutEE, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("char **")] sbyte** OutError); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateInterpreterForModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateInterpreterForModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int CreateInterpreterForModule([NativeTypeName("LLVMExecutionEngineRef *")] LLVMOpaqueExecutionEngine** OutInterp, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("char **")] sbyte** OutError); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateJITCompilerForModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateJITCompilerForModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int CreateJITCompilerForModule([NativeTypeName("LLVMExecutionEngineRef *")] LLVMOpaqueExecutionEngine** OutJIT, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("unsigned int")] uint OptLevel, [NativeTypeName("char **")] sbyte** OutError); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMCJITCompilerOptions", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMCJITCompilerOptions", ExactSpelling = true)] public static extern void InitializeMCJITCompilerOptions([NativeTypeName("struct LLVMMCJITCompilerOptions *")] LLVMMCJITCompilerOptions* Options, [NativeTypeName("size_t")] UIntPtr SizeOfOptions); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMCJITCompilerForModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateMCJITCompilerForModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int CreateMCJITCompilerForModule([NativeTypeName("LLVMExecutionEngineRef *")] LLVMOpaqueExecutionEngine** OutJIT, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("struct LLVMMCJITCompilerOptions *")] LLVMMCJITCompilerOptions* Options, [NativeTypeName("size_t")] UIntPtr SizeOfOptions, [NativeTypeName("char **")] sbyte** OutError); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeExecutionEngine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeExecutionEngine", ExactSpelling = true)] public static extern void DisposeExecutionEngine([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunStaticConstructors", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunStaticConstructors", ExactSpelling = true)] public static extern void RunStaticConstructors([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunStaticDestructors", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunStaticDestructors", ExactSpelling = true)] public static extern void RunStaticDestructors([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunFunctionAsMain", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunFunctionAsMain", ExactSpelling = true)] public static extern int RunFunctionAsMain([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("unsigned int")] uint ArgC, [NativeTypeName("const char *const *")] sbyte** ArgV, [NativeTypeName("const char *const *")] sbyte** EnvP); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRunFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMGenericValueRef")] public static extern LLVMOpaqueGenericValue* RunFunction([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F, [NativeTypeName("unsigned int")] uint NumArgs, [NativeTypeName("LLVMGenericValueRef *")] LLVMOpaqueGenericValue** Args); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFreeMachineCodeForFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFreeMachineCodeForFunction", ExactSpelling = true)] public static extern void FreeMachineCodeForFunction([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* F); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddModule", ExactSpelling = true)] public static extern void AddModule([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemoveModule", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int RemoveModule([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutMod, [NativeTypeName("char **")] sbyte** OutError); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFindFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMFindFunction", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int FindFunction([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("const char *")] sbyte* Name, [NativeTypeName("LLVMValueRef *")] LLVMOpaqueValue** OutFn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRecompileAndRelinkFunction", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRecompileAndRelinkFunction", ExactSpelling = true)] [return: NativeTypeName("void *")] public static extern void* RecompileAndRelinkFunction([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Fn); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetExecutionEngineTargetData", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetExecutionEngineTargetData", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetDataRef")] public static extern LLVMOpaqueTargetData* GetExecutionEngineTargetData([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetExecutionEngineTargetMachine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetExecutionEngineTargetMachine", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetMachineRef")] public static extern LLVMOpaqueTargetMachine* GetExecutionEngineTargetMachine([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalMapping", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalMapping", ExactSpelling = true)] public static extern void AddGlobalMapping([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global, [NativeTypeName("void *")] void* Addr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPointerToGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetPointerToGlobal", ExactSpelling = true)] [return: NativeTypeName("void *")] public static extern void* GetPointerToGlobal([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* Global); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalValueAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetGlobalValueAddress", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetGlobalValueAddress([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFunctionAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFunctionAddress", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetFunctionAddress([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateSimpleMCJITMemoryManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMExecutionEngineGetErrMsg", ExactSpelling = true)] + [return: NativeTypeName("LLVMBool")] + public static extern int ExecutionEngineGetErrMsg([NativeTypeName("LLVMExecutionEngineRef")] LLVMOpaqueExecutionEngine* EE, [NativeTypeName("char **")] sbyte** OutError); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateSimpleMCJITMemoryManager", ExactSpelling = true)] [return: NativeTypeName("LLVMMCJITMemoryManagerRef")] public static extern LLVMOpaqueMCJITMemoryManager* CreateSimpleMCJITMemoryManager([NativeTypeName("void *")] void* Opaque, [NativeTypeName("LLVMMemoryManagerAllocateCodeSectionCallback")] IntPtr AllocateCodeSection, [NativeTypeName("LLVMMemoryManagerAllocateDataSectionCallback")] IntPtr AllocateDataSection, [NativeTypeName("LLVMMemoryManagerFinalizeMemoryCallback")] IntPtr FinalizeMemory, [NativeTypeName("LLVMMemoryManagerDestroyCallback")] IntPtr Destroy); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMCJITMemoryManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeMCJITMemoryManager", ExactSpelling = true)] public static extern void DisposeMCJITMemoryManager([NativeTypeName("LLVMMCJITMemoryManagerRef")] LLVMOpaqueMCJITMemoryManager* MM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGDBRegistrationListener", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateGDBRegistrationListener", ExactSpelling = true)] [return: NativeTypeName("LLVMJITEventListenerRef")] public static extern LLVMOpaqueJITEventListener* CreateGDBRegistrationListener(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateIntelJITEventListener", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateIntelJITEventListener", ExactSpelling = true)] [return: NativeTypeName("LLVMJITEventListenerRef")] public static extern LLVMOpaqueJITEventListener* CreateIntelJITEventListener(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateOProfileJITEventListener", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateOProfileJITEventListener", ExactSpelling = true)] [return: NativeTypeName("LLVMJITEventListenerRef")] public static extern LLVMOpaqueJITEventListener* CreateOProfileJITEventListener(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreatePerfJITEventListener", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreatePerfJITEventListener", ExactSpelling = true)] [return: NativeTypeName("LLVMJITEventListenerRef")] public static extern LLVMOpaqueJITEventListener* CreatePerfJITEventListener(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeTransformUtils", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeTransformUtils", ExactSpelling = true)] public static extern void InitializeTransformUtils([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeScalarOpts", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeScalarOpts", ExactSpelling = true)] public static extern void InitializeScalarOpts([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeObjCARCOpts", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeObjCARCOpts", ExactSpelling = true)] public static extern void InitializeObjCARCOpts([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeVectorization", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeVectorization", ExactSpelling = true)] public static extern void InitializeVectorization([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeInstCombine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeInstCombine", ExactSpelling = true)] public static extern void InitializeInstCombine([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAggressiveInstCombiner", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAggressiveInstCombiner", ExactSpelling = true)] public static extern void InitializeAggressiveInstCombiner([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeIPO", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeIPO", ExactSpelling = true)] public static extern void InitializeIPO([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeInstrumentation", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeInstrumentation", ExactSpelling = true)] public static extern void InitializeInstrumentation([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAnalysis", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAnalysis", ExactSpelling = true)] public static extern void InitializeAnalysis([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeIPA", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeIPA", ExactSpelling = true)] public static extern void InitializeIPA([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeCodeGen", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeCodeGen", ExactSpelling = true)] public static extern void InitializeCodeGen([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeTarget", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeTarget", ExactSpelling = true)] public static extern void InitializeTarget([NativeTypeName("LLVMPassRegistryRef")] LLVMOpaquePassRegistry* R); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseIRInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseIRInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ParseIRInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* ContextRef, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMModuleRef *")] LLVMOpaqueModule** OutM, [NativeTypeName("char **")] sbyte** OutMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkModules2", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLinkModules2", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int LinkModules2([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Dest, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Src); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "llvm_create_optimizer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("llvm_lto_t")] public static extern void* llvm_create_optimizer(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "llvm_destroy_optimizer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void llvm_destroy_optimizer([NativeTypeName("llvm_lto_t")] void* lto); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "llvm_read_object_file", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("llvm_lto_status_t")] public static extern llvm_lto_status llvm_read_object_file([NativeTypeName("llvm_lto_t")] void* lto, [NativeTypeName("const char *")] sbyte* input_filename); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "llvm_optimize_modules", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("llvm_lto_status_t")] public static extern llvm_lto_status llvm_optimize_modules([NativeTypeName("llvm_lto_t")] void* lto, [NativeTypeName("const char *")] sbyte* output_filename); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_get_version", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* lto_get_version(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_get_error_message", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* lto_get_error_message(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_is_object_file", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_module_is_object_file([NativeTypeName("const char *")] sbyte* path); + public static extern byte lto_module_is_object_file([NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_is_object_file_for_target", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_module_is_object_file_for_target([NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* target_triple_prefix); + public static extern byte lto_module_is_object_file_for_target([NativeTypeName("const char *")] sbyte* path, [NativeTypeName("const char *")] sbyte* target_triple_prefix); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_has_objc_category", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_module_has_objc_category([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length); + public static extern byte lto_module_has_objc_category([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_is_object_file_in_memory", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_module_is_object_file_in_memory([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length); + public static extern byte lto_module_is_object_file_in_memory([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_is_object_file_in_memory_for_target", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_module_is_object_file_in_memory_for_target([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("const char *")] sbyte* target_triple_prefix); + public static extern byte lto_module_is_object_file_in_memory_for_target([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("const char *")] sbyte* target_triple_prefix); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create([NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create_from_memory", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create_from_memory([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create_from_memory_with_path", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create_from_memory_with_path([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create_in_local_context", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create_in_local_context([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create_in_codegen_context", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create_in_codegen_context([NativeTypeName("const void *")] void* mem, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create_from_fd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create_from_fd(int fd, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("size_t")] UIntPtr file_size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_create_from_fd_at_offset", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_module_t")] public static extern LLVMOpaqueLTOModule* lto_module_create_from_fd_at_offset(int fd, [NativeTypeName("const char *")] sbyte* path, [NativeTypeName("size_t")] UIntPtr file_size, [NativeTypeName("size_t")] UIntPtr map_size, [NativeTypeName("off_t")] int offset); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_dispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_module_dispose([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_get_target_triple", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* lto_module_get_target_triple([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_set_target_triple", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_module_set_target_triple([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod, [NativeTypeName("const char *")] sbyte* triple); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_get_num_symbols", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint lto_module_get_num_symbols([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_get_symbol_name", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* lto_module_get_symbol_name([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod, [NativeTypeName("unsigned int")] uint index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_get_symbol_attribute", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern lto_symbol_attributes lto_module_get_symbol_attribute([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod, [NativeTypeName("unsigned int")] uint index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_get_linkeropts", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* lto_module_get_linkeropts([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_diagnostic_handler", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + [return: NativeTypeName("lto_bool_t")] + public static extern byte lto_module_get_macho_cputype([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod, [NativeTypeName("unsigned int *")] uint* out_cputype, [NativeTypeName("unsigned int *")] uint* out_cpusubtype); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_set_diagnostic_handler([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* param0, [NativeTypeName("lto_diagnostic_handler_t")] IntPtr param1, [NativeTypeName("void *")] void* param2); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_create", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_code_gen_t")] public static extern LLVMOpaqueLTOCodeGenerator* lto_codegen_create(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_create_in_local_context", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_code_gen_t")] public static extern LLVMOpaqueLTOCodeGenerator* lto_codegen_create_in_local_context(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_dispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_dispose([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* param0); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_add_module", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_codegen_add_module([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); + public static extern byte lto_codegen_add_module([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_module", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_set_module([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_debug_model", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_codegen_set_debug_model([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, lto_debug_model param1); + public static extern byte lto_codegen_set_debug_model([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, lto_debug_model param1); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_pic_model", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_codegen_set_pic_model([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, lto_codegen_model param1); + public static extern byte lto_codegen_set_pic_model([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, lto_codegen_model param1); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_cpu", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_set_cpu([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* cpu); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_assembler_path", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_set_assembler_path([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_assembler_args", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_set_assembler_args([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char **")] sbyte** args, int nargs); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_add_must_preserve_symbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_add_must_preserve_symbol([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* symbol); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_write_merged_modules", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_codegen_write_merged_modules([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* path); + public static extern byte lto_codegen_write_merged_modules([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_compile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const void *")] public static extern void* lto_codegen_compile([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("size_t *")] UIntPtr* length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_compile_to_file", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_codegen_compile_to_file([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char **")] sbyte** name); + public static extern byte lto_codegen_compile_to_file([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char **")] sbyte** name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_optimize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_codegen_optimize([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg); + public static extern byte lto_codegen_optimize([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_compile_optimized", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const void *")] public static extern void* lto_codegen_compile_optimized([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("size_t *")] UIntPtr* length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_api_version", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint lto_api_version(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_debug_options", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_debug_options([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* param1); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_debug_options_array", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_codegen_debug_options_array([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("const char *const *")] sbyte** param1, int number); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_initialize_disassembler", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_initialize_disassembler(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_should_internalize", ExactSpelling = true)] - public static extern void lto_codegen_set_should_internalize([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] bool ShouldInternalize); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void lto_codegen_set_should_internalize([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] byte ShouldInternalize); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_codegen_set_should_embed_uselists", ExactSpelling = true)] - public static extern void lto_codegen_set_should_embed_uselists([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] bool ShouldEmbedUselists); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void lto_codegen_set_should_embed_uselists([NativeTypeName("lto_code_gen_t")] LLVMOpaqueLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] byte ShouldEmbedUselists); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_input_create", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_input_t")] public static extern LLVMOpaqueLTOInput* lto_input_create([NativeTypeName("const void *")] void* buffer, [NativeTypeName("size_t")] UIntPtr buffer_size, [NativeTypeName("const char *")] sbyte* path); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_input_dispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void lto_input_dispose([NativeTypeName("lto_input_t")] LLVMOpaqueLTOInput* input); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_input_get_num_dependent_libraries", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint lto_input_get_num_dependent_libraries([NativeTypeName("lto_input_t")] LLVMOpaqueLTOInput* input); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_input_get_dependent_library", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* lto_input_get_dependent_library([NativeTypeName("lto_input_t")] LLVMOpaqueLTOInput* input, [NativeTypeName("size_t")] UIntPtr index, [NativeTypeName("size_t *")] UIntPtr* size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_runtime_lib_symbols_list", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *const *")] public static extern sbyte** lto_runtime_lib_symbols_list([NativeTypeName("size_t *")] UIntPtr* size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_create_codegen", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("thinlto_code_gen_t")] public static extern LLVMOpaqueThinLTOCodeGenerator* thinlto_create_codegen(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_dispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_dispose([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_add_module", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_add_module([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* identifier, [NativeTypeName("const char *")] sbyte* data, int length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_process", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_process([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_module_get_num_objects", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint thinlto_module_get_num_objects([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_module_get_object", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern LTOObjectBuffer thinlto_module_get_object([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_module_get_num_object_files", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint thinlto_module_get_num_object_files([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_module_get_object_file", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* thinlto_module_get_object_file([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint index); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_pic_model", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool thinlto_codegen_set_pic_model([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, lto_codegen_model param1); + public static extern byte thinlto_codegen_set_pic_model([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, lto_codegen_model param1); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_savetemps_dir", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_savetemps_dir([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* save_temps_dir); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_set_generated_objects_dir", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_set_generated_objects_dir([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* save_temps_dir); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cpu", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cpu([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* cpu); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_disable_codegen", ExactSpelling = true)] - public static extern void thinlto_codegen_disable_codegen([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] bool disable); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void thinlto_codegen_disable_codegen([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] byte disable); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_codegen_only", ExactSpelling = true)] - public static extern void thinlto_codegen_set_codegen_only([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] bool codegen_only); + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void thinlto_codegen_set_codegen_only([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("lto_bool_t")] byte codegen_only); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_debug_options", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_debug_options([NativeTypeName("const char *const *")] sbyte** options, int number); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "lto_module_is_thinlto", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("lto_bool_t")] - public static extern bool lto_module_is_thinlto([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); + public static extern byte lto_module_is_thinlto([NativeTypeName("lto_module_t")] LLVMOpaqueLTOModule* mod); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_add_must_preserve_symbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_add_must_preserve_symbol([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* name, int length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_add_cross_referenced_symbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_add_cross_referenced_symbol([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* name, int length); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cache_dir", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cache_dir([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("const char *")] sbyte* cache_dir); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cache_pruning_interval", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cache_pruning_interval([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, int interval); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_final_cache_size_relative_to_available_space", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_final_cache_size_relative_to_available_space([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint percentage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cache_entry_expiration", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cache_entry_expiration([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint expiration); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cache_size_bytes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cache_size_bytes([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint max_size_bytes); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cache_size_megabytes", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cache_size_megabytes([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint max_size_megabytes); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "thinlto_codegen_set_cache_size_files", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void thinlto_codegen_set_cache_size_files([NativeTypeName("thinlto_code_gen_t")] LLVMOpaqueThinLTOCodeGenerator* cg, [NativeTypeName("unsigned int")] uint max_size_files); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBinary", ExactSpelling = true)] + [NativeTypeName("#define LTO_API_VERSION 27")] + public const int LTO_API_VERSION = 27; + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateBinary", ExactSpelling = true)] [return: NativeTypeName("LLVMBinaryRef")] public static extern LLVMOpaqueBinary* CreateBinary([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf, [NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* Context, [NativeTypeName("char **")] sbyte** ErrorMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeBinary", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeBinary", ExactSpelling = true)] public static extern void DisposeBinary([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBinaryCopyMemoryBuffer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBinaryCopyMemoryBuffer", ExactSpelling = true)] [return: NativeTypeName("LLVMMemoryBufferRef")] public static extern LLVMOpaqueMemoryBuffer* BinaryCopyMemoryBuffer([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBinaryGetType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMBinaryGetType", ExactSpelling = true)] public static extern LLVMBinaryType BinaryGetType([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMachOUniversalBinaryCopyObjectForArch", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMachOUniversalBinaryCopyObjectForArch", ExactSpelling = true)] [return: NativeTypeName("LLVMBinaryRef")] public static extern LLVMOpaqueBinary* MachOUniversalBinaryCopyObjectForArch([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR, [NativeTypeName("const char *")] sbyte* Arch, [NativeTypeName("size_t")] UIntPtr ArchLen, [NativeTypeName("char **")] sbyte** ErrorMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileCopySectionIterator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileCopySectionIterator", ExactSpelling = true)] [return: NativeTypeName("LLVMSectionIteratorRef")] public static extern LLVMOpaqueSectionIterator* ObjectFileCopySectionIterator([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileIsSectionIteratorAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileIsSectionIteratorAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ObjectFileIsSectionIteratorAtEnd([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR, [NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileCopySymbolIterator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileCopySymbolIterator", ExactSpelling = true)] [return: NativeTypeName("LLVMSymbolIteratorRef")] public static extern LLVMOpaqueSymbolIterator* ObjectFileCopySymbolIterator([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileIsSymbolIteratorAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMObjectFileIsSymbolIteratorAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int ObjectFileIsSymbolIteratorAtEnd([NativeTypeName("LLVMBinaryRef")] LLVMOpaqueBinary* BR, [NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeSectionIterator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeSectionIterator", ExactSpelling = true)] public static extern void DisposeSectionIterator([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToNextSection", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToNextSection", ExactSpelling = true)] public static extern void MoveToNextSection([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToContainingSection", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToContainingSection", ExactSpelling = true)] public static extern void MoveToContainingSection([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* Sect, [NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* Sym); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeSymbolIterator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeSymbolIterator", ExactSpelling = true)] public static extern void DisposeSymbolIterator([NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToNextSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToNextSymbol", ExactSpelling = true)] public static extern void MoveToNextSymbol([NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetSectionName([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionSize", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetSectionSize([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionContents", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionContents", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetSectionContents([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionAddress", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetSectionAddress([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionContainsSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSectionContainsSymbol", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetSectionContainsSymbol([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI, [NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* Sym); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocations", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocations", ExactSpelling = true)] [return: NativeTypeName("LLVMRelocationIteratorRef")] public static extern LLVMOpaqueRelocationIterator* GetRelocations([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* Section); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeRelocationIterator", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeRelocationIterator", ExactSpelling = true)] public static extern void DisposeRelocationIterator([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsRelocationIteratorAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsRelocationIteratorAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsRelocationIteratorAtEnd([NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* Section, [NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToNextRelocation", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMMoveToNextRelocation", ExactSpelling = true)] public static extern void MoveToNextRelocation([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbolName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbolName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetSymbolName([NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbolAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbolAddress", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetSymbolAddress([NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbolSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbolSize", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetSymbolSize([NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationOffset", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationOffset", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetRelocationOffset([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationSymbol", ExactSpelling = true)] [return: NativeTypeName("LLVMSymbolIteratorRef")] public static extern LLVMOpaqueSymbolIterator* GetRelocationSymbol([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationType", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong GetRelocationType([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationTypeName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationTypeName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetRelocationTypeName([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationValueString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetRelocationValueString", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetRelocationValueString([NativeTypeName("LLVMRelocationIteratorRef")] LLVMOpaqueRelocationIterator* RI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateObjectFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateObjectFile", ExactSpelling = true)] [return: NativeTypeName("LLVMObjectFileRef")] public static extern LLVMOpaqueObjectFile* CreateObjectFile([NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* MemBuf); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeObjectFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeObjectFile", ExactSpelling = true)] public static extern void DisposeObjectFile([NativeTypeName("LLVMObjectFileRef")] LLVMOpaqueObjectFile* ObjectFile); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSections", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSections", ExactSpelling = true)] [return: NativeTypeName("LLVMSectionIteratorRef")] public static extern LLVMOpaqueSectionIterator* GetSections([NativeTypeName("LLVMObjectFileRef")] LLVMOpaqueObjectFile* ObjectFile); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsSectionIteratorAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsSectionIteratorAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsSectionIteratorAtEnd([NativeTypeName("LLVMObjectFileRef")] LLVMOpaqueObjectFile* ObjectFile, [NativeTypeName("LLVMSectionIteratorRef")] LLVMOpaqueSectionIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbols", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetSymbols", ExactSpelling = true)] [return: NativeTypeName("LLVMSymbolIteratorRef")] public static extern LLVMOpaqueSymbolIterator* GetSymbols([NativeTypeName("LLVMObjectFileRef")] LLVMOpaqueObjectFile* ObjectFile); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsSymbolIteratorAtEnd", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIsSymbolIteratorAtEnd", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int IsSymbolIteratorAtEnd([NativeTypeName("LLVMObjectFileRef")] LLVMOpaqueObjectFile* ObjectFile, [NativeTypeName("LLVMSymbolIteratorRef")] LLVMOpaqueSymbolIterator* SI); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateInstance", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcExecutionSessionIntern", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] + public static extern LLVMOrcQuaqueSymbolStringPoolEntryPtr* OrcExecutionSessionIntern([NativeTypeName("LLVMOrcExecutionSessionRef")] LLVMOrcOpaqueExecutionSession* ES, [NativeTypeName("const char *")] sbyte* Name); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcReleaseSymbolStringPoolEntry", ExactSpelling = true)] + public static extern void OrcReleaseSymbolStringPoolEntry([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcQuaqueSymbolStringPoolEntryPtr* S); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeJITDylibDefinitionGenerator", ExactSpelling = true)] + public static extern void OrcDisposeJITDylibDefinitionGenerator([NativeTypeName("LLVMOrcJITDylibDefinitionGeneratorRef")] LLVMOrcOpaqueJITDylibDefinitionGenerator* DG); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITDylibAddGenerator", ExactSpelling = true)] + public static extern void OrcJITDylibAddGenerator([NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcJITDylibDefinitionGeneratorRef")] LLVMOrcOpaqueJITDylibDefinitionGenerator* DG); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcCreateDynamicLibrarySearchGeneratorForProcess([NativeTypeName("LLVMOrcJITDylibDefinitionGeneratorRef *")] LLVMOrcOpaqueJITDylibDefinitionGenerator** Result, [NativeTypeName("char")] sbyte GlobalPrefx, [NativeTypeName("LLVMOrcSymbolPredicate")] IntPtr Filter, [NativeTypeName("void *")] void* FilterCtx); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateNewThreadSafeContext", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcThreadSafeContextRef")] + public static extern LLVMOrcOpaqueThreadSafeContext* OrcCreateNewThreadSafeContext(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcThreadSafeContextGetContext", ExactSpelling = true)] + [return: NativeTypeName("LLVMContextRef")] + public static extern LLVMOpaqueContext* OrcThreadSafeContextGetContext([NativeTypeName("LLVMOrcThreadSafeContextRef")] LLVMOrcOpaqueThreadSafeContext* TSCtx); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeThreadSafeContext", ExactSpelling = true)] + public static extern void OrcDisposeThreadSafeContext([NativeTypeName("LLVMOrcThreadSafeContextRef")] LLVMOrcOpaqueThreadSafeContext* TSCtx); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateNewThreadSafeModule", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcThreadSafeModuleRef")] + public static extern LLVMOrcOpaqueThreadSafeModule* OrcCreateNewThreadSafeModule([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("LLVMOrcThreadSafeContextRef")] LLVMOrcOpaqueThreadSafeContext* TSCtx); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeThreadSafeModule", ExactSpelling = true)] + public static extern void OrcDisposeThreadSafeModule([NativeTypeName("LLVMOrcThreadSafeModuleRef")] LLVMOrcOpaqueThreadSafeModule* TSM); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITTargetMachineBuilderDetectHost", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcJITTargetMachineBuilderDetectHost([NativeTypeName("LLVMOrcJITTargetMachineBuilderRef *")] LLVMOrcOpaqueJITTargetMachineBuilder** Result); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcJITTargetMachineBuilderRef")] + public static extern LLVMOrcOpaqueJITTargetMachineBuilder* OrcJITTargetMachineBuilderCreateFromTargetMachine([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* TM); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeJITTargetMachineBuilder", ExactSpelling = true)] + public static extern void OrcDisposeJITTargetMachineBuilder([NativeTypeName("LLVMOrcJITTargetMachineBuilderRef")] LLVMOrcOpaqueJITTargetMachineBuilder* JTMB); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLLJITBuilder", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcLLJITBuilderRef")] + public static extern LLVMOrcOpaqueLLJITBuilder* OrcCreateLLJITBuilder(); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeLLJITBuilder", ExactSpelling = true)] + public static extern void OrcDisposeLLJITBuilder([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITBuilderSetJITTargetMachineBuilder", ExactSpelling = true)] + public static extern void OrcLLJITBuilderSetJITTargetMachineBuilder([NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder, [NativeTypeName("LLVMOrcJITTargetMachineBuilderRef")] LLVMOrcOpaqueJITTargetMachineBuilder* JTMB); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLLJIT", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcCreateLLJIT([NativeTypeName("LLVMOrcLLJITRef *")] LLVMOrcOpaqueLLJIT** Result, [NativeTypeName("LLVMOrcLLJITBuilderRef")] LLVMOrcOpaqueLLJITBuilder* Builder); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeLLJIT", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcDisposeLLJIT([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetExecutionSession", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcExecutionSessionRef")] + public static extern LLVMOrcOpaqueExecutionSession* OrcLLJITGetExecutionSession([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetMainJITDylib", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcJITDylibRef")] + public static extern LLVMOrcOpaqueJITDylib* OrcLLJITGetMainJITDylib([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetTripleString", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* OrcLLJITGetTripleString([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITGetGlobalPrefix", ExactSpelling = true)] + [return: NativeTypeName("char")] + public static extern sbyte OrcLLJITGetGlobalPrefix([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITMangleAndIntern", ExactSpelling = true)] + [return: NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] + public static extern LLVMOrcQuaqueSymbolStringPoolEntryPtr* OrcLLJITMangleAndIntern([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("const char *")] sbyte* UnmangledName); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddObjectFile", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITAddObjectFile([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* ObjBuffer); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITAddLLVMIRModule", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITAddLLVMIRModule([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITDylibRef")] LLVMOrcOpaqueJITDylib* JD, [NativeTypeName("LLVMOrcThreadSafeModuleRef")] LLVMOrcOpaqueThreadSafeModule* TSM); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcLLJITLookup", ExactSpelling = true)] + [return: NativeTypeName("LLVMErrorRef")] + public static extern LLVMOpaqueError* OrcLLJITLookup([NativeTypeName("LLVMOrcLLJITRef")] LLVMOrcOpaqueLLJIT* J, [NativeTypeName("LLVMOrcJITTargetAddress *")] ulong* Result, [NativeTypeName("const char *")] sbyte* Name); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateInstance", ExactSpelling = true)] [return: NativeTypeName("LLVMOrcJITStackRef")] public static extern LLVMOrcOpaqueJITStack* OrcCreateInstance([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* TM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetErrorMsg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetErrorMsg", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* OrcGetErrorMsg([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetMangledSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetMangledSymbol", ExactSpelling = true)] public static extern void OrcGetMangledSymbol([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("char **")] sbyte** MangledSymbol, [NativeTypeName("const char *")] sbyte* Symbol); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeMangledSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeMangledSymbol", ExactSpelling = true)] public static extern void OrcDisposeMangledSymbol([NativeTypeName("char *")] sbyte* MangledSymbol); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLazyCompileCallback", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateLazyCompileCallback", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcCreateLazyCompileCallback([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcTargetAddress *")] ulong* RetAddr, [NativeTypeName("LLVMOrcLazyCompileCallbackFn")] IntPtr Callback, [NativeTypeName("void *")] void* CallbackCtx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateIndirectStub", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcCreateIndirectStub", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcCreateIndirectStub([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("const char *")] sbyte* StubName, [NativeTypeName("LLVMOrcTargetAddress")] ulong InitAddr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcSetIndirectStubPointer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcSetIndirectStubPointer", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcSetIndirectStubPointer([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("const char *")] sbyte* StubName, [NativeTypeName("LLVMOrcTargetAddress")] ulong NewAddr); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddEagerlyCompiledIR", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddEagerlyCompiledIR", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcAddEagerlyCompiledIR([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle *")] ulong* RetHandle, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Mod, [NativeTypeName("LLVMOrcSymbolResolverFn")] IntPtr SymbolResolver, [NativeTypeName("void *")] void* SymbolResolverCtx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddLazilyCompiledIR", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddLazilyCompiledIR", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcAddLazilyCompiledIR([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle *")] ulong* RetHandle, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* Mod, [NativeTypeName("LLVMOrcSymbolResolverFn")] IntPtr SymbolResolver, [NativeTypeName("void *")] void* SymbolResolverCtx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddObjectFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcAddObjectFile", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcAddObjectFile([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle *")] ulong* RetHandle, [NativeTypeName("LLVMMemoryBufferRef")] LLVMOpaqueMemoryBuffer* Obj, [NativeTypeName("LLVMOrcSymbolResolverFn")] IntPtr SymbolResolver, [NativeTypeName("void *")] void* SymbolResolverCtx); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRemoveModule", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRemoveModule", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcRemoveModule([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcModuleHandle")] ulong H); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetSymbolAddress", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetSymbolAddress", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcGetSymbolAddress([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcTargetAddress *")] ulong* RetAddr, [NativeTypeName("const char *")] sbyte* SymbolName); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetSymbolAddressIn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcGetSymbolAddressIn", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcGetSymbolAddressIn([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMOrcTargetAddress *")] ulong* RetAddr, [NativeTypeName("LLVMOrcModuleHandle")] ulong H, [NativeTypeName("const char *")] sbyte* SymbolName); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeInstance", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcDisposeInstance", ExactSpelling = true)] [return: NativeTypeName("LLVMErrorRef")] public static extern LLVMOpaqueError* OrcDisposeInstance([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRegisterJITEventListener", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcRegisterJITEventListener", ExactSpelling = true)] public static extern void OrcRegisterJITEventListener([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMJITEventListenerRef")] LLVMOpaqueJITEventListener* L); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcUnregisterJITEventListener", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOrcUnregisterJITEventListener", ExactSpelling = true)] public static extern void OrcUnregisterJITEventListener([NativeTypeName("LLVMOrcJITStackRef")] LLVMOrcOpaqueJITStack* JITStack, [NativeTypeName("LLVMJITEventListenerRef")] LLVMOpaqueJITEventListener* L); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkStringGetData", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkStringGetData", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* RemarkStringGetData([NativeTypeName("LLVMRemarkStringRef")] LLVMRemarkOpaqueString* String); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkStringGetLen", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkStringGetLen", ExactSpelling = true)] [return: NativeTypeName("uint32_t")] public static extern uint RemarkStringGetLen([NativeTypeName("LLVMRemarkStringRef")] LLVMRemarkOpaqueString* String); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkDebugLocGetSourceFilePath", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkDebugLocGetSourceFilePath", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkStringRef")] public static extern LLVMRemarkOpaqueString* RemarkDebugLocGetSourceFilePath([NativeTypeName("LLVMRemarkDebugLocRef")] LLVMRemarkOpaqueDebugLoc* DL); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkDebugLocGetSourceLine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkDebugLocGetSourceLine", ExactSpelling = true)] [return: NativeTypeName("uint32_t")] public static extern uint RemarkDebugLocGetSourceLine([NativeTypeName("LLVMRemarkDebugLocRef")] LLVMRemarkOpaqueDebugLoc* DL); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkDebugLocGetSourceColumn", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkDebugLocGetSourceColumn", ExactSpelling = true)] [return: NativeTypeName("uint32_t")] public static extern uint RemarkDebugLocGetSourceColumn([NativeTypeName("LLVMRemarkDebugLocRef")] LLVMRemarkOpaqueDebugLoc* DL); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkArgGetKey", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkArgGetKey", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkStringRef")] public static extern LLVMRemarkOpaqueString* RemarkArgGetKey([NativeTypeName("LLVMRemarkArgRef")] LLVMRemarkOpaqueArg* Arg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkArgGetValue", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkArgGetValue", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkStringRef")] public static extern LLVMRemarkOpaqueString* RemarkArgGetValue([NativeTypeName("LLVMRemarkArgRef")] LLVMRemarkOpaqueArg* Arg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkArgGetDebugLoc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkArgGetDebugLoc", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkDebugLocRef")] public static extern LLVMRemarkOpaqueDebugLoc* RemarkArgGetDebugLoc([NativeTypeName("LLVMRemarkArgRef")] LLVMRemarkOpaqueArg* Arg); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryDispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryDispose", ExactSpelling = true)] public static extern void RemarkEntryDispose([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetType", ExactSpelling = true)] [return: NativeTypeName("enum LLVMRemarkType")] public static extern LLVMRemarkType RemarkEntryGetType([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetPassName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetPassName", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkStringRef")] public static extern LLVMRemarkOpaqueString* RemarkEntryGetPassName([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetRemarkName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetRemarkName", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkStringRef")] public static extern LLVMRemarkOpaqueString* RemarkEntryGetRemarkName([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetFunctionName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetFunctionName", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkStringRef")] public static extern LLVMRemarkOpaqueString* RemarkEntryGetFunctionName([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetDebugLoc", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetDebugLoc", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkDebugLocRef")] public static extern LLVMRemarkOpaqueDebugLoc* RemarkEntryGetDebugLoc([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetHotness", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetHotness", ExactSpelling = true)] [return: NativeTypeName("uint64_t")] public static extern ulong RemarkEntryGetHotness([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetNumArgs", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetNumArgs", ExactSpelling = true)] [return: NativeTypeName("uint32_t")] public static extern uint RemarkEntryGetNumArgs([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetFirstArg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetFirstArg", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkArgRef")] public static extern LLVMRemarkOpaqueArg* RemarkEntryGetFirstArg([NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetNextArg", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkEntryGetNextArg", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkArgRef")] public static extern LLVMRemarkOpaqueArg* RemarkEntryGetNextArg([NativeTypeName("LLVMRemarkArgRef")] LLVMRemarkOpaqueArg* It, [NativeTypeName("LLVMRemarkEntryRef")] LLVMRemarkOpaqueEntry* Remark); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserCreateYAML", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserCreateYAML", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkParserRef")] public static extern LLVMRemarkOpaqueParser* RemarkParserCreateYAML([NativeTypeName("const void *")] void* Buf, [NativeTypeName("uint64_t")] ulong Size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserCreateBitstream", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserCreateBitstream", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkParserRef")] public static extern LLVMRemarkOpaqueParser* RemarkParserCreateBitstream([NativeTypeName("const void *")] void* Buf, [NativeTypeName("uint64_t")] ulong Size); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserGetNext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserGetNext", ExactSpelling = true)] [return: NativeTypeName("LLVMRemarkEntryRef")] public static extern LLVMRemarkOpaqueEntry* RemarkParserGetNext([NativeTypeName("LLVMRemarkParserRef")] LLVMRemarkOpaqueParser* Parser); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserHasError", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserHasError", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int RemarkParserHasError([NativeTypeName("LLVMRemarkParserRef")] LLVMRemarkOpaqueParser* Parser); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserGetErrorMessage", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserGetErrorMessage", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* RemarkParserGetErrorMessage([NativeTypeName("LLVMRemarkParserRef")] LLVMRemarkOpaqueParser* Parser); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserDispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkParserDispose", ExactSpelling = true)] public static extern void RemarkParserDispose([NativeTypeName("LLVMRemarkParserRef")] LLVMRemarkOpaqueParser* Parser); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkVersion", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMRemarkVersion", ExactSpelling = true)] [return: NativeTypeName("uint32_t")] public static extern uint RemarkVersion(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLoadLibraryPermanently", ExactSpelling = true)] + [NativeTypeName("#define REMARKS_API_VERSION 1")] + public const int REMARKS_API_VERSION = 1; + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMLoadLibraryPermanently", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int LoadLibraryPermanently([NativeTypeName("const char *")] sbyte* Filename); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseCommandLineOptions", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMParseCommandLineOptions", ExactSpelling = true)] public static extern void ParseCommandLineOptions(int argc, [NativeTypeName("const char *const *")] sbyte** argv, [NativeTypeName("const char *")] sbyte* Overview); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSearchForAddressOfSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSearchForAddressOfSymbol", ExactSpelling = true)] [return: NativeTypeName("void *")] public static extern void* SearchForAddressOfSymbol([NativeTypeName("const char *")] sbyte* symbolName); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSymbol", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSymbol", ExactSpelling = true)] public static extern void AddSymbol([NativeTypeName("const char *")] sbyte* symbolName, [NativeTypeName("void *")] void* symbolValue); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64TargetInfo", ExactSpelling = true)] - public static extern void InitializeAArch64TargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUTargetInfo", ExactSpelling = true)] - public static extern void InitializeAMDGPUTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMTargetInfo", ExactSpelling = true)] - public static extern void InitializeARMTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFTargetInfo", ExactSpelling = true)] - public static extern void InitializeBPFTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonTargetInfo", ExactSpelling = true)] - public static extern void InitializeHexagonTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiTargetInfo", ExactSpelling = true)] - public static extern void InitializeLanaiTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsTargetInfo", ExactSpelling = true)] - public static extern void InitializeMipsTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430TargetInfo", ExactSpelling = true)] - public static extern void InitializeMSP430TargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXTargetInfo", ExactSpelling = true)] - public static extern void InitializeNVPTXTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCTargetInfo", ExactSpelling = true)] - public static extern void InitializePowerPCTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVTargetInfo", ExactSpelling = true)] - public static extern void InitializeRISCVTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetInfo", ExactSpelling = true)] - public static extern void InitializeSparcTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTargetInfo", ExactSpelling = true)] - public static extern void InitializeSystemZTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyTargetInfo", ExactSpelling = true)] - public static extern void InitializeWebAssemblyTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86TargetInfo", ExactSpelling = true)] - public static extern void InitializeX86TargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreTargetInfo", ExactSpelling = true)] - public static extern void InitializeXCoreTargetInfo(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64Target", ExactSpelling = true)] - public static extern void InitializeAArch64Target(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUTarget", ExactSpelling = true)] - public static extern void InitializeAMDGPUTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMTarget", ExactSpelling = true)] - public static extern void InitializeARMTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFTarget", ExactSpelling = true)] - public static extern void InitializeBPFTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonTarget", ExactSpelling = true)] - public static extern void InitializeHexagonTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiTarget", ExactSpelling = true)] - public static extern void InitializeLanaiTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsTarget", ExactSpelling = true)] - public static extern void InitializeMipsTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430Target", ExactSpelling = true)] - public static extern void InitializeMSP430Target(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXTarget", ExactSpelling = true)] - public static extern void InitializeNVPTXTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCTarget", ExactSpelling = true)] - public static extern void InitializePowerPCTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVTarget", ExactSpelling = true)] - public static extern void InitializeRISCVTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTarget", ExactSpelling = true)] - public static extern void InitializeSparcTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTarget", ExactSpelling = true)] - public static extern void InitializeSystemZTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyTarget", ExactSpelling = true)] - public static extern void InitializeWebAssemblyTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86Target", ExactSpelling = true)] - public static extern void InitializeX86Target(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreTarget", ExactSpelling = true)] - public static extern void InitializeXCoreTarget(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64TargetMC", ExactSpelling = true)] - public static extern void InitializeAArch64TargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUTargetMC", ExactSpelling = true)] - public static extern void InitializeAMDGPUTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMTargetMC", ExactSpelling = true)] - public static extern void InitializeARMTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFTargetMC", ExactSpelling = true)] - public static extern void InitializeBPFTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonTargetMC", ExactSpelling = true)] - public static extern void InitializeHexagonTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiTargetMC", ExactSpelling = true)] - public static extern void InitializeLanaiTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsTargetMC", ExactSpelling = true)] - public static extern void InitializeMipsTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430TargetMC", ExactSpelling = true)] - public static extern void InitializeMSP430TargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXTargetMC", ExactSpelling = true)] - public static extern void InitializeNVPTXTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCTargetMC", ExactSpelling = true)] - public static extern void InitializePowerPCTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVTargetMC", ExactSpelling = true)] - public static extern void InitializeRISCVTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcTargetMC", ExactSpelling = true)] - public static extern void InitializeSparcTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZTargetMC", ExactSpelling = true)] - public static extern void InitializeSystemZTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyTargetMC", ExactSpelling = true)] - public static extern void InitializeWebAssemblyTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86TargetMC", ExactSpelling = true)] - public static extern void InitializeX86TargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreTargetMC", ExactSpelling = true)] - public static extern void InitializeXCoreTargetMC(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64AsmPrinter", ExactSpelling = true)] - public static extern void InitializeAArch64AsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUAsmPrinter", ExactSpelling = true)] - public static extern void InitializeAMDGPUAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMAsmPrinter", ExactSpelling = true)] - public static extern void InitializeARMAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFAsmPrinter", ExactSpelling = true)] - public static extern void InitializeBPFAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonAsmPrinter", ExactSpelling = true)] - public static extern void InitializeHexagonAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiAsmPrinter", ExactSpelling = true)] - public static extern void InitializeLanaiAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsAsmPrinter", ExactSpelling = true)] - public static extern void InitializeMipsAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430AsmPrinter", ExactSpelling = true)] - public static extern void InitializeMSP430AsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeNVPTXAsmPrinter", ExactSpelling = true)] - public static extern void InitializeNVPTXAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCAsmPrinter", ExactSpelling = true)] - public static extern void InitializePowerPCAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVAsmPrinter", ExactSpelling = true)] - public static extern void InitializeRISCVAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcAsmPrinter", ExactSpelling = true)] - public static extern void InitializeSparcAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZAsmPrinter", ExactSpelling = true)] - public static extern void InitializeSystemZAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyAsmPrinter", ExactSpelling = true)] - public static extern void InitializeWebAssemblyAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86AsmPrinter", ExactSpelling = true)] - public static extern void InitializeX86AsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreAsmPrinter", ExactSpelling = true)] - public static extern void InitializeXCoreAsmPrinter(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64AsmParser", ExactSpelling = true)] - public static extern void InitializeAArch64AsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUAsmParser", ExactSpelling = true)] - public static extern void InitializeAMDGPUAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMAsmParser", ExactSpelling = true)] - public static extern void InitializeARMAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFAsmParser", ExactSpelling = true)] - public static extern void InitializeBPFAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonAsmParser", ExactSpelling = true)] - public static extern void InitializeHexagonAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiAsmParser", ExactSpelling = true)] - public static extern void InitializeLanaiAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsAsmParser", ExactSpelling = true)] - public static extern void InitializeMipsAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430AsmParser", ExactSpelling = true)] - public static extern void InitializeMSP430AsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCAsmParser", ExactSpelling = true)] - public static extern void InitializePowerPCAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVAsmParser", ExactSpelling = true)] - public static extern void InitializeRISCVAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcAsmParser", ExactSpelling = true)] - public static extern void InitializeSparcAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZAsmParser", ExactSpelling = true)] - public static extern void InitializeSystemZAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyAsmParser", ExactSpelling = true)] - public static extern void InitializeWebAssemblyAsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86AsmParser", ExactSpelling = true)] - public static extern void InitializeX86AsmParser(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAArch64Disassembler", ExactSpelling = true)] - public static extern void InitializeAArch64Disassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeAMDGPUDisassembler", ExactSpelling = true)] - public static extern void InitializeAMDGPUDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeARMDisassembler", ExactSpelling = true)] - public static extern void InitializeARMDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeBPFDisassembler", ExactSpelling = true)] - public static extern void InitializeBPFDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeHexagonDisassembler", ExactSpelling = true)] - public static extern void InitializeHexagonDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeLanaiDisassembler", ExactSpelling = true)] - public static extern void InitializeLanaiDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMipsDisassembler", ExactSpelling = true)] - public static extern void InitializeMipsDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeMSP430Disassembler", ExactSpelling = true)] - public static extern void InitializeMSP430Disassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializePowerPCDisassembler", ExactSpelling = true)] - public static extern void InitializePowerPCDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeRISCVDisassembler", ExactSpelling = true)] - public static extern void InitializeRISCVDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSparcDisassembler", ExactSpelling = true)] - public static extern void InitializeSparcDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeSystemZDisassembler", ExactSpelling = true)] - public static extern void InitializeSystemZDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeWebAssemblyDisassembler", ExactSpelling = true)] - public static extern void InitializeWebAssemblyDisassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeX86Disassembler", ExactSpelling = true)] - public static extern void InitializeX86Disassembler(); - - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMInitializeXCoreDisassembler", ExactSpelling = true)] - public static extern void InitializeXCoreDisassembler(); - public static void InitializeAllTargetInfos() { InitializeAArch64TargetInfo(); InitializeAMDGPUTargetInfo(); InitializeARMTargetInfo(); + InitializeAVRTargetInfo(); InitializeBPFTargetInfo(); InitializeHexagonTargetInfo(); InitializeLanaiTargetInfo(); @@ -4191,6 +4171,7 @@ public static void InitializeAllTargets() InitializeAArch64Target(); InitializeAMDGPUTarget(); InitializeARMTarget(); + InitializeAVRTarget(); InitializeBPFTarget(); InitializeHexagonTarget(); InitializeLanaiTarget(); @@ -4211,6 +4192,7 @@ public static void InitializeAllTargetMCs() InitializeAArch64TargetMC(); InitializeAMDGPUTargetMC(); InitializeARMTargetMC(); + InitializeAVRTargetMC(); InitializeBPFTargetMC(); InitializeHexagonTargetMC(); InitializeLanaiTargetMC(); @@ -4231,6 +4213,7 @@ public static void InitializeAllAsmPrinters() InitializeAArch64AsmPrinter(); InitializeAMDGPUAsmPrinter(); InitializeARMAsmPrinter(); + InitializeAVRAsmPrinter(); InitializeBPFAsmPrinter(); InitializeHexagonAsmPrinter(); InitializeLanaiAsmPrinter(); @@ -4251,6 +4234,7 @@ public static void InitializeAllAsmParsers() InitializeAArch64AsmParser(); InitializeAMDGPUAsmParser(); InitializeARMAsmParser(); + InitializeAVRAsmParser(); InitializeBPFAsmParser(); InitializeHexagonAsmParser(); InitializeLanaiAsmParser(); @@ -4269,6 +4253,7 @@ public static void InitializeAllDisassemblers() InitializeAArch64Disassembler(); InitializeAMDGPUDisassembler(); InitializeARMDisassembler(); + InitializeAVRDisassembler(); InitializeBPFDisassembler(); InitializeHexagonDisassembler(); InitializeLanaiDisassembler(); @@ -4313,426 +4298,429 @@ public static int InitializeNativeDisassembler() return 0; } - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleDataLayout", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetModuleDataLayout", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetDataRef")] public static extern LLVMOpaqueTargetData* GetModuleDataLayout([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleDataLayout", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetModuleDataLayout", ExactSpelling = true)] public static extern void SetModuleDataLayout([NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* DL); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateTargetData", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateTargetData", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetDataRef")] public static extern LLVMOpaqueTargetData* CreateTargetData([NativeTypeName("const char *")] sbyte* StringRep); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeTargetData", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeTargetData", ExactSpelling = true)] public static extern void DisposeTargetData([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTargetLibraryInfo", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTargetLibraryInfo", ExactSpelling = true)] public static extern void AddTargetLibraryInfo([NativeTypeName("LLVMTargetLibraryInfoRef")] LLVMOpaqueTargetLibraryInfotData* TLI, [NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCopyStringRepOfTargetData", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCopyStringRepOfTargetData", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* CopyStringRepOfTargetData([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMByteOrder", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMByteOrder", ExactSpelling = true)] [return: NativeTypeName("enum LLVMByteOrdering")] public static extern LLVMByteOrdering ByteOrder([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPointerSize", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPointerSize", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint PointerSize([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPointerSizeForAS", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPointerSizeForAS", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint PointerSizeForAS([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("unsigned int")] uint AS); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrType", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntPtrType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeForAS", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeForAS", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntPtrTypeForAS([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("unsigned int")] uint AS); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntPtrTypeInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeForASInContext", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMIntPtrTypeForASInContext", ExactSpelling = true)] [return: NativeTypeName("LLVMTypeRef")] public static extern LLVMOpaqueType* IntPtrTypeForASInContext([NativeTypeName("LLVMContextRef")] LLVMOpaqueContext* C, [NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("unsigned int")] uint AS); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSizeOfTypeInBits", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSizeOfTypeInBits", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] public static extern ulong SizeOfTypeInBits([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStoreSizeOfType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMStoreSizeOfType", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] public static extern ulong StoreSizeOfType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMABISizeOfType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMABISizeOfType", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] public static extern ulong ABISizeOfType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMABIAlignmentOfType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMABIAlignmentOfType", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint ABIAlignmentOfType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCallFrameAlignmentOfType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCallFrameAlignmentOfType", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint CallFrameAlignmentOfType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPreferredAlignmentOfType", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPreferredAlignmentOfType", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint PreferredAlignmentOfType([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* Ty); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPreferredAlignmentOfGlobal", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPreferredAlignmentOfGlobal", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint PreferredAlignmentOfGlobal([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMValueRef")] LLVMOpaqueValue* GlobalVar); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMElementAtOffset", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMElementAtOffset", ExactSpelling = true)] [return: NativeTypeName("unsigned int")] public static extern uint ElementAtOffset([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy, [NativeTypeName("unsigned long long")] ulong Offset); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOffsetOfElement", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMOffsetOfElement", ExactSpelling = true)] [return: NativeTypeName("unsigned long long")] public static extern ulong OffsetOfElement([NativeTypeName("LLVMTargetDataRef")] LLVMOpaqueTargetData* TD, [NativeTypeName("LLVMTypeRef")] LLVMOpaqueType* StructTy, [NativeTypeName("unsigned int")] uint Element); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstTarget", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetFirstTarget", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetRef")] public static extern LLVMTarget* GetFirstTarget(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextTarget", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetNextTarget", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetRef")] public static extern LLVMTarget* GetNextTarget([NativeTypeName("LLVMTargetRef")] LLVMTarget* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetFromName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetFromName", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetRef")] public static extern LLVMTarget* GetTargetFromName([NativeTypeName("const char *")] sbyte* Name); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetFromTriple", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetFromTriple", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int GetTargetFromTriple([NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("LLVMTargetRef *")] LLVMTarget** T, [NativeTypeName("char **")] sbyte** ErrorMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetName", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetTargetName([NativeTypeName("LLVMTargetRef")] LLVMTarget* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetDescription", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetDescription", ExactSpelling = true)] [return: NativeTypeName("const char *")] public static extern sbyte* GetTargetDescription([NativeTypeName("LLVMTargetRef")] LLVMTarget* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetHasJIT", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetHasJIT", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int TargetHasJIT([NativeTypeName("LLVMTargetRef")] LLVMTarget* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetHasTargetMachine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetHasTargetMachine", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int TargetHasTargetMachine([NativeTypeName("LLVMTargetRef")] LLVMTarget* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetHasAsmBackend", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetHasAsmBackend", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int TargetHasAsmBackend([NativeTypeName("LLVMTargetRef")] LLVMTarget* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateTargetMachine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateTargetMachine", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetMachineRef")] public static extern LLVMOpaqueTargetMachine* CreateTargetMachine([NativeTypeName("LLVMTargetRef")] LLVMTarget* T, [NativeTypeName("const char *")] sbyte* Triple, [NativeTypeName("const char *")] sbyte* CPU, [NativeTypeName("const char *")] sbyte* Features, LLVMCodeGenOptLevel Level, LLVMRelocMode Reloc, LLVMCodeModel CodeModel); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeTargetMachine", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMDisposeTargetMachine", ExactSpelling = true)] public static extern void DisposeTargetMachine([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineTarget", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineTarget", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetRef")] public static extern LLVMTarget* GetTargetMachineTarget([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineTriple", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineTriple", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetTargetMachineTriple([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineCPU", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineCPU", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetTargetMachineCPU([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineFeatureString", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetTargetMachineFeatureString", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetTargetMachineFeatureString([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateTargetDataLayout", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMCreateTargetDataLayout", ExactSpelling = true)] [return: NativeTypeName("LLVMTargetDataRef")] public static extern LLVMOpaqueTargetData* CreateTargetDataLayout([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetTargetMachineAsmVerbosity", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMSetTargetMachineAsmVerbosity", ExactSpelling = true)] public static extern void SetTargetMachineAsmVerbosity([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T, [NativeTypeName("LLVMBool")] int VerboseAsm); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetMachineEmitToFile", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetMachineEmitToFile", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int TargetMachineEmitToFile([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, [NativeTypeName("char *")] sbyte* Filename, LLVMCodeGenFileType codegen, [NativeTypeName("char **")] sbyte** ErrorMessage); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetMachineEmitToMemoryBuffer", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMTargetMachineEmitToMemoryBuffer", ExactSpelling = true)] [return: NativeTypeName("LLVMBool")] public static extern int TargetMachineEmitToMemoryBuffer([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T, [NativeTypeName("LLVMModuleRef")] LLVMOpaqueModule* M, LLVMCodeGenFileType codegen, [NativeTypeName("char **")] sbyte** ErrorMessage, [NativeTypeName("LLVMMemoryBufferRef *")] LLVMOpaqueMemoryBuffer** OutMemBuf); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDefaultTargetTriple", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetDefaultTargetTriple", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetDefaultTargetTriple(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMNormalizeTargetTriple", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMNormalizeTargetTriple", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* NormalizeTargetTriple([NativeTypeName("const char *")] sbyte* triple); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetHostCPUName", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetHostCPUName", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetHostCPUName(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetHostCPUFeatures", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMGetHostCPUFeatures", ExactSpelling = true)] [return: NativeTypeName("char *")] public static extern sbyte* GetHostCPUFeatures(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAnalysisPasses", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAnalysisPasses", ExactSpelling = true)] public static extern void AddAnalysisPasses([NativeTypeName("LLVMTargetMachineRef")] LLVMOpaqueTargetMachine* T, [NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAggressiveInstCombinerPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAggressiveInstCombinerPass", ExactSpelling = true)] public static extern void AddAggressiveInstCombinerPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroEarlyPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroEarlyPass", ExactSpelling = true)] public static extern void AddCoroEarlyPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroSplitPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroSplitPass", ExactSpelling = true)] public static extern void AddCoroSplitPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroElidePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroElidePass", ExactSpelling = true)] public static extern void AddCoroElidePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroCleanupPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCoroCleanupPass", ExactSpelling = true)] public static extern void AddCoroCleanupPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInstructionCombiningPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderAddCoroutinePassesToExtensionPoints", ExactSpelling = true)] + public static extern void PassManagerBuilderAddCoroutinePassesToExtensionPoints([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB); + + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInstructionCombiningPass", ExactSpelling = true)] public static extern void AddInstructionCombiningPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddArgumentPromotionPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddArgumentPromotionPass", ExactSpelling = true)] public static extern void AddArgumentPromotionPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddConstantMergePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddConstantMergePass", ExactSpelling = true)] public static extern void AddConstantMergePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddMergeFunctionsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddMergeFunctionsPass", ExactSpelling = true)] public static extern void AddMergeFunctionsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCalledValuePropagationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCalledValuePropagationPass", ExactSpelling = true)] public static extern void AddCalledValuePropagationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDeadArgEliminationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDeadArgEliminationPass", ExactSpelling = true)] public static extern void AddDeadArgEliminationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddFunctionAttrsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddFunctionAttrsPass", ExactSpelling = true)] public static extern void AddFunctionAttrsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddFunctionInliningPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddFunctionInliningPass", ExactSpelling = true)] public static extern void AddFunctionInliningPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAlwaysInlinerPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAlwaysInlinerPass", ExactSpelling = true)] public static extern void AddAlwaysInlinerPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalDCEPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalDCEPass", ExactSpelling = true)] public static extern void AddGlobalDCEPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalOptimizerPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGlobalOptimizerPass", ExactSpelling = true)] public static extern void AddGlobalOptimizerPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIPConstantPropagationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIPConstantPropagationPass", ExactSpelling = true)] public static extern void AddIPConstantPropagationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPruneEHPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPruneEHPass", ExactSpelling = true)] public static extern void AddPruneEHPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIPSCCPPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIPSCCPPass", ExactSpelling = true)] public static extern void AddIPSCCPPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInternalizePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInternalizePass", ExactSpelling = true)] public static extern void AddInternalizePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* param0, [NativeTypeName("unsigned int")] uint AllButMain); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInternalizePassWithMustPreservePredicate", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddInternalizePassWithMustPreservePredicate", ExactSpelling = true)] public static extern void AddInternalizePassWithMustPreservePredicate([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM, [NativeTypeName("void *")] void* Context, [NativeTypeName("LLVMBool (*)(LLVMValueRef, void *)")] IntPtr MustPreserve); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddStripDeadPrototypesPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddStripDeadPrototypesPass", ExactSpelling = true)] public static extern void AddStripDeadPrototypesPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddStripSymbolsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddStripSymbolsPass", ExactSpelling = true)] public static extern void AddStripSymbolsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderCreate", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderCreate", ExactSpelling = true)] [return: NativeTypeName("LLVMPassManagerBuilderRef")] public static extern LLVMOpaquePassManagerBuilder* PassManagerBuilderCreate(); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderDispose", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderDispose", ExactSpelling = true)] public static extern void PassManagerBuilderDispose([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetOptLevel", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetOptLevel", ExactSpelling = true)] public static extern void PassManagerBuilderSetOptLevel([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("unsigned int")] uint OptLevel); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetSizeLevel", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetSizeLevel", ExactSpelling = true)] public static extern void PassManagerBuilderSetSizeLevel([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("unsigned int")] uint SizeLevel); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetDisableUnitAtATime", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetDisableUnitAtATime", ExactSpelling = true)] public static extern void PassManagerBuilderSetDisableUnitAtATime([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("LLVMBool")] int Value); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetDisableUnrollLoops", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetDisableUnrollLoops", ExactSpelling = true)] public static extern void PassManagerBuilderSetDisableUnrollLoops([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("LLVMBool")] int Value); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetDisableSimplifyLibCalls", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderSetDisableSimplifyLibCalls", ExactSpelling = true)] public static extern void PassManagerBuilderSetDisableSimplifyLibCalls([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("LLVMBool")] int Value); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderUseInlinerWithThreshold", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderUseInlinerWithThreshold", ExactSpelling = true)] public static extern void PassManagerBuilderUseInlinerWithThreshold([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("unsigned int")] uint Threshold); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderPopulateFunctionPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderPopulateFunctionPassManager", ExactSpelling = true)] public static extern void PassManagerBuilderPopulateFunctionPassManager([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderPopulateModulePassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderPopulateModulePassManager", ExactSpelling = true)] public static extern void PassManagerBuilderPopulateModulePassManager([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderPopulateLTOPassManager", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMPassManagerBuilderPopulateLTOPassManager", ExactSpelling = true)] public static extern void PassManagerBuilderPopulateLTOPassManager([NativeTypeName("LLVMPassManagerBuilderRef")] LLVMOpaquePassManagerBuilder* PMB, [NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM, [NativeTypeName("LLVMBool")] int Internalize, [NativeTypeName("LLVMBool")] int RunInliner); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAggressiveDCEPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAggressiveDCEPass", ExactSpelling = true)] public static extern void AddAggressiveDCEPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDCEPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDCEPass", ExactSpelling = true)] public static extern void AddDCEPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddBitTrackingDCEPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddBitTrackingDCEPass", ExactSpelling = true)] public static extern void AddBitTrackingDCEPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAlignmentFromAssumptionsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAlignmentFromAssumptionsPass", ExactSpelling = true)] public static extern void AddAlignmentFromAssumptionsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCFGSimplificationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCFGSimplificationPass", ExactSpelling = true)] public static extern void AddCFGSimplificationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDeadStoreEliminationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDeadStoreEliminationPass", ExactSpelling = true)] public static extern void AddDeadStoreEliminationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarizerPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarizerPass", ExactSpelling = true)] public static extern void AddScalarizerPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddMergedLoadStoreMotionPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddMergedLoadStoreMotionPass", ExactSpelling = true)] public static extern void AddMergedLoadStoreMotionPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGVNPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddGVNPass", ExactSpelling = true)] public static extern void AddGVNPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddNewGVNPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddNewGVNPass", ExactSpelling = true)] public static extern void AddNewGVNPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIndVarSimplifyPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddIndVarSimplifyPass", ExactSpelling = true)] public static extern void AddIndVarSimplifyPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddJumpThreadingPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddJumpThreadingPass", ExactSpelling = true)] public static extern void AddJumpThreadingPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLICMPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLICMPass", ExactSpelling = true)] public static extern void AddLICMPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopDeletionPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopDeletionPass", ExactSpelling = true)] public static extern void AddLoopDeletionPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopIdiomPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopIdiomPass", ExactSpelling = true)] public static extern void AddLoopIdiomPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopRotatePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopRotatePass", ExactSpelling = true)] public static extern void AddLoopRotatePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopRerollPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopRerollPass", ExactSpelling = true)] public static extern void AddLoopRerollPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopUnrollPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopUnrollPass", ExactSpelling = true)] public static extern void AddLoopUnrollPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopUnrollAndJamPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopUnrollAndJamPass", ExactSpelling = true)] public static extern void AddLoopUnrollAndJamPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopUnswitchPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopUnswitchPass", ExactSpelling = true)] public static extern void AddLoopUnswitchPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerAtomicPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerAtomicPass", ExactSpelling = true)] public static extern void AddLowerAtomicPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddMemCpyOptPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddMemCpyOptPass", ExactSpelling = true)] public static extern void AddMemCpyOptPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPartiallyInlineLibCallsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPartiallyInlineLibCallsPass", ExactSpelling = true)] public static extern void AddPartiallyInlineLibCallsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddReassociatePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddReassociatePass", ExactSpelling = true)] public static extern void AddReassociatePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSCCPPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSCCPPass", ExactSpelling = true)] public static extern void AddSCCPPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarReplAggregatesPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarReplAggregatesPass", ExactSpelling = true)] public static extern void AddScalarReplAggregatesPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarReplAggregatesPassSSA", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarReplAggregatesPassSSA", ExactSpelling = true)] public static extern void AddScalarReplAggregatesPassSSA([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarReplAggregatesPassWithThreshold", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScalarReplAggregatesPassWithThreshold", ExactSpelling = true)] public static extern void AddScalarReplAggregatesPassWithThreshold([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM, int Threshold); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSimplifyLibCallsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSimplifyLibCallsPass", ExactSpelling = true)] public static extern void AddSimplifyLibCallsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTailCallEliminationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTailCallEliminationPass", ExactSpelling = true)] public static extern void AddTailCallEliminationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddConstantPropagationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddConstantPropagationPass", ExactSpelling = true)] public static extern void AddConstantPropagationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDemoteMemoryToRegisterPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddDemoteMemoryToRegisterPass", ExactSpelling = true)] public static extern void AddDemoteMemoryToRegisterPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddVerifierPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddVerifierPass", ExactSpelling = true)] public static extern void AddVerifierPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCorrelatedValuePropagationPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddCorrelatedValuePropagationPass", ExactSpelling = true)] public static extern void AddCorrelatedValuePropagationPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddEarlyCSEPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddEarlyCSEPass", ExactSpelling = true)] public static extern void AddEarlyCSEPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddEarlyCSEMemSSAPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddEarlyCSEMemSSAPass", ExactSpelling = true)] public static extern void AddEarlyCSEMemSSAPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerExpectIntrinsicPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerExpectIntrinsicPass", ExactSpelling = true)] public static extern void AddLowerExpectIntrinsicPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerConstantIntrinsicsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerConstantIntrinsicsPass", ExactSpelling = true)] public static extern void AddLowerConstantIntrinsicsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTypeBasedAliasAnalysisPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddTypeBasedAliasAnalysisPass", ExactSpelling = true)] public static extern void AddTypeBasedAliasAnalysisPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScopedNoAliasAAPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddScopedNoAliasAAPass", ExactSpelling = true)] public static extern void AddScopedNoAliasAAPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddBasicAliasAnalysisPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddBasicAliasAnalysisPass", ExactSpelling = true)] public static extern void AddBasicAliasAnalysisPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddUnifyFunctionExitNodesPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddUnifyFunctionExitNodesPass", ExactSpelling = true)] public static extern void AddUnifyFunctionExitNodesPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerSwitchPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLowerSwitchPass", ExactSpelling = true)] public static extern void AddLowerSwitchPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPromoteMemoryToRegisterPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddPromoteMemoryToRegisterPass", ExactSpelling = true)] public static extern void AddPromoteMemoryToRegisterPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAddDiscriminatorsPass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddAddDiscriminatorsPass", ExactSpelling = true)] public static extern void AddAddDiscriminatorsPass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopVectorizePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddLoopVectorizePass", ExactSpelling = true)] public static extern void AddLoopVectorizePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); - [DllImport(LibraryPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSLPVectorizePass", ExactSpelling = true)] + [DllImport("libLLVM", CallingConvention = CallingConvention.Cdecl, EntryPoint = "LLVMAddSLPVectorizePass", ExactSpelling = true)] public static extern void AddSLPVectorizePass([NativeTypeName("LLVMPassManagerRef")] LLVMOpaquePassManager* PM); } } diff --git a/sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs b/sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs index eddf422f..a5ccadc9 100644 --- a/sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs +++ b/sources/LLVMSharp/Interop/LLVMAtomicOrdering.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs b/sources/LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs index ff54bc47..96dbf384 100644 --- a/sources/LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs +++ b/sources/LLVMSharp/Interop/LLVMAtomicRMWBinOp.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMBinaryType.cs b/sources/LLVMSharp/Interop/LLVMBinaryType.cs index 6354c9a4..67ef5323 100644 --- a/sources/LLVMSharp/Interop/LLVMBinaryType.cs +++ b/sources/LLVMSharp/Interop/LLVMBinaryType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMByteOrdering.cs b/sources/LLVMSharp/Interop/LLVMByteOrdering.cs index 14765199..35473587 100644 --- a/sources/LLVMSharp/Interop/LLVMByteOrdering.cs +++ b/sources/LLVMSharp/Interop/LLVMByteOrdering.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMCallConv.cs b/sources/LLVMSharp/Interop/LLVMCallConv.cs index da9b206f..6796a703 100644 --- a/sources/LLVMSharp/Interop/LLVMCallConv.cs +++ b/sources/LLVMSharp/Interop/LLVMCallConv.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMCodeGenFileType.cs b/sources/LLVMSharp/Interop/LLVMCodeGenFileType.cs index 1b1e9ecc..d88c315f 100644 --- a/sources/LLVMSharp/Interop/LLVMCodeGenFileType.cs +++ b/sources/LLVMSharp/Interop/LLVMCodeGenFileType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMCodeGenOptLevel.cs b/sources/LLVMSharp/Interop/LLVMCodeGenOptLevel.cs index 8eb98cd1..44899ea3 100644 --- a/sources/LLVMSharp/Interop/LLVMCodeGenOptLevel.cs +++ b/sources/LLVMSharp/Interop/LLVMCodeGenOptLevel.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMCodeModel.cs b/sources/LLVMSharp/Interop/LLVMCodeModel.cs index 874baba4..fc5d50d8 100644 --- a/sources/LLVMSharp/Interop/LLVMCodeModel.cs +++ b/sources/LLVMSharp/Interop/LLVMCodeModel.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMComdat.cs b/sources/LLVMSharp/Interop/LLVMComdat.cs index b9b29bcb..d74403fd 100644 --- a/sources/LLVMSharp/Interop/LLVMComdat.cs +++ b/sources/LLVMSharp/Interop/LLVMComdat.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMComdatSelectionKind.cs b/sources/LLVMSharp/Interop/LLVMComdatSelectionKind.cs index 2ebca29c..5cfac4aa 100644 --- a/sources/LLVMSharp/Interop/LLVMComdatSelectionKind.cs +++ b/sources/LLVMSharp/Interop/LLVMComdatSelectionKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMDIFlags.cs b/sources/LLVMSharp/Interop/LLVMDIFlags.cs index 3b2cd4c4..7cd3336c 100644 --- a/sources/LLVMSharp/Interop/LLVMDIFlags.cs +++ b/sources/LLVMSharp/Interop/LLVMDIFlags.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs b/sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs index 54aacb08..7e61d8c5 100644 --- a/sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs +++ b/sources/LLVMSharp/Interop/LLVMDLLStorageClass.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMDWARFEmissionKind.cs b/sources/LLVMSharp/Interop/LLVMDWARFEmissionKind.cs index 32795ef6..37e42e6b 100644 --- a/sources/LLVMSharp/Interop/LLVMDWARFEmissionKind.cs +++ b/sources/LLVMSharp/Interop/LLVMDWARFEmissionKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMDWARFMacinfoRecordType.cs b/sources/LLVMSharp/Interop/LLVMDWARFMacinfoRecordType.cs index dca8b572..233bda27 100644 --- a/sources/LLVMSharp/Interop/LLVMDWARFMacinfoRecordType.cs +++ b/sources/LLVMSharp/Interop/LLVMDWARFMacinfoRecordType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMDWARFSourceLanguage.cs b/sources/LLVMSharp/Interop/LLVMDWARFSourceLanguage.cs index f2eb8057..e9da4803 100644 --- a/sources/LLVMSharp/Interop/LLVMDWARFSourceLanguage.cs +++ b/sources/LLVMSharp/Interop/LLVMDWARFSourceLanguage.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMDiagnosticHandler.cs b/sources/LLVMSharp/Interop/LLVMDiagnosticHandler.cs index 176fc3f9..bf886daf 100644 --- a/sources/LLVMSharp/Interop/LLVMDiagnosticHandler.cs +++ b/sources/LLVMSharp/Interop/LLVMDiagnosticHandler.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs b/sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs index 7d961142..230c7430 100644 --- a/sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs +++ b/sources/LLVMSharp/Interop/LLVMDiagnosticSeverity.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMFatalErrorHandler.cs b/sources/LLVMSharp/Interop/LLVMFatalErrorHandler.cs index 7e1a2bd4..d5bab7e1 100644 --- a/sources/LLVMSharp/Interop/LLVMFatalErrorHandler.cs +++ b/sources/LLVMSharp/Interop/LLVMFatalErrorHandler.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMInlineAsmDialect.cs b/sources/LLVMSharp/Interop/LLVMInlineAsmDialect.cs index 089cb7d7..6f1ed524 100644 --- a/sources/LLVMSharp/Interop/LLVMInlineAsmDialect.cs +++ b/sources/LLVMSharp/Interop/LLVMInlineAsmDialect.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMIntPredicate.cs b/sources/LLVMSharp/Interop/LLVMIntPredicate.cs index f7a5e62f..6dfab392 100644 --- a/sources/LLVMSharp/Interop/LLVMIntPredicate.cs +++ b/sources/LLVMSharp/Interop/LLVMIntPredicate.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs b/sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs index 00367b92..faad99a0 100644 --- a/sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs +++ b/sources/LLVMSharp/Interop/LLVMLandingPadClauseTy.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMLinkage.cs b/sources/LLVMSharp/Interop/LLVMLinkage.cs index d9e36e0c..50c9438e 100644 --- a/sources/LLVMSharp/Interop/LLVMLinkage.cs +++ b/sources/LLVMSharp/Interop/LLVMLinkage.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMLinkerMode.cs b/sources/LLVMSharp/Interop/LLVMLinkerMode.cs index a0c7d35b..5640e3e6 100644 --- a/sources/LLVMSharp/Interop/LLVMLinkerMode.cs +++ b/sources/LLVMSharp/Interop/LLVMLinkerMode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMMCJITCompilerOptions.cs b/sources/LLVMSharp/Interop/LLVMMCJITCompilerOptions.cs index 28ec42d8..d324bf89 100644 --- a/sources/LLVMSharp/Interop/LLVMMCJITCompilerOptions.cs +++ b/sources/LLVMSharp/Interop/LLVMMCJITCompilerOptions.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs b/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs index 69f56802..98be0faa 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateCodeSectionCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs b/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs index 4f3758c4..868e9eb1 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMMemoryManagerAllocateDataSectionCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs b/sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs index f0e47d6a..1288826c 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMMemoryManagerDestroyCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs b/sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs index 1994041d..0a1e956f 100644 --- a/sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMMemoryManagerFinalizeMemoryCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs b/sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs index 894aff38..0e379471 100644 --- a/sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs +++ b/sources/LLVMSharp/Interop/LLVMModuleFlagBehavior.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpInfo1.cs b/sources/LLVMSharp/Interop/LLVMOpInfo1.cs index 41a3ad0a..56687076 100644 --- a/sources/LLVMSharp/Interop/LLVMOpInfo1.cs +++ b/sources/LLVMSharp/Interop/LLVMOpInfo1.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs b/sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs index 5bd6d1b6..83958308 100644 --- a/sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMOpInfoCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs b/sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs index 6c00fbd7..2b3df9a5 100644 --- a/sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs +++ b/sources/LLVMSharp/Interop/LLVMOpInfoSymbol1.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueAttributeRef.cs b/sources/LLVMSharp/Interop/LLVMOpaqueAttributeRef.cs index 5def7388..af743ff1 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueAttributeRef.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueAttributeRef.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs b/sources/LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs index b8927a06..dc821ed3 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueBasicBlock.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs b/sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs index 636b04b7..9bd98a35 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueBinary.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueBuilder.cs b/sources/LLVMSharp/Interop/LLVMOpaqueBuilder.cs index 1e78f313..a586f90e 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueBuilder.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueContext.cs b/sources/LLVMSharp/Interop/LLVMOpaqueContext.cs index 8b8ef075..89312c9e 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueContext.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueContext.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs b/sources/LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs index 722dca17..d99ba65a 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueDIBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueDiagnosticInfo.cs b/sources/LLVMSharp/Interop/LLVMOpaqueDiagnosticInfo.cs index bc0f7fda..dcaa22ae 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueDiagnosticInfo.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueDiagnosticInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueError.cs b/sources/LLVMSharp/Interop/LLVMOpaqueError.cs index 8772524e..2d731785 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueError.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueError.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueExecutionEngine.cs b/sources/LLVMSharp/Interop/LLVMOpaqueExecutionEngine.cs index a3ff5804..99e6bbb5 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueExecutionEngine.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueExecutionEngine.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueGenericValue.cs b/sources/LLVMSharp/Interop/LLVMOpaqueGenericValue.cs index 1eb818c9..a6bb6996 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueGenericValue.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueGenericValue.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueJITEventListener.cs b/sources/LLVMSharp/Interop/LLVMOpaqueJITEventListener.cs index 8c26b2a5..c7e1440c 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueJITEventListener.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueJITEventListener.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueLTOCodeGenerator.cs b/sources/LLVMSharp/Interop/LLVMOpaqueLTOCodeGenerator.cs index ea244f1f..4e23bacb 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueLTOCodeGenerator.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueLTOCodeGenerator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueLTOInput.cs b/sources/LLVMSharp/Interop/LLVMOpaqueLTOInput.cs index 21dca432..b2009c9a 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueLTOInput.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueLTOInput.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueLTOModule.cs b/sources/LLVMSharp/Interop/LLVMOpaqueLTOModule.cs index 5749dfd1..046e36ec 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueLTOModule.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueLTOModule.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueMCJITMemoryManager.cs b/sources/LLVMSharp/Interop/LLVMOpaqueMCJITMemoryManager.cs index 96024f50..08d08433 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueMCJITMemoryManager.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueMCJITMemoryManager.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueMemoryBuffer.cs b/sources/LLVMSharp/Interop/LLVMOpaqueMemoryBuffer.cs index 26c0a0bc..1a550bf4 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueMemoryBuffer.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueMemoryBuffer.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueMetadata.cs b/sources/LLVMSharp/Interop/LLVMOpaqueMetadata.cs index 785696af..67301b05 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueMetadata.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueMetadata.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueModule.cs b/sources/LLVMSharp/Interop/LLVMOpaqueModule.cs index c948a39a..2c577d3e 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueModule.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueModule.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueModuleFlagEntry.cs b/sources/LLVMSharp/Interop/LLVMOpaqueModuleFlagEntry.cs index 6c81fbb3..03e4c065 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueModuleFlagEntry.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueModuleFlagEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueModuleProvider.cs b/sources/LLVMSharp/Interop/LLVMOpaqueModuleProvider.cs index cf4891bb..d07f4a9e 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueModuleProvider.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueModuleProvider.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueNamedMDNode.cs b/sources/LLVMSharp/Interop/LLVMOpaqueNamedMDNode.cs index 3b7b6190..7b057832 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueNamedMDNode.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueNamedMDNode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueObjectFile.cs b/sources/LLVMSharp/Interop/LLVMOpaqueObjectFile.cs index f770c580..73303352 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueObjectFile.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueObjectFile.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaquePassManager.cs b/sources/LLVMSharp/Interop/LLVMOpaquePassManager.cs index 6f4dab9c..1233a19a 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaquePassManager.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaquePassManager.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaquePassManagerBuilder.cs b/sources/LLVMSharp/Interop/LLVMOpaquePassManagerBuilder.cs index ec610419..915cf35a 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaquePassManagerBuilder.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaquePassManagerBuilder.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaquePassRegistry.cs b/sources/LLVMSharp/Interop/LLVMOpaquePassRegistry.cs index fff62183..1ee44ded 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaquePassRegistry.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaquePassRegistry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueRelocationIterator.cs b/sources/LLVMSharp/Interop/LLVMOpaqueRelocationIterator.cs index cf0518f0..2b43e021 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueRelocationIterator.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueRelocationIterator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueSectionIterator.cs b/sources/LLVMSharp/Interop/LLVMOpaqueSectionIterator.cs index 753c311a..e5eccf84 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueSectionIterator.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueSectionIterator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueSymbolIterator.cs b/sources/LLVMSharp/Interop/LLVMOpaqueSymbolIterator.cs index 9d4f9f3c..4d473898 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueSymbolIterator.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueSymbolIterator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueTargetData.cs b/sources/LLVMSharp/Interop/LLVMOpaqueTargetData.cs index da6b769c..4e923701 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueTargetData.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueTargetData.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueTargetLibraryInfotData.cs b/sources/LLVMSharp/Interop/LLVMOpaqueTargetLibraryInfotData.cs index 7d7c6aab..69b64aae 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueTargetLibraryInfotData.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueTargetLibraryInfotData.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueTargetMachine.cs b/sources/LLVMSharp/Interop/LLVMOpaqueTargetMachine.cs index f19a7790..53008cc7 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueTargetMachine.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueTargetMachine.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueThinLTOCodeGenerator.cs b/sources/LLVMSharp/Interop/LLVMOpaqueThinLTOCodeGenerator.cs index f6b5191f..f5529454 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueThinLTOCodeGenerator.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueThinLTOCodeGenerator.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueType.cs b/sources/LLVMSharp/Interop/LLVMOpaqueType.cs index e232f47c..e62af0d8 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueType.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueUse.cs b/sources/LLVMSharp/Interop/LLVMOpaqueUse.cs index b4c9801c..1b7be533 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueUse.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueUse.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueValue.cs b/sources/LLVMSharp/Interop/LLVMOpaqueValue.cs index 1f79ba74..edd61894 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueValue.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueValue.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpaqueValueMetadataEntry.cs b/sources/LLVMSharp/Interop/LLVMOpaqueValueMetadataEntry.cs index 5b578cae..6ac38522 100644 --- a/sources/LLVMSharp/Interop/LLVMOpaqueValueMetadataEntry.cs +++ b/sources/LLVMSharp/Interop/LLVMOpaqueValueMetadataEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOpcode.cs b/sources/LLVMSharp/Interop/LLVMOpcode.cs index 936a3a8a..b078e16a 100644 --- a/sources/LLVMSharp/Interop/LLVMOpcode.cs +++ b/sources/LLVMSharp/Interop/LLVMOpcode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOrcLazyCompileCallbackFn.cs b/sources/LLVMSharp/Interop/LLVMOrcLazyCompileCallbackFn.cs index a400bc2c..935881bf 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcLazyCompileCallbackFn.cs +++ b/sources/LLVMSharp/Interop/LLVMOrcLazyCompileCallbackFn.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs new file mode 100644 index 00000000..a306c3bb --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueExecutionSession.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueExecutionSession + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylib.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylib.cs new file mode 100644 index 00000000..ad5affe3 --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylib.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueJITDylib + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs new file mode 100644 index 00000000..14c22a5e --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITDylibDefinitionGenerator.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueJITDylibDefinitionGenerator + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITStack.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITStack.cs index 42636af3..7c13fe6d 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITStack.cs +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITStack.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs new file mode 100644 index 00000000..c497b449 --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueJITTargetMachineBuilder.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueJITTargetMachineBuilder + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs new file mode 100644 index 00000000..70d65aaa --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJIT.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueLLJIT + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJITBuilder.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJITBuilder.cs new file mode 100644 index 00000000..7bd5b95b --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueLLJITBuilder.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueLLJITBuilder + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs new file mode 100644 index 00000000..ed38c20b --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeContext.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueThreadSafeContext + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeModule.cs b/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeModule.cs new file mode 100644 index 00000000..78cfbe51 --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcOpaqueThreadSafeModule.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcOpaqueThreadSafeModule + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs b/sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs new file mode 100644 index 00000000..94e7b91a --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtr.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +namespace LLVMSharp.Interop +{ + public partial struct LLVMOrcQuaqueSymbolStringPoolEntryPtr + { + } +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs b/sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs new file mode 100644 index 00000000..8eaecab6 --- /dev/null +++ b/sources/LLVMSharp/Interop/LLVMOrcSymbolPredicate.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop +{ + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate int LLVMOrcSymbolPredicate([NativeTypeName("LLVMOrcSymbolStringPoolEntryRef")] LLVMOrcQuaqueSymbolStringPoolEntryPtr* Sym, [NativeTypeName("void *")] void* Ctx); +} diff --git a/sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs b/sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs index 8966e8ca..98acc3de 100644 --- a/sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs +++ b/sources/LLVMSharp/Interop/LLVMOrcSymbolResolverFn.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMRealPredicate.cs b/sources/LLVMSharp/Interop/LLVMRealPredicate.cs index 810d9a20..cf54ec48 100644 --- a/sources/LLVMSharp/Interop/LLVMRealPredicate.cs +++ b/sources/LLVMSharp/Interop/LLVMRealPredicate.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRelocMode.cs b/sources/LLVMSharp/Interop/LLVMRelocMode.cs index 383b7951..0fe072f3 100644 --- a/sources/LLVMSharp/Interop/LLVMRelocMode.cs +++ b/sources/LLVMSharp/Interop/LLVMRelocMode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs index df322518..819c70d2 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs +++ b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueArg.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueDebugLoc.cs b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueDebugLoc.cs index cdb06f73..03c3678b 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueDebugLoc.cs +++ b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueDebugLoc.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueEntry.cs b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueEntry.cs index c827445f..1e16b271 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueEntry.cs +++ b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueEntry.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueParser.cs b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueParser.cs index c12b2840..f9f06c1a 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueParser.cs +++ b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueParser.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueString.cs b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueString.cs index 0537c3a2..e5f6e2f8 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkOpaqueString.cs +++ b/sources/LLVMSharp/Interop/LLVMRemarkOpaqueString.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMRemarkType.cs b/sources/LLVMSharp/Interop/LLVMRemarkType.cs index c4923861..547a5de6 100644 --- a/sources/LLVMSharp/Interop/LLVMRemarkType.cs +++ b/sources/LLVMSharp/Interop/LLVMRemarkType.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs b/sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs index bef548a1..617bd99b 100644 --- a/sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMSymbolLookupCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LLVMTarget.cs b/sources/LLVMSharp/Interop/LLVMTarget.cs index 3b8b30b5..cfc662fb 100644 --- a/sources/LLVMSharp/Interop/LLVMTarget.cs +++ b/sources/LLVMSharp/Interop/LLVMTarget.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMThreadLocalMode.cs b/sources/LLVMSharp/Interop/LLVMThreadLocalMode.cs index 205881dc..d0ff31ca 100644 --- a/sources/LLVMSharp/Interop/LLVMThreadLocalMode.cs +++ b/sources/LLVMSharp/Interop/LLVMThreadLocalMode.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMTypeKind.cs b/sources/LLVMSharp/Interop/LLVMTypeKind.cs index d5a2c411..e52e5736 100644 --- a/sources/LLVMSharp/Interop/LLVMTypeKind.cs +++ b/sources/LLVMSharp/Interop/LLVMTypeKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop @@ -24,5 +24,7 @@ public enum LLVMTypeKind LLVMMetadataTypeKind, LLVMX86_MMXTypeKind, LLVMTokenTypeKind, + LLVMScalableVectorTypeKind, + LLVMBFloatTypeKind, } } diff --git a/sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs b/sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs index 53a5218c..34d56087 100644 --- a/sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs +++ b/sources/LLVMSharp/Interop/LLVMUnnamedAddr.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMValueKind.cs b/sources/LLVMSharp/Interop/LLVMValueKind.cs index fe699d76..8a2276fd 100644 --- a/sources/LLVMSharp/Interop/LLVMValueKind.cs +++ b/sources/LLVMSharp/Interop/LLVMValueKind.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs b/sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs index 4c391425..5b458181 100644 --- a/sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs +++ b/sources/LLVMSharp/Interop/LLVMVerifierFailureAction.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMVisibility.cs b/sources/LLVMSharp/Interop/LLVMVisibility.cs index e8722a6a..5b5b4d0c 100644 --- a/sources/LLVMSharp/Interop/LLVMVisibility.cs +++ b/sources/LLVMSharp/Interop/LLVMVisibility.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/LLVMYieldCallback.cs b/sources/LLVMSharp/Interop/LLVMYieldCallback.cs index a5b8a1b9..cc7cabd7 100644 --- a/sources/LLVMSharp/Interop/LLVMYieldCallback.cs +++ b/sources/LLVMSharp/Interop/LLVMYieldCallback.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/LTOObjectBuffer.cs b/sources/LLVMSharp/Interop/LTOObjectBuffer.cs index 5623a959..f8ac2b40 100644 --- a/sources/LLVMSharp/Interop/LTOObjectBuffer.cs +++ b/sources/LLVMSharp/Interop/LTOObjectBuffer.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System; diff --git a/sources/LLVMSharp/Interop/llvm_lto_status.cs b/sources/LLVMSharp/Interop/llvm_lto_status.cs index 904d8af5..63709d29 100644 --- a/sources/LLVMSharp/Interop/llvm_lto_status.cs +++ b/sources/LLVMSharp/Interop/llvm_lto_status.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/lto_codegen_diagnostic_severity_t.cs b/sources/LLVMSharp/Interop/lto_codegen_diagnostic_severity_t.cs index f84bcbd9..23f8a305 100644 --- a/sources/LLVMSharp/Interop/lto_codegen_diagnostic_severity_t.cs +++ b/sources/LLVMSharp/Interop/lto_codegen_diagnostic_severity_t.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/lto_codegen_model.cs b/sources/LLVMSharp/Interop/lto_codegen_model.cs index f0eaa323..2812975d 100644 --- a/sources/LLVMSharp/Interop/lto_codegen_model.cs +++ b/sources/LLVMSharp/Interop/lto_codegen_model.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/lto_debug_model.cs b/sources/LLVMSharp/Interop/lto_debug_model.cs index 5851bd76..a104454f 100644 --- a/sources/LLVMSharp/Interop/lto_debug_model.cs +++ b/sources/LLVMSharp/Interop/lto_debug_model.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Interop/lto_diagnostic_handler_t.cs b/sources/LLVMSharp/Interop/lto_diagnostic_handler_t.cs index 8cbed36c..fa3b92b1 100644 --- a/sources/LLVMSharp/Interop/lto_diagnostic_handler_t.cs +++ b/sources/LLVMSharp/Interop/lto_diagnostic_handler_t.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. using System.Runtime.InteropServices; diff --git a/sources/LLVMSharp/Interop/lto_symbol_attributes.cs b/sources/LLVMSharp/Interop/lto_symbol_attributes.cs index bb2903d0..5aa00bec 100644 --- a/sources/LLVMSharp/Interop/lto_symbol_attributes.cs +++ b/sources/LLVMSharp/Interop/lto_symbol_attributes.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. -// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-10.0.0/llvm/include/llvm-c +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c // Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. namespace LLVMSharp.Interop diff --git a/sources/LLVMSharp/Types/Type.cs b/sources/LLVMSharp/Types/Type.cs index a588267e..cf61eedc 100644 --- a/sources/LLVMSharp/Types/Type.cs +++ b/sources/LLVMSharp/Types/Type.cs @@ -22,6 +22,12 @@ private protected Type(LLVMTypeRef handle, LLVMTypeKind expectedTypeKind) public static bool operator !=(Type left, Type right) => !(left == right); + public static Type GetBFloatTy(LLVMContext C) + { + var handle = C.Handle.BFloatType; + return C.GetOrCreate(handle); + } + public static Type GetDoubleTy(LLVMContext C) { var handle = C.Handle.DoubleType; diff --git a/Tests/LLVMSharp.UnitTests/DIBuilder.cs b/tests/LLVMSharp.UnitTests/DIBuilder.cs similarity index 96% rename from Tests/LLVMSharp.UnitTests/DIBuilder.cs rename to tests/LLVMSharp.UnitTests/DIBuilder.cs index 79aa6912..89ce78b6 100644 --- a/Tests/LLVMSharp.UnitTests/DIBuilder.cs +++ b/tests/LLVMSharp.UnitTests/DIBuilder.cs @@ -20,8 +20,8 @@ public void CreateDebugLocation() LLVMMetadataRef compileUnitMetadata = dIBuilder.CreateCompileUnit( LLVMDWARFSourceLanguage.LLVMDWARFSourceLanguageC, - fileMetadata, "ILC", 0 /* Optimized */, String.Empty, 1, String.Empty, - LLVMDWARFEmissionKind.LLVMDWARFEmissionFull, 0, 0, 0); + fileMetadata, "ILC", 0 /* Optimized */, string.Empty, 1, string.Empty, + LLVMDWARFEmissionKind.LLVMDWARFEmissionFull, 0, 0, 0, string.Empty, string.Empty); module.AddNamedMetadataOperand("llvm.dbg.cu", compileUnitMetadata); LLVMMetadataRef functionMetaType = dIBuilder.CreateSubroutineType(fileMetadata, diff --git a/Tests/LLVMSharp.UnitTests/Functions.cs b/tests/LLVMSharp.UnitTests/Functions.cs similarity index 100% rename from Tests/LLVMSharp.UnitTests/Functions.cs rename to tests/LLVMSharp.UnitTests/Functions.cs diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs new file mode 100644 index 00000000..1e447e88 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMComdatTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMComdatTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMComdat))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMComdat).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMComdat), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs new file mode 100644 index 00000000..ae1c55c3 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMMCJITCompilerOptionsTests.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMMCJITCompilerOptionsTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMMCJITCompilerOptions))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMMCJITCompilerOptions).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(LLVMMCJITCompilerOptions), Is.EqualTo(24)); + } + else + { + Assert.That(sizeof(LLVMMCJITCompilerOptions), Is.EqualTo(20)); + } + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs new file mode 100644 index 00000000..52321282 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfo1Tests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpInfo1Tests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpInfo1))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpInfo1).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpInfo1), Is.EqualTo(64)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs new file mode 100644 index 00000000..58a087ac --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpInfoSymbol1Tests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpInfoSymbol1Tests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpInfoSymbol1))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpInfoSymbol1).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpInfoSymbol1), Is.EqualTo(24)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs new file mode 100644 index 00000000..c5c655a7 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueAttributeRefTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueAttributeRefTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueAttributeRef))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueAttributeRef).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueAttributeRef), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs new file mode 100644 index 00000000..eba0738c --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBasicBlockTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueBasicBlockTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueBasicBlock))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueBasicBlock).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueBasicBlock), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs new file mode 100644 index 00000000..5f0ead9e --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBinaryTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueBinaryTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueBinary))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueBinary).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueBinary), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs new file mode 100644 index 00000000..421ba34e --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueBuilderTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueBuilderTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueBuilder))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueBuilder).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueBuilder), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs new file mode 100644 index 00000000..74ced8ba --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueContextTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueContextTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueContext))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueContext).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueContext), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs new file mode 100644 index 00000000..74afd8a8 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDIBuilderTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueDIBuilderTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueDIBuilder))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueDIBuilder).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueDIBuilder), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs new file mode 100644 index 00000000..68113aef --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueDiagnosticInfoTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueDiagnosticInfoTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueDiagnosticInfo))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueDiagnosticInfo).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueDiagnosticInfo), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs new file mode 100644 index 00000000..3e29998d --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueErrorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueErrorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueError))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueError).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueError), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs new file mode 100644 index 00000000..0e424eb4 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueExecutionEngineTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueExecutionEngineTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueExecutionEngine))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueExecutionEngine).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueExecutionEngine), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs new file mode 100644 index 00000000..35fd071a --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueGenericValueTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueGenericValueTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueGenericValue))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueGenericValue).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueGenericValue), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs new file mode 100644 index 00000000..76ae3532 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueJITEventListenerTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueJITEventListenerTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueJITEventListener))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueJITEventListener).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueJITEventListener), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs new file mode 100644 index 00000000..865ecb3d --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOCodeGeneratorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueLTOCodeGeneratorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueLTOCodeGenerator))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueLTOCodeGenerator).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueLTOCodeGenerator), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs new file mode 100644 index 00000000..a4815e69 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOInputTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueLTOInputTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueLTOInput))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueLTOInput).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueLTOInput), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs new file mode 100644 index 00000000..163fd4a8 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueLTOModuleTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueLTOModuleTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueLTOModule))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueLTOModule).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueLTOModule), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs new file mode 100644 index 00000000..4b841b2e --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMCJITMemoryManagerTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueMCJITMemoryManagerTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueMCJITMemoryManager))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueMCJITMemoryManager).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueMCJITMemoryManager), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs new file mode 100644 index 00000000..b946300f --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMemoryBufferTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueMemoryBufferTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueMemoryBuffer))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueMemoryBuffer).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueMemoryBuffer), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs new file mode 100644 index 00000000..bb368a7f --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueMetadataTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueMetadataTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueMetadata))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueMetadata).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueMetadata), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs new file mode 100644 index 00000000..81f943ac --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleFlagEntryTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueModuleFlagEntryTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueModuleFlagEntry))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueModuleFlagEntry).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueModuleFlagEntry), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs new file mode 100644 index 00000000..2c63e0c1 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleProviderTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueModuleProviderTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueModuleProvider))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueModuleProvider).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueModuleProvider), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs new file mode 100644 index 00000000..09c4cf2e --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueModuleTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueModuleTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueModule))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueModule).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueModule), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs new file mode 100644 index 00000000..43dafbcf --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueNamedMDNodeTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueNamedMDNodeTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueNamedMDNode))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueNamedMDNode).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueNamedMDNode), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs new file mode 100644 index 00000000..b318c686 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueObjectFileTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueObjectFileTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueObjectFile))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueObjectFile).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueObjectFile), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs new file mode 100644 index 00000000..1927b571 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerBuilderTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaquePassManagerBuilderTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaquePassManagerBuilder))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaquePassManagerBuilder).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaquePassManagerBuilder), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs new file mode 100644 index 00000000..46f1c31d --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassManagerTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaquePassManagerTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaquePassManager))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaquePassManager).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaquePassManager), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs new file mode 100644 index 00000000..42b65f07 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaquePassRegistryTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaquePassRegistryTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaquePassRegistry))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaquePassRegistry).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaquePassRegistry), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs new file mode 100644 index 00000000..5985318b --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueRelocationIteratorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueRelocationIteratorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueRelocationIterator))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueRelocationIterator).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueRelocationIterator), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs new file mode 100644 index 00000000..25677586 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSectionIteratorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueSectionIteratorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueSectionIterator))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueSectionIterator).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueSectionIterator), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs new file mode 100644 index 00000000..ff1de82f --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueSymbolIteratorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueSymbolIteratorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueSymbolIterator))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueSymbolIterator).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueSymbolIterator), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs new file mode 100644 index 00000000..cb0b4e4d --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetDataTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueTargetDataTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueTargetData))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueTargetData).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueTargetData), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs new file mode 100644 index 00000000..2535d3b1 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetLibraryInfotDataTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueTargetLibraryInfotDataTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueTargetLibraryInfotData))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueTargetLibraryInfotData).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueTargetLibraryInfotData), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs new file mode 100644 index 00000000..5cca1fce --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTargetMachineTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueTargetMachineTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueTargetMachine))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueTargetMachine).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueTargetMachine), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs new file mode 100644 index 00000000..3ffab4df --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueThinLTOCodeGeneratorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueThinLTOCodeGeneratorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueThinLTOCodeGenerator))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueThinLTOCodeGenerator).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueThinLTOCodeGenerator), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs new file mode 100644 index 00000000..24cd57a9 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueTypeTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueTypeTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueType))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueType).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueType), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs new file mode 100644 index 00000000..c1898ad3 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueUseTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueUseTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueUse))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueUse).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueUse), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs new file mode 100644 index 00000000..ce1b7d39 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueMetadataEntryTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueValueMetadataEntryTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueValueMetadataEntry))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueValueMetadataEntry).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueValueMetadataEntry), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs new file mode 100644 index 00000000..de4ac007 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOpaqueValueTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOpaqueValueTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOpaqueValue))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOpaqueValue).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOpaqueValue), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs new file mode 100644 index 00000000..19bbd183 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueExecutionSessionTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueExecutionSessionTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueExecutionSession))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueExecutionSession).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueExecutionSession), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs new file mode 100644 index 00000000..9375a724 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibDefinitionGeneratorTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueJITDylibDefinitionGeneratorTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueJITDylibDefinitionGenerator))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueJITDylibDefinitionGenerator).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueJITDylibDefinitionGenerator), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs new file mode 100644 index 00000000..ab2e951c --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITDylibTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueJITDylibTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueJITDylib))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueJITDylib).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueJITDylib), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs new file mode 100644 index 00000000..2142a8c2 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITStackTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueJITStackTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueJITStack))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueJITStack).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueJITStack), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs new file mode 100644 index 00000000..5e73638f --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueJITTargetMachineBuilderTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueJITTargetMachineBuilderTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueJITTargetMachineBuilder))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueJITTargetMachineBuilder).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueJITTargetMachineBuilder), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs new file mode 100644 index 00000000..b4d260b0 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITBuilderTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueLLJITBuilderTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueLLJITBuilder))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueLLJITBuilder).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueLLJITBuilder), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs new file mode 100644 index 00000000..26346113 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueLLJITTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueLLJITTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueLLJIT))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueLLJIT).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueLLJIT), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs new file mode 100644 index 00000000..e48d72f2 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeContextTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueThreadSafeContextTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueThreadSafeContext))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueThreadSafeContext).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueThreadSafeContext), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs new file mode 100644 index 00000000..ac6bea31 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcOpaqueThreadSafeModuleTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcOpaqueThreadSafeModuleTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcOpaqueThreadSafeModule))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcOpaqueThreadSafeModule).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcOpaqueThreadSafeModule), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs new file mode 100644 index 00000000..ae25c5a0 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMOrcQuaqueSymbolStringPoolEntryPtrTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMOrcQuaqueSymbolStringPoolEntryPtrTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMOrcQuaqueSymbolStringPoolEntryPtr))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMOrcQuaqueSymbolStringPoolEntryPtr).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMOrcQuaqueSymbolStringPoolEntryPtr), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs new file mode 100644 index 00000000..908d76cd --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueArgTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMRemarkOpaqueArgTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMRemarkOpaqueArg))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMRemarkOpaqueArg).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMRemarkOpaqueArg), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs new file mode 100644 index 00000000..aaaf8936 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueDebugLocTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMRemarkOpaqueDebugLocTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMRemarkOpaqueDebugLoc))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMRemarkOpaqueDebugLoc).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMRemarkOpaqueDebugLoc), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs new file mode 100644 index 00000000..63410424 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueEntryTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMRemarkOpaqueEntryTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMRemarkOpaqueEntry))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMRemarkOpaqueEntry).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMRemarkOpaqueEntry), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs new file mode 100644 index 00000000..20920cfd --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueParserTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMRemarkOpaqueParserTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMRemarkOpaqueParser))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMRemarkOpaqueParser).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMRemarkOpaqueParser), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs new file mode 100644 index 00000000..69ccfcb1 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMRemarkOpaqueStringTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMRemarkOpaqueStringTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMRemarkOpaqueString))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMRemarkOpaqueString).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMRemarkOpaqueString), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs b/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs new file mode 100644 index 00000000..65ca43f3 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LLVMTargetTests.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LLVMTargetTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LLVMTarget))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LLVMTarget).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(LLVMTarget), Is.EqualTo(1)); + } + } +} diff --git a/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs b/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs new file mode 100644 index 00000000..0d972ca4 --- /dev/null +++ b/tests/LLVMSharp.UnitTests/Interop/LTOObjectBufferTests.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. + +// Ported from https://github.com/llvm/llvm-project/tree/llvmorg-11.0.0/llvm/include/llvm-c +// Original source is Copyright (c) the LLVM Project and Contributors. Licensed under the Apache License v2.0 with LLVM Exceptions. See NOTICE.txt in the project root for license information. + +using NUnit.Framework; +using System; +using System.Runtime.InteropServices; + +namespace LLVMSharp.Interop.UnitTests +{ + /// Provides validation of the struct. + public static unsafe class LTOObjectBufferTests + { + /// Validates that the struct is blittable. + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(LTOObjectBuffer))); + } + + /// Validates that the struct has the right . + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(LTOObjectBuffer).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(LTOObjectBuffer), Is.EqualTo(16)); + } + else + { + Assert.That(sizeof(LTOObjectBuffer), Is.EqualTo(8)); + } + } + } +} diff --git a/Tests/LLVMSharp.UnitTests/Properties/launchSettings.json b/tests/LLVMSharp.UnitTests/Properties/launchSettings.json similarity index 100% rename from Tests/LLVMSharp.UnitTests/Properties/launchSettings.json rename to tests/LLVMSharp.UnitTests/Properties/launchSettings.json