❔ LLVMSharp weird function
Hey, so I'm trynig to convert my class into a LLVM const.
I have a class callled NumberAST:
And I was wondering how to convert it into llvm const.
I found this thingy
LLVMValueRef.CreateConstIntOfString()
but I can't find it in the docs so i'm not sure how to use it10 Replies
thats the origin of this function
any ideas if i'm even trying to use the right thing?
well you need to pass three arguments...
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
really? I had no idea.
That's now what I'm asking tho. I don't really understand whats the use case of this function
what does it do
whats the
radix
used for
there's nothing in the documentationRadix specifies how many numbers are possible for each digit.
Eg for "100" is it binary? Hex? Decimal? Use the radix to specify 2, 16, or 10, respectively
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Thanks!
so I guess I can do something like
CreateConstIntOfString(LLVMTypeRef.Int64, "1054594", 10)
and it should parse my string into Int64yes
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.