Skip to content

Commit

Permalink
Add docs for single_target and two_targets
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottt committed Aug 3, 2022
1 parent 766f915 commit 8a3679f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cranelift/codegen/src/isa/x64/inst.isle
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,11 @@

(type MachLabelSlice extern (enum))

;; Extract a the target from a MachLabelSlice with exactly one target.
(decl single_target (MachLabel) MachLabelSlice)
(extern extractor single_target single_target)

;; Extract a the targets from a MachLabelSlice with exactly two targets.
(decl two_targets (MachLabel MachLabel) MachLabelSlice)
(extern extractor two_targets two_targets)

Expand Down

0 comments on commit 8a3679f

Please sign in to comment.