llvm.org GIT mirror llvm / ac449df
[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. Revision: https://reviews.llvm.org/D52972 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362890 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
12271227 func (v Value) SetInstrParamAlignment(i int, align int) {
12281228 C.LLVMSetInstrParamAlignment(v.C, C.unsigned(i), C.unsigned(align))
12291229 }
1230 func (v Value) CalledValue() (rv Value) {
1231 rv.C = C.LLVMGetCalledValue(v.C)
1232 return
1233 }
12301234
12311235 // Operations on call instructions (only)
12321236 func (v Value) IsTailCall() bool { return C.LLVMIsTailCall(v.C) != 0 }