Skip to content
Discussion options

You must be logged in to vote
  1. You can use Llvm.type_of to extract the instruction type. Also, this instruction does not change the type of %4. It makes i32 type %conv by casting i8 type %4.

  2. You can debug your code using functions like print_endline. In typesystem.ml, all definitions of types and utility functions are defined. ret_of and param_of are just matching functions for the given value.

  3. Actually, you don't need to use all functions in typesystem.ml. Use them for your purpose.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by doit-man
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #56 on May 31, 2024 05:22.