1
Fork 0

Add Assume custom MIR.

This commit is contained in:
Camille GILLOT 2024-01-20 19:01:57 +00:00
parent ef71f1047e
commit 161c674ef0
7 changed files with 81 additions and 0 deletions

View file

@ -20,6 +20,10 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
@call(mir_storage_dead, args) => {
Ok(StatementKind::StorageDead(self.parse_local(args[0])?))
},
@call(mir_assume, args) => {
let op = self.parse_operand(args[0])?;
Ok(StatementKind::Intrinsic(Box::new(NonDivergingIntrinsic::Assume(op))))
},
@call(mir_deinit, args) => {
Ok(StatementKind::Deinit(Box::new(self.parse_place(args[0])?)))
},