-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathLLVM.Imports.Comdat.pas
58 lines (47 loc) · 1.73 KB
/
LLVM.Imports.Comdat.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
unit LLVM.Imports.Comdat;
//based on Comdat.h
{$MINENUMSIZE 4}
interface
uses LLVM.Imports ,
LLVM.Imports.Types;
type
TLLVMComdatSelectionKind = (
LLVMAnyComdatSelectionKind, ///< The linker may choose any COMDAT.
LLVMExactMatchComdatSelectionKind, ///< The data referenced by the COMDAT must be the same.
LLVMLargestComdatSelectionKind, ///< The linker will choose the largest COMDAT.
LLVMNoDuplicatesComdatSelectionKind, ///< No other Module may specify this COMDAT.
LLVMSameSizeComdatSelectionKind ///< The data referenced by the COMDAT must be the same size.
);
(**
* Return the Comdat in the module with the specified name. It is created
* if it didn't already exist.
*
* @see llvm::Module::getOrInsertComdat()
*)
function LLVMGetOrInsertComdat(M: TLLVMModuleRef; const Name: PLLVMChar): TLLVMComdatRef;cdecl; external CLLVMLibrary;
(**
* Get the Comdat assigned to the given global object.
*
* @see llvm::GlobalObject::getComdat()
*)
function LLVMGetComdat(V: TLLVMValueRef): TLLVMComdatRef; cdecl; external CLLVMLibrary;
(*
* Assign the Comdat to the given global object.
*
* @see llvm::GlobalObject::setComdat()
*)
procedure LLVMSetComdat(V: TLLVMValueRef; C: TLLVMComdatRef); cdecl; external CLLVMLibrary;
(*
* Get the conflict resolution selection kind for the Comdat.
*
* @see llvm::Comdat::getSelectionKind()
*)
function LLVMGetComdatSelectionKind(C: TLLVMComdatRef): TLLVMComdatSelectionKind; cdecl; external CLLVMLibrary;
(*
* Set the conflict resolution selection kind for the Comdat.
*
* @see llvm::Comdat::setSelectionKind()
*)
procedure LLVMSetComdatSelectionKind(C: TLLVMComdatRef; Kind: TLLVMComdatSelectionKind);cdecl; external CLLVMLibrary;
implementation
end.