This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
-
看API看得有点晕emmm,没找到 |
Beta Was this translation helpful? Give feedback.
Answered by
Yorkking
May 14, 2022
Replies: 2 comments 4 replies
Answer selected by
lyh1028
-
谢谢|・ω・`) 刚才傻了,constantInt*和Value*应该是可以自动隐式类型转换的
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年5月17日(周二) 晚上10:17
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [arcsysu/SYsU-lang] 如何实现各种类型(如 int,float,stringRef )与Value*之间的类型转换? (Discussion #39)
llvm::ConstantInt::get( TheContext, /* i32 3(decimal) */ llvm::APInt(32, string_val, 10)); // string_val 为 str 这样就行了。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RTM: https://llvm.org/doxygen/Type_8h_source.html