mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[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 llvm-svn: 362891
This commit is contained in:
parent
06a69245a1
commit
bdf7e2e7bd
@ -1275,6 +1275,10 @@ func (v Value) Indices() []uint32 {
|
||||
return indices
|
||||
}
|
||||
|
||||
// Operations on comparisons
|
||||
func (v Value) IntPredicate() IntPredicate { return IntPredicate(C.LLVMGetICmpPredicate(v.C)) }
|
||||
func (v Value) FloatPredicate() FloatPredicate { return FloatPredicate(C.LLVMGetFCmpPredicate(v.C)) }
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// llvm.Builder
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user