llvm.org GIT mirror llvm / 3c89a4b
[bindings/go] Add bindings to LLVMGet?CmpPredicate Add bindings so that predicates on comparisons (icmp/fcmp) can be inspected from IR. Note: I considered adding Value.ICmpPredicate() etc. instead but Value.IntPredicate() seemed easier to read and matches the name of the returned type. (This change was also pushed two commits ago but accidentally had the wrong title and description.) Revision: https://reviews.llvm.org/D53884 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362893 91177308-0d34-0410-b5e6-96231b3b80d8 Ayke van Laethem 3 months ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
12741274 return indices
12751275 }
1277 // Operations on comparisons
1278 func (v Value) IntPredicate() IntPredicate { return IntPredicate(C.LLVMGetICmpPredicate(v.C)) }
1279 func (v Value) FloatPredicate() FloatPredicate { return FloatPredicate(C.LLVMGetFCmpPredicate(v.C)) }
12771281 //-------------------------------------------------------------------------
12781282 // llvm.Builder
12791283 //-------------------------------------------------------------------------