Displaying 1 result from an estimated 1 matches for "_ticket_stl".
Did you mean:
ticket_stl
2012 Apr 09
1
[LLVMdev] llc -march=cpp fails when using some STL stuff?
...h generates ticket.s)
2) llc -march=cpp ticket.s
So that I end up with a ticket.s.cpp that I can inspect to learn more about how to define structures in LLVM IR, while the following:
//File ticket_stl.cpp
#include <vector>
struct ticket_stl
{
int field1;
std::vector<int> field2;
} _ticket_stl;
Fails during step 2) (llc -march=cpp ticket_stl.s) with a laconic:
LLVM ERROR: Invalid instruction
Everything works if I instead perform step 1) with -O1.
For what it's worth, the online compiler at http://llvm.org/demo/index.cgi, targeting "LLVM C++ API code", exhibits the same...