search for: attrlistptr

Displaying 20 results from an estimated 26 matches for "attrlistptr".

2012 May 28
1
[LLVMdev] VMKIT: Error while producing LLVMruntime.inc (using llvm-as and llc)
vmkit fails to build because llvm-as with llc -march=cpp generate wrong code for AttrListPtr AttrListPtr::get(ArrayRef< AttributeWithIndex >Attrs) http://llvm.org/doxygen/classllvm_1_1AttrListPtr.html#a3a19622d131e9f0d981398f54cf6acfc bellow you can see the faulty generated code llvm-as ./vmkit/lib/vmkit/Compiler/LLVMRuntime.ll -o - | llc -march=cpp -cppgen=contents -o - | grep ...
2012 Jun 22
1
[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5
...e are not listed as prerequisites in the website.). But other errors come: /home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp: In function > ‘llvm::FunctionType* ConvertArgListToFnType(tree_node*, > llvm::ArrayRef<tree_node*>, tree_node*, bool, llvm::CallingConv::ID&, > llvm::AttrListPtr&)’: > /home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp:731:31: error: no > matching function for call to > ‘llvm::AttrListPtr::get(llvm::SmallVector<llvm::AttributeWithIndex, 8u>&)’ > /home/xxx/llvm/include/llvm/Attributes.h:272:22: note: candidate is: > static llv...
2012 Jun 22
0
[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5
>> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/real.h:27:18: >> fatal error: mpfr.h: No such file or directory > > I did some search but found few relevant results. > Any idea what's going on? Do you have MPFR installed? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2012 Jun 22
2
[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5
Hi, When I tried to compile Dragonegg using the SVN trunk code, I encountered failure with error message: In file included from > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/rtl.h:28:0, > from /home/xxx/llvm/dragonegg/src/Convert.cpp:63: > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/real.h:27:18: > fatal error: mpfr.h: No such
2009 Jan 13
2
[LLVMdev] Build problems on MinGW
...I get lots of missing symbol errors from LD. Near the end it goes through a monster link step that spews many screenfuls of link errors. Here's an example from near the end: c:/mingw/src/llvm-2.4/Release/lib/libLLVMBitWriter.a(ValueEnumerator.o):ValueEnumerator.cpp:(.text$_ZNSt6vectorIN4llvm11 AttrListPtrESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[std::vector<llvm::AttrListPtr, std::al locator<llvm::AttrListPtr> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::AttrListPtr*, std::vector<llvm::AttrListP tr, std::allocator<llvm::AttrListPtr> > &g...
2008 Sep 26
4
[LLVMdev] build failure in Attributes.h
I'm seeing a build failure... In file included from /Volumes/mrs5/net/llvm/llvm/lib/VMCore/ Attributes.cpp:14: /Volumes/mrs5/net/llvm/llvm/include/llvm/Attributes.h: In member function 'llvm::Attributes llvm::AttrListPtr::getParamAttributes(unsigned int) const': /Volumes/mrs5/net/llvm/llvm/include/llvm/Attributes.h:152: error: 'assert' was not declared in this scope make[1]: *** [/Volumes/mrs5/net/llvm/llvm-build/lib/VMCore/Debug/ Attributes.o] Error 1 ?
2012 Jun 04
2
[LLVMdev] llc unhandled attribute
...m from c++11 more basic c++ (to transform away auto etc.) using llvm3.1. I generate llvm bitcode using "clang++ -emit-llvm ...", but executing llc -march=cpp throws /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: void {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const string&): Assertion `attrs == 0 && "Unhandled attribute!"' failed. Does this point to some unimplented feature of the transformation? thanks in advance, Broes -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llv...
2008 Sep 26
0
[LLVMdev] build failure in Attributes.h
...Sep 26, 2008, at 4:30 PMPDT, Mike Stump wrote: > I'm seeing a build failure... > > In file included from /Volumes/mrs5/net/llvm/llvm/lib/VMCore/ > Attributes.cpp:14: > /Volumes/mrs5/net/llvm/llvm/include/llvm/Attributes.h: In member > function 'llvm::Attributes > llvm::AttrListPtr::getParamAttributes(unsigned int) const': > /Volumes/mrs5/net/llvm/llvm/include/llvm/Attributes.h:152: error: > 'assert' was not declared in this scope > make[1]: *** [/Volumes/mrs5/net/llvm/llvm-build/lib/VMCore/Debug/ > Attributes.o] Error 1 > > ? > ______________...
2011 Oct 15
2
[LLVMdev] Maximum inlining threshold
Hi, We want to apply the deepest possible inlining to the target code. Looks like builder.Inliner = createFunctionInliningPass(2000); does the sufficient inlining, but what would be the best value for threshold here? Apparently, builder.Inliner = createFunctionInliningPass(numeric_limits<int>::max()); gives less inlining, that 2000. Thanks, - D.
2011 Oct 15
0
[LLVMdev] Maximum inlining threshold
Hi Dmitry, > We want to apply the deepest possible inlining to the target code. Looks like you could give every function the alwaysinline attribute. Ciao, Duncan.
2011 Oct 21
4
[LLVMdev] inline functions
Hi all, I have an LLVM bitcode file, with several functions in it. I'm trying to inline these functions as much as possible, so that I can obtain a big single function. There is opt -inline, but it is not sufficient. Any idea ? -- Julien Henry http://www-verimag.imag.fr/~jhenry/
2011 Oct 21
0
[LLVMdev] inline functions
Hi Julien, > I have an LLVM bitcode file, with several functions in it. > I'm trying to inline these functions as much as possible, so that I can > obtain a big single function. > There is opt -inline, but it is not sufficient. mark your functions with the alwaysinline attribute. Ciao, Duncan.
2012 Oct 15
3
[LLVMdev] Dragonegg build broken?
...Target: x86_64-unknown-linux-gnu Thread model: posix >>>>> Compiling TypeConversion.cpp /local/home/anitha/dragonegg/src/TypeConversion.cpp: In function âllvm::FunctionType* ConvertArgListToFnType(tree, llvm::ArrayRef<tree_node*>, tree, bool, llvm::CallingConv::ID&, llvm::AttrListPtr&)â: /local/home/anitha/dragonegg/src/TypeConversion.cpp:690:3: error: no matching function for call to âllvm::Attributes::Attributes(llvm::Attributes::AttrVal)â /local/home/anitha/dragonegg/src/TypeConversion.cpp:690:3: note: candidates are: In file included from /home/anboyapa/install/include/...
2011 Apr 26
1
[LLVMdev] inserting a fucntion call at the end of basic bloc
...ant *consum = M.getOrInsertFunction("consume", FuncTy_3); llvm::Function* func_consume = llvm::cast<llvm::Function > (consum); func_consume ->setLinkage(GlobalValue::ExternalLinkage); func_consume->setCallingConv(CallingConv::C); AttrListPtr func_consume_PAL; func_consume->setAttributes(func_consume_PAL); i have tried to modify the method consume so that it is void consume(int*) and chaged the declaration also and it works now when i have modified the method consume like this void consume(int) and modified the declarat...
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
...rmal_iterator<llvm::Value**, std::vector<llvm::Value*, std::allocator<llvm::Value*> > >, __gnu_cxx::__normal_iterator<llvm::Value**, std::vector<llvm::Value*, std::allocator<llvm::Value*> > >, llvm::Twine const&, llvm::Instruction*)in ccHkdHVT.o "llvm::AttrListPtr::~AttrListPtr()", referenced from: llvm::CallInst::CallInst<__gnu_cxx::__normal_iterator<llvm::Value**, std::vector<llvm::Value*, std::allocator<llvm::Value*> > > >(llvm::Value*, __gnu_cxx::__normal_iterator<llvm::Value**, std::vector<llvm::Value*, std::allo...
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
...arations Function* func_my_func = mod->getFunction("my_func"); if (!func_my_func) { func_my_func = Function::Create( /*Type=*/FuncTy_3, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"my_func", mod); func_my_func->setCallingConv(CallingConv::C); } AttrListPtr func_my_func_PAL; func_my_func->setAttributes(func_my_func_PAL); BasicBlock* label_issue_top = BasicBlock::Create(mod->getContext(), "issue.top",func_my_func,0); BasicBlock* label_switch_body_begin = BasicBlock::Create(mod->getContext(), "switch.body.begin",f...
2010 Feb 02
2
[LLVMdev] function inlining
Hi! I have a llvm::Module that references an external function and a second mdoule that implements the function. The implementation consists of only one instruction. How can I explicitly inline this function? -Jochen
2010 Feb 02
0
[LLVMdev] function inlining
On Tue, Feb 2, 2010 at 11:40 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote: > Hi! > > I have a llvm::Module that references an external function > and a second mdoule that implements the function. > The implementation consists of only one instruction. > How can I explicitly inline this function? > > -Jochen > >
2012 Jun 04
0
[LLVMdev] llc unhandled attribute
...t; I generate llvm bitcode using "clang++ -emit-llvm ...", but executing >> > llc >> > -march=cpp throws >> > /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: >> > void >> > {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const >> > string&): Assertion `attrs == 0 && "Unhandled attribute!"' failed. >> > >> > Does this point to some unimplented feature of the transformation? >> Yes, but it seems irrelevant to your task. CPP backend generates the >&gt...
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > where did the "noalias" attribute and "tail call" (rather than "call") come > from? Are you setting these yourself or running some optimization pass after > your pass? > > > i have written a module pass and i have compiled it and then you didn't answer my questions, you just repeated what you said before. Ciao,