search for: getaliasedglobal

Displaying 5 results from an estimated 5 matches for "getaliasedglobal".

2009 Jul 09
1
[LLVMdev] Build fails on linux.
...ber function ‘virtual void llvm::GlobalValue::destroyConstant()’: /home/auto-tester/projects/c16/lib/VMCore/Globals.cpp:81: error: ‘cerr’ was not declared in this scope /home/auto-tester/projects/c16/lib/VMCore/Globals.cpp: In member function ‘const llvm::GlobalValue* llvm::GlobalAlias::getAliasedGlobal() const’: /home/auto-tester/projects/c16/lib/VMCore/Globals.cpp:248: error: ‘cerr’ was not declared in this scope make[1]: *** [/home/auto-tester/projects/objs/lib/VMCore/Release/Globals.o] Error 1 make[1]: Leaving directory `/home/auto-tester/projects/objs/lib/VMCore' make: *** [all]...
2013 Oct 30
0
[LLVMdev] [RFC] Alias should not point to declarations
...makes sense to me, but I'm not an expert on ELF aliases. If you're working in this area, there is something that has been bugging me for years about GlobalAlias: because we require the type of the alias and aliasee to match, we have to allow constant exprs in the aliasee (see GlobalAlias::getAliasedGlobal). This representation is bad for several reasons. I think it would be much better to change GlobalAlias to allow the aliasee to have a different type than the alias itself, and then require the aliasee to be an actual GlobalValue, disallowing constexprs completely. -Chris
2013 Oct 30
1
[LLVMdev] [RFC] Alias should not point to declarations
...nse to me, but I'm not an expert on ELF aliases. > > If you're working in this area, there is something that has been bugging me for years about GlobalAlias: because we require the type of the alias and aliasee to match, we have to allow constant exprs in the aliasee (see GlobalAlias::getAliasedGlobal). > > This representation is bad for several reasons. I think it would be much better to change GlobalAlias to allow the aliasee to have a different type than the alias itself, and then require the aliasee to be an actual GlobalValue, disallowing constexprs completely. This is llvm.org/pr10...
2011 Jun 17
3
[LLVMdev] can GlobalAlias point to a middle of a structure?
...the middle element of this struct. The compilation passes, but the resulting object looks like this: 000000000060d150 B Extern 000000000060d150 B Extern_asan_redzone I.e. @Extern points to the beginning of @Extern_asan_redzone instead of middle. Also, the comment in GlobalAlias.h says: /// getAliasedGlobal() - Aliasee can be either global or bitcast of /// global. This method retrives the global for both aliasee flavours. So, the question: can I get an alias pointing to the middle of a GlobalVariable? How? If not, is there some other way to create a left redzone for a global variable? Thanks,...
2013 Oct 30
4
[LLVMdev] [RFC] Alias should not point to declarations
A long time ago (before r97733) we used to model the weakref attribute by outputting a new declaration and a weak alias to it. This was fairly buggy and we now implement weakref directly in clang, with the same logic an assembler uses to implement .weakref (which is what gcc prints). One thing that was left from that old implementation is that we still have alias to declarations and they are a