[LLVMdev] llc unhandled attribute

Anton Korobeynikov anton at korobeynikov.info
Mon Jun 4 05:37:42 PDT 2012


>> > 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



More information about the llvm-dev mailing list