[Question][Hw7] Scope of hw7 #337
-
|
According to Llvm documentation about ICmp instruction, pointers can also be an operand. Should we allow pointer comparisons?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Also, should we take care of |
Beta Was this translation helpful? Give feedback.
-
|
For the first question, pointer is a type you should support, and Hope this clarifies your question. |
Beta Was this translation helpful? Give feedback.
-
|
I think the page is not accessible...? |
Beta Was this translation helpful? Give feedback.
-
|
Oh, sorry. It is the third section of the Readme of the HW7 |
Beta Was this translation helpful? Give feedback.
For the first question, pointer is a type you should support, and
icmpis an instruction you should support. So yes, you should allow pointer comparisons.For the second questions, any of the llvm instructions not mentioned in https://github.com/prosyslab-classroom/smallvm-typechecker-master#3-format-of-input-programs is considered
nop.Hope this clarifies your question.