[Libclc-dev] Up to date usage example

Matt Arsenault via Libclc-dev libclc-dev at lists.llvm.org
Thu Jun 30 09:08:33 PDT 2016


> On Jun 30, 2016, at 03:59, Timothy Flynn via Libclc-dev <libclc-dev at lists.llvm.org> wrote:
> 
> 
> If I change the above command to produce cos.ll by adding the -S option it works but then
> 
> llvm-link cos.ll /usr/local/lib/clc/tonga-amdgcn--amdhsa.bc -o cos-linked.bc
> 
> fails with the error:
> 
> llvm-link: output.ll:1:2: error: expected top-level entity
>         .text
> 

-S will produce the text isa output. If you want the linked bitcode file you need to add -emit-llvm

-Matt


More information about the Libclc-dev mailing list