Package org.lwjgl.llvm
Class LLVMComdat
- java.lang.Object
-
- org.lwjgl.llvm.LLVMComdat
-
public class LLVMComdat extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LLVMComdat.Functions
Contains the function pointers loaded fromLLVMCore.getLibrary()
.
-
Field Summary
Fields Modifier and Type Field Description static int
LLVMAnyComdatSelectionKind
LLVMExactMatchComdatSelectionKind
LLVMLargestComdatSelectionKind
LLVMNoDuplicatesComdatSelectionKind
LLVMSameSizeComdatSelectionKindLLVMComdatSelectionKind
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
LLVMGetComdat(long V)
Get the Comdat assigned to the given global object.static int
LLVMGetComdatSelectionKind(long C)
Get the conflict resolution selection kind for the Comdat.static long
LLVMGetOrInsertComdat(long M, java.lang.CharSequence Name)
Return theComdat
in the module with the specified name.static long
LLVMGetOrInsertComdat(long M, java.nio.ByteBuffer Name)
Return theComdat
in the module with the specified name.static void
LLVMSetComdat(long V, long C)
Assign the Comdat to the given global object.static void
LLVMSetComdatSelectionKind(long C, int Kind)
Set the conflict resolution selection kind for the Comdat.static long
nLLVMGetOrInsertComdat(long M, long Name)
Unsafe version of:GetOrInsertComdat
-
-
-
Field Detail
-
LLVMAnyComdatSelectionKind, LLVMExactMatchComdatSelectionKind, LLVMLargestComdatSelectionKind, LLVMNoDuplicatesComdatSelectionKind, LLVMSameSizeComdatSelectionKind
LLVMComdatSelectionKind
Enum values:
AnyComdatSelectionKind
- The linker may choose any COMDAT.ExactMatchComdatSelectionKind
- The data referenced by the COMDAT must be the same.LargestComdatSelectionKind
- The linker will choose the largest COMDAT.NoDuplicatesComdatSelectionKind
- No other Module may specify this COMDAT.SameSizeComdatSelectionKind
- The data referenced by the COMDAT must be the same size.
-
-
Method Detail
-
nLLVMGetOrInsertComdat
public static long nLLVMGetOrInsertComdat(long M, long Name)
Unsafe version of:GetOrInsertComdat
-
LLVMGetOrInsertComdat
public static long LLVMGetOrInsertComdat(long M, java.nio.ByteBuffer Name) public static long LLVMGetOrInsertComdat(long M, java.lang.CharSequence Name)
Return theComdat
in the module with the specified name. It is created if it didn't already exist.
-
LLVMGetComdat
public static long LLVMGetComdat(long V)
Get the Comdat assigned to the given global object.
-
LLVMSetComdat
public static void LLVMSetComdat(long V, long C)
Assign the Comdat to the given global object.
-
LLVMGetComdatSelectionKind
public static int LLVMGetComdatSelectionKind(long C)
Get the conflict resolution selection kind for the Comdat.
-
LLVMSetComdatSelectionKind
public static void LLVMSetComdatSelectionKind(long C, int Kind)
Set the conflict resolution selection kind for the Comdat.
-
-