Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crucible-llvm-syntax: Concrete syntax for all constructors of MemType #1116

Open
langston-barrett opened this issue Nov 1, 2023 · 0 comments

Comments

@langston-barrett
Copy link
Contributor

#1113 added support for parsing common integer and pointer types, but the remaining constructors of MemType need dedicated parsing support:

parseMemType :: MonadSyntax Atomic m => m MemType
parseMemType = Parse.describe "LLVM type" $ do
nm <- Parse.atomName
case nm of
Atom.AtomName "i8" -> pure (MemType.IntType 8)
Atom.AtomName "i16" -> pure (MemType.IntType 16)
Atom.AtomName "i32" -> pure (MemType.IntType 32)
Atom.AtomName "i64" -> pure (MemType.IntType 64)
Atom.AtomName "ptr" -> pure MemType.PtrOpaqueType
_ -> empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant