llvm_sys_featured/
comdat.rs1use super::*;
3
4#[repr(C)]
5#[derive(Clone, Copy, Debug, PartialEq)]
6pub enum LLVMComdatSelectionKind {
7 LLVMAnyComdatSelectionKind,
9 LLVMExactMatchComdatSelectionKind,
11 LLVMLargestComdatSelectionKind,
13 LLVMNoDuplicatesComdatSelectionKind,
15 LLVMSameSizeComdatSelectionKind,
17}
18
19extern "C" {
20 pub fn LLVMGetOrInsertComdat(M: LLVMModuleRef, Name: *const ::libc::c_char) -> LLVMComdatRef;
22
23 pub fn LLVMGetComdat(V: LLVMValueRef) -> LLVMComdatRef;
25
26 pub fn LLVMSetComdat(V: LLVMValueRef, C: LLVMComdatRef);
28
29 pub fn LLVMGetComdatSelectionKind(C: LLVMComdatRef) -> LLVMComdatSelectionKind;
31
32 pub fn LLVMSetComdatSelectionKind(C: LLVMComdatRef, Kind: LLVMComdatSelectionKind);
34}