llvm.org GIT mirror llvm / 72a39d3
[bindings/go] Add Go bindings for CalledValue This is very useful for inspecting generated IR, there appears to be no other way to get the called function from a CallInst. Differential Revision: https://reviews.llvm.org/D52972 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362891 91177308-0d34-0410-b5e6-96231b3b80d8 Ayke van Laethem a month ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
12741274 return indices
12751275 }
12761276
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)) }
1280
12771281 //-------------------------------------------------------------------------
12781282 // llvm.Builder
12791283 //-------------------------------------------------------------------------