You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A successful, but too fragile approach can be seen in #36. I closed the PR but can use it as a basis to start a conversation about a better option.
Ideally, we can use inkwell to do this properly, but I wasn't able to find a solution in a reasonable amount of time.
The crux of this issue is when adding a new match case for a pointer value in get_qis_function_arguments, to operate on the last argument in a function like:
@tag = internalconstant [10 x i8] c"tag_value\00"; ... tailcallvoid@__quantum__rt__result_record_output(%Result*null, i8*getelementptrinbounds ([10 x i8], [10 x i8]* @tag, i320, i320))
I'd like to convert the pointer value into an ArrayType so I can use its len method to get the size of the array we want to take from the constant string (which in this case, happens to be the whole string -- but that might not always be the case).
Further, I'm not sure how to access the indices into the array, nor the variable holding the constant.
The text was updated successfully, but these errors were encountered:
A successful, but too fragile approach can be seen in #36. I closed the PR but can use it as a basis to start a conversation about a better option.
Ideally, we can use
inkwell
to do this properly, but I wasn't able to find a solution in a reasonable amount of time.The crux of this issue is when adding a new match case for a pointer value in
get_qis_function_arguments
, to operate on the last argument in a function like:I'd like to convert the pointer value into an
ArrayType
so I can use itslen
method to get the size of the array we want to take from the constant string (which in this case, happens to be the whole string -- but that might not always be the case).Further, I'm not sure how to access the indices into the array, nor the variable holding the constant.
The text was updated successfully, but these errors were encountered: