Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
closing.. please feel free to re-open if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to ask you about the functionality of
cmp pred v1 v2
.My understanding is that
pred
would be evaluated to eithertrue
orfalse
, and the whole function call will returnv1
orv2
accordingly.Or,
pred
is sth like>
and it is used to comparev1
andv2
, which eventually returnstrue
orfalse
.The latter seems to be correct according to my search on Google, but the term
pred
confuses me in that predicate means "something that is evaluated to either true or false". Which one is correct?Also regardless of the above, I wonder if any kind of document or specification regarding such explanation is given.
One more question! I'm having difficulty with
Llvm.Icmp.t
which is seemingly a type ofpred
.I've read https://github.com/prosyslab-classroom/llvm-primer/blob/master/data-structure.md and https://llvm.moe/ocaml-3.6/type_Llvm.html, but couldn't really find out the way out. Any hint to evaluate
pred
to a typet
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions