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
In my program in need to create global variables and/or arrays containing pointers to internally linked functions.
As I see from documentation at http://hackage.haskell.org/packages/archive/llvm/0.9.1.2/doc/html/ when defining new global variable/array I need to provide value(s) of type 'ConstValue a', but 'Function a' (which I suppose represents pointer to the function itself) is defined as 'Value (Ptr a)', so it is a non-constant pointer.
Is there any solution for this problem? I think it is valid usecase, as it is possible to do so either when using other bindings to LLVM or when simply writing code in C!
The text was updated successfully, but these errors were encountered:
In my program in need to create global variables and/or arrays containing pointers to internally linked functions.
As I see from documentation at http://hackage.haskell.org/packages/archive/llvm/0.9.1.2/doc/html/ when defining new global variable/array I need to provide value(s) of type 'ConstValue a', but 'Function a' (which I suppose represents pointer to the function itself) is defined as 'Value (Ptr a)', so it is a non-constant pointer.
Is there any solution for this problem? I think it is valid usecase, as it is possible to do so either when using other bindings to LLVM or when simply writing code in C!
The text was updated successfully, but these errors were encountered: