Skip to content

Commit 93279f3

Browse files
james-a-johnsonemesare
authored andcommitted
Support getting inputs to an intrinsic
1 parent 66f5b3e commit 93279f3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rust/src/low_level_il/operation.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,17 @@ where
311311
unsafe { BNLowLevelILFreeOperandList(out_list.as_mut_ptr()) };
312312
outputs
313313
}
314+
315+
/// Get the input list for the intrinsic.
316+
///
317+
/// This will just be a CallParamSsa expression.
318+
#[inline]
319+
pub fn inputs(&self) -> LowLevelILExpression<'_, M, F, ValueExpr> {
320+
LowLevelILExpression::new(
321+
self.function,
322+
LowLevelExpressionIndex(self.op.operands[3] as usize),
323+
)
324+
}
314325
}
315326

316327
impl<M, F> Debug for Operation<'_, M, F, Intrinsic>

0 commit comments

Comments
 (0)