Displaying 2 results from an estimated 2 matches for "11ified".
2014 Mar 10
2
[LLVMdev] GlobalValues appear in their own use lists?
In the following IR module:
–
define i8 @foo() #0 {
entry:
%call0 = call i8 @bar()
ret i8 %call0
}
declare i8 @bar() #1
–
@bar() gets marked as its own user in top-of-tree LLVM. I patched the Verifier to check it (but didn’t commit the patch):
–
Index: lib/IR/Verifier.cpp
===================================================================
--- lib/IR/Verifier.cpp (revision 203468)
+++
2014 Mar 11
3
[LLVMdev] GlobalValues appear in their own use lists?
...ferent type than the global itself (one level of pointer is removed). Since LLVM 2.0, it isn’t possible to have a "pointer to itself” type anymore.
>
>> If not, can I commit this patch?
>
> Sure, but note that it won’t apply to mainline. use iterators got reworked to be C++’11ified and got renamed in the process.
>
>> This really causes problems for LLDB in various parts of our logic, including infinite loops when following use chains, but a major issue is that we try to strip certain global values out of the module, and if they’re their own uses then that doesn’t w...