Closed Quasar0311 closed 3 years ago
When I use build_call function, I have to put argument as a llvalue type, but while getting position of instruction, I have string value of them.
So, is there any API to translate normal string or integer value into llvalue?
Take a look at 'operations on scalar constants' section on the ocaml Llvm API documatation site.
Got it! Thanks!
When I use build_call function, I have to put argument as a llvalue type, but while getting position of instruction, I have string value of them.
So, is there any API to translate normal string or integer value into llvalue?