pub struct CallBr {
pub function: Either<InlineAssembly, Operand>,
pub arguments: Vec<(Operand, Vec<ParameterAttribute>)>,
pub return_attributes: Vec<ParameterAttribute>,
pub result: Name,
pub return_label: Name,
pub other_labels: (),
pub function_attributes: Vec<FunctionAttribute>,
pub calling_convention: CallingConvention,
pub debugloc: Option<DebugLoc>,
}
Expand description
Fields§
§function: Either<InlineAssembly, Operand>
§arguments: Vec<(Operand, Vec<ParameterAttribute>)>
§return_attributes: Vec<ParameterAttribute>
§result: Name
§return_label: Name
§other_labels: ()
other_labels
should be Vec<Name>
, but it appears there is no way to get this information with the LLVM C API (as opposed to the C++ API)
function_attributes: Vec<FunctionAttribute>
§calling_convention: CallingConvention
§debugloc: Option<DebugLoc>
Trait Implementations§
Source§impl From<CallBr> for Terminator
impl From<CallBr> for Terminator
Source§fn from(term: CallBr) -> Terminator
fn from(term: CallBr) -> Terminator
Converts to this type from the input type.
Source§impl HasDebugLoc for CallBr
impl HasDebugLoc for CallBr
Source§impl TryFrom<Terminator> for CallBr
impl TryFrom<Terminator> for CallBr
impl StructuralPartialEq for CallBr
Auto Trait Implementations§
impl Freeze for CallBr
impl RefUnwindSafe for CallBr
impl Send for CallBr
impl Sync for CallBr
impl Unpin for CallBr
impl UnwindSafe for CallBr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more