Hi again,

Not quite sure what you are asking--

If you want to generated LLVM bitcode and then use that with your version
10 llvm tools, then you'll either need to build a version-10 compatible
gollvm, or you'll need to upgrade the LLVM used by your tools/project.

You can try building a V10-compatible gollvm by checking out old versions
of the various git repos in your work area. These sha's should give you a
working V10 gollvm:

# This is the llvm 10.0.1 final git tag:
LLVM: ef32c611aa214dea855364efd7ba451ec5ec3f74

gollvm: ad0491f483d17893a2439bdb63d0f94124965549

gofrontend: 85641a0f26061f7c98db42a2adb3250c07ce504e

libffi: 737d4faa00d681b4c758057f67e1a02d813d01c2

libbacktrace: 5a99ff7fed66b8ea8f09c9805c138524a7035ece


Cheers, Than

On Wed, Apr 14, 2021 at 11:42 AM Khanh TN <tnkha...@gmail.com> wrote:

> Hi Ian,
> My project is currently running on LLVM10.
> If I want to use gollvm, do I just have to upgrade to the latest commits?
> Thanks
> Khanh
>
> On Wednesday, April 14, 2021 at 11:08:36 PM UTC+8 Khanh TN wrote:
>
>> Thanks,
>> I see it's hard to keep syncing with LLVM. They have new commits every
>> minute
>>
>> Khanh
>>
>> On Wednesday, April 14, 2021 at 10:53:13 PM UTC+8 th...@google.com wrote:
>>
>>> OK, I checked in https://go-review.googlesource.com/c/gollvm/+/310069,
>>> should be resolved now. Thanks for reporting.
>>>
>>> On Tue, Apr 13, 2021 at 7:30 PM Than McIntosh <th...@google.com> wrote:
>>>
>>>> Thanks for reporting. I'll look into sending a CL.
>>>>
>>>> Cheers, Than
>>>>
>>>>
>>>> On Tue, Apr 13, 2021 at 6:09 PM Khanh TN <tnkh...@gmail.com> wrote:
>>>>
>>>>> Hi, I'm building gollvm with both gollvm and LLVM on the latest commit.
>>>>> It fails and the error reads:
>>>>> [..]/llvm-project/llvm/tools/gollvm/passes/GoNilChecks.cpp:363:23:
>>>>> error: ‘NoAlias’ was not declared in this scope
>>>>>        if (AAResult != NoAlias)
>>>>>                        ^~~~~~~
>>>>> [..]/llvm-project/llvm/tools/gollvm/passes/GoNilChecks.cpp:363:23:
>>>>> note: suggested alternative: ‘AR_NoAlias’
>>>>>
>>>>> Can you guys check? Sorry if I'm spamming about gollvm lately.
>>>>> Thanks!
>>>>> Khanh
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "golang-nuts" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to golang-nuts...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/golang-nuts/de629758-4d44-4348-a506-1f2f6404b5b0n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/golang-nuts/de629758-4d44-4348-a506-1f2f6404b5b0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/6c371d0f-eea1-4098-999a-3f2126cdb602n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/6c371d0f-eea1-4098-999a-3f2126cdb602n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2BUr55EK_Rn8FOXdJG%2BXGWQBrmej88mYRkfed%2BmNqw9dnpyBLQ%40mail.gmail.com.

Reply via email to