llvm ffi: Expose CallInst->setTailCallKind
This commit is contained in:
parent
8d1fa473dd
commit
bf5eaa4550
2 changed files with 37 additions and 0 deletions
|
@ -585,6 +585,16 @@ pub enum ThreadLocalMode {
|
|||
LocalExec,
|
||||
}
|
||||
|
||||
/// LLVMRustTailCallKind
|
||||
#[derive(Copy, Clone)]
|
||||
#[repr(C)]
|
||||
pub enum TailCallKind {
|
||||
None,
|
||||
Tail,
|
||||
MustTail,
|
||||
NoTail,
|
||||
}
|
||||
|
||||
/// LLVMRustChecksumKind
|
||||
#[derive(Copy, Clone)]
|
||||
#[repr(C)]
|
||||
|
@ -1195,6 +1205,7 @@ extern "C" {
|
|||
NameLen: size_t,
|
||||
) -> Option<&Value>;
|
||||
pub fn LLVMSetTailCall(CallInst: &Value, IsTailCall: Bool);
|
||||
pub fn LLVMRustSetTailCallKind(CallInst: &Value, TKC: TailCallKind);
|
||||
|
||||
// Operations on attributes
|
||||
pub fn LLVMRustCreateAttrNoValue(C: &Context, attr: AttributeKind) -> &Attribute;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue