search for: getptr

Displaying 6 results from an estimated 6 matches for "getptr".

Did you mean: get_ptr
2010 May 31
1
[LLVMdev] Error with instruction selection
Hello, I'm seeing a miscompilation from the following code: declare <4 x float>* @getPtr() define <4 x float> @func() { %rv1 = call <4 x float>* @getPtr() %rv2 = call <4 x float>* @getPtr() %rv3 = load <4 x float>* %rv1 ret <4 x float> %rv3 } The load ends up loading from the pointer returned by the 2nd function call. I traced down the problem to cal...
2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
..."you shouldn't use Module/Inliner like this". The problem is related to using templates (and thereby linkonce_odr) with lazy deserialization. I've reduced it down to a simple test (also attached as bitcode_input.cc): template<typename T> class SomeContainer { public: T* getPtr() { return data; } T* data; }; extern "C" float* RunStuff(void) { SomeContainer<float> emptyContainer; return emptyContainer.getPtr(); } This code is compiled via clang into llvm bitcode (clang++ -emit-llvm -c bitcode_input.cc -o test.bc), and then loaded at runtime via g...
2012 Jul 06
1
[LLVMdev] Elf_Dyn_Impl Question
Should Elf_Dyn_Impl in Object/ELF.h also have a 32bit version. getTag/getVal/getPtr all return 64bit types however Elf_Addr etc will not always be 32bit?
2010 May 31
0
[LLVMdev] Finding Merge nodes in CFG (ambika@cse.iitb.ac.in)
...> To: <llvmdev at cs.uiuc.edu> > Message-ID: <1275313646.13411.91.camel at LLVMbuilder.research.nokia.com> > Content-Type: text/plain; charset="utf-8" > > Hello, > I'm seeing a miscompilation from the following code: > > declare <4 x float>* @getPtr() > define <4 x float> @func() { > %rv1 = call <4 x float>* @getPtr() > %rv2 = call <4 x float>* @getPtr() > %rv3 = load <4 x float>* %rv1 > ret <4 x float> %rv3 > } > > The load ends up loading from the pointer retur...
2008 Oct 02
3
[LLVMdev] MS C++ gives error C2371 on this code while (obviously) gcc compiles it fine
Taken from tools/llvmc2/CompilationGraph.cpp: ... for (typename C::const_iterator B = EdgesContainer.begin(), E = EdgesContainer.end(); B != E; ++B) { const Edge* E = B->getPtr(); ... MS C++ compiler (VS 2008) gives: ... CompilationGraph.cpp ..\..\..\llvm\tools\llvmc2\CompilationGraph.cpp(58) : error C2371: 'E' : redefinition; different basic types ..\..\..\llvm\tools\llvmc2\CompilationGraph.cpp(57) : see declaration of 'E' ... While GCC compiles...
2003 Oct 27
5
Windows Build - Down to Run Time Errors
I finally got a clean compile and link for wxRuby. Now I''m down to deciphering runtime errors. Once again, I''m going to pick up on this tomorrow, but I thought I''d post my console output tonight to see if anyone has any thoughts before I tackle this tomorrow. I''m running the same app "minimal.rb" E:\Dev\RubyDev\wxruby\samples\minimal>ruby