Well, slt
, sgt
and others for icmp
are just arguments. You can access them with getPredicate
(a method of CmpInst
). Also see the useful function getPredicateText
in lib/IR/AsmWriter.cpp
.
For stuff like nsw
, check out the method hasNoSignedWrap
and similar methods.