Displaying 2 results from an estimated 2 matches for "test_llvm_var".
2019 Jan 18
2
Can't find symbol from llvm backend
Hi, I am new to llvm.
I create a global variable called "test_llvm_var" in the front end function
pass like this:
new GlobalVariable(*m, tmp->getType(), true,
llvm::GlobalValue::ExternalLinkage, tmp, "test_llvm_var");
where tmp is a function.
Then I tried to access this global variable in the back end
MachineFunctionPass like this:...
2019 Jan 19
3
Can't find symbol from llvm backend
...ists.llvm.org] *On Behalf Of *n3v3rm03
> via llvm-dev
> *Sent:* Friday, January 18, 2019 5:57 AM
> *To:* llvm-dev at lists.llvm.org
> *Subject:* [llvm-dev] Can't find symbol from llvm backend
>
>
>
> Hi, I am new to llvm.
>
> I create a global variable called "test_llvm_var" in the front end
> function pass like this:
>
>
>
> new GlobalVariable(*m, tmp->getType(), true,
> llvm::GlobalValue::ExternalLinkage, tmp, "test_llvm_var");
>
>
>
> where tmp is a function.
>
>
>
> Then I tried to access this...