Skip to content

Commit

Permalink
Support parsing freeze instructions
Browse files Browse the repository at this point in the history
This bumps the llvm-pretty submodule to include GaloisInc/llvm-pretty#85.

Fixes #165.
  • Loading branch information
RyanGlScott committed Sep 13, 2021
1 parent d1a6057 commit d18507a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion llvm-pretty
10 changes: 10 additions & 0 deletions src/Data/LLVM/BitCode/IR/Function.hs
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,16 @@ parseFunctionBlockEntry _ t d (fromEntry -> Just r) = case recordCode r of
mkInstr <- field ix unop
result (typedType v) (mkInstr v) d

-- [attr, cc, norm, transfs,
-- fnty, fnid, args...]
57 -> label "FUNC_CODE_INST_CALLBR" $ do
notImplemented

-- [opty, opval]
58 -> label "FUNC_CODE_INST_FREEZE" $ do
(v,_) <- getValueTypePair t r 0
result (typedType v) (Freeze v) d


-- [opty,opval,opval,pred]
code
Expand Down

0 comments on commit d18507a

Please sign in to comment.