prosyslab-classroom / cs348-information-security

62 stars 10 forks source link

[Question][Hw3] Is there any API functions to change type into llvalue?? #90

Closed Quasar0311 closed 3 years ago

Quasar0311 commented 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?

mickowale commented 3 years ago

Take a look at 'operations on scalar constants' section on the ocaml Llvm API documatation site.

Quasar0311 commented 3 years ago

Got it! Thanks!