Click or drag to resize
Llvm.NET LogoNativeModule Class

[This is preliminary documentation and is subject to change.]

LLVM Bit code module
Inheritance Hierarchy
SystemObject
  Llvm.NETNativeModule

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public sealed class NativeModule : IDisposable, 
	IExtensiblePropertyContainer

The NativeModule type exposes the following members.

Constructors
  NameDescription
Public methodNativeModule
Creates an unnamed module without debug information
Public methodNativeModule(String)
Creates a new module with the specified id in a new context
Public methodNativeModule(String, Context)
Creates an named module in a given context
Public methodNativeModule(String, SourceLanguage, String, String, Boolean, String, UInt32)
Creates a named module with a root DICompileUnit to contain debugging information
Public methodNativeModule(String, Context, SourceLanguage, String, String, Boolean, String, UInt32)
Creates a named module with a root DICompileUnit to contain debugging information
Top
Properties
  NameDescription
Public propertyContext
Context this module belongs to
Public propertyDataLayoutString
Data layout string
Public propertyDIBuilder
DebugInfoBuilder to create debug information for this module
Public propertyDICompileUnit
Debug Compile unit for this module
Public propertyFunctions
Enumerable collection of functions contained in this module
Public propertyGlobals
Globals contained by this module
Public propertyLayout
Target data layout for this module
Public propertyModuleFlags
Public propertyName
Name of the module
Public propertyTargetTriple
Target Triple describing the target, ABI and OS
Top
Methods
  NameDescription
Public methodAddAlias
Add an alias to the module
Public methodAddFunction
Add a function with the specified signature to the module
Public methodAddGlobal(ITypeRef, String)
Adds a global to this module
Public methodAddGlobal(ITypeRef, Boolean, Linkage, Constant)
Adds a global to this module
Public methodAddGlobal(ITypeRef, Boolean, Linkage, Constant, String)
Adds a global to this module
Public methodAddModuleFlag(ModuleFlagBehavior, String, LlvmMetadata)
Adds a module flag to the module
Public methodAddModuleFlag(ModuleFlagBehavior, String, UInt32)
Adds a module flag to the module
Public methodAddNamedMetadataOperand
Adds operand value to named metadata
Public methodAddVersionIdentMetadata
Adds an llvm.ident metadata string to the module
Public methodAsString
Creates a string representation of the module
Public methodCreateFunction(String, Boolean, IDebugTypeITypeRef, DIType, IDebugTypeITypeRef, DIType)
Public methodCreateFunction(DIScope, String, String, DIFile, UInt32, DebugFunctionType, Boolean, Boolean, UInt32, DebugInfoFlags, Boolean, MDNode, MDNode)
Creates a Function definition with Debug information
Public methodCreateMDNode
Create an MDNode from a string
Public methodDispose
Releases all resources used by the NativeModule
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetAlias
Get an alias by name
Public methodGetFunction
Gets a function by name from this module
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNamedGlobal
Retrieves a named global from the module
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeByName
Retrieves a ITypeRef by name from the module
Public methodLink
Public methodStatic memberLoadFrom
Load a bit-code module from a given file
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerify
Verifies a bit-code module
Public methodWriteToFile
Writes a bit-code module to a file
Public methodWriteToTextFile
Writes this module as LLVM IR source to a file
Top
Fields
  NameDescription
Public fieldStatic memberDebugMetadataVersion
Version of the Debug information Metadata
Public fieldStatic memberDebugVersionValue
Name of the Debug Version information module flag
Public fieldStatic memberDwarfVersionValue
Name of the Dwarf Version module flag
Top
Explicit Interface Implementations
Remarks
A module is the basic unit for containing code in LLVM. Modules are an in memory representation of the LLVM bit-code.
See Also