[llvm-bugs] [Bug 28491] New: Generating C++ using -march=cpp generate code that does not compile
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 10 04:15:56 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28491
Bug ID: 28491
Summary: Generating C++ using -march=cpp generate code that
does not compile
Product: tools
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: llc
Assignee: unassignedbugs at nondot.org
Reporter: rju65 at terransystems.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 16719
--> https://llvm.org/bugs/attachment.cgi?id=16719&action=edit
this file contains the three files. Helloworld.c .ll and .cpp
>From what I've been able to find, I believe this is an issue. I'm just starting
to understand how to use LLVM in my own project was hoping this would help me
learn the LLVM c++ api.
The code generated for my simple Hello_world 'C' program does not compile. I've
found a reference
[http://lists.llvm.org/pipermail/llvm-dev/2016-February/095272.html] deals with
one aspect of the code generated that needs to change -
from : Value* int32_argc = args++;
to : Value* int32_argc = &*(args++); // I believe
>From searching the include path the following is in 'llvm/IR/' not as generated
in
<llvm/Analysis/Verifier.h>
the instantiation of the PassManager needs the legacy namespace prefixed.
There are other items I'm having issues with; 'PrintMessageAction' appears to
be undefined. clang wants three parameters for
ConstantExpr::getGetElementPtr(gvar_array__str, const_ptr_11_indices);
I was really pleased to find out that I could create c++ code for my IR.
examples are always useful. I'm hoping this report helps.
I'm running Ubuntu 14.04. the installed version of clang 3.8.1 from LLVM
download.
Best regards
Ray
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160710/ec2869f5/attachment-0001.html>
More information about the llvm-bugs
mailing list