Struct llvm_ir::terminator::CallBr
source · [−]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
sourceimpl From<CallBr> for Terminator
impl From<CallBr> for Terminator
sourcefn from(term: CallBr) -> Terminator
fn from(term: CallBr) -> Terminator
Converts to this type from the input type.
sourceimpl HasDebugLoc for CallBr
impl HasDebugLoc for CallBr
sourcefn get_debug_loc(&self) -> &Option<DebugLoc>
fn get_debug_loc(&self) -> &Option<DebugLoc>
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
sourceimpl PartialEq<CallBr> for CallBr
impl PartialEq<CallBr> for CallBr
sourceimpl TryFrom<Terminator> for CallBr
impl TryFrom<Terminator> for CallBr
impl StructuralPartialEq for CallBr
Auto Trait Implementations
impl RefUnwindSafe for CallBr
impl Send for CallBr
impl Sync for CallBr
impl Unpin for CallBr
impl UnwindSafe for CallBr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more