MichaReiser / llvm-node

LLVM 9.0+ Node Bindings
MIT License
183 stars 29 forks source link

How to properly call a function (params) with LLVM-Node. #114

Closed aiko-is-bored closed 3 years ago

aiko-is-bored commented 3 years ago

I've looked through the tests and I've not found anything that details how to call a function with parameters in LLVM-Node. Do I just use an array? Is it not possible?

vihanb commented 3 years ago

The API mimics the original LLVM one. Use IRBuilder#createCall

aiko-is-bored commented 3 years ago

The API mimics the original LLVM one. Use IRBuilder#createCall

All right.