Hi, I was trying to do a source to source transformation in llvm 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.llvm.org/pipermail/llvm-dev/attachments/20120604/8e8065d9/attachment.html>
> I was trying to do a source to source transformation in llvm 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?Yes, but it seems irrelevant to your task. CPP backend generates the C++ code containing LLVM API calls necessary to construct the input IR. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
>> > I was trying to do a source to source transformation in llvm 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? >> Yes, but it seems irrelevant to your task. CPP backend generates the >> C++ code containing LLVM API calls necessary to construct the input >> IR.> Ah indeed. > Is there an alternative approach which would yield such a source to source > transformation?Not that I'm aware of. Try emailing cfe-dev. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University