Displaying 20 results from an estimated 70000 matches similar to: "[LLVMdev] Source code to LLVM C++ API"
2013 Feb 08
2
[LLVMdev] LLVM demo page
On Thu, Feb 07, 2013 at 11:09:10AM +0100, Óscar Fuentes wrote:
> Blind Faith <person.of.book at gmail.com> writes:
>
> > I used the LLVM demo page http://llvm.org/demo/ to generate C++ code for
> > generating LLVM IR code. But that page is now disabled. Is there any tool
> > or other site which does what I'm trying to do, that is I give "C/C++ code"
2013 Feb 07
0
[LLVMdev] LLVM demo page
Blind Faith <person.of.book at gmail.com> writes:
> I used the LLVM demo page http://llvm.org/demo/ to generate C++ code for
> generating LLVM IR code. But that page is now disabled. Is there any tool
> or other site which does what I'm trying to do, that is I give "C/C++ code"
> as input and I get the "C++ code for generating the equivalent LLVM IR" as
2013 Feb 14
0
[LLVMdev] LLVM demo page
On Feb 7, 2013, at 6:26 PM, 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw> wrote:
> On Thu, Feb 07, 2013 at 11:09:10AM +0100, Óscar Fuentes wrote:
>> Blind Faith <person.of.book at gmail.com> writes:
>>
>>> I used the LLVM demo page http://llvm.org/demo/ to generate C++ code for
>>> generating LLVM IR code. But that page is now disabled. Is there
2013 Feb 07
3
[LLVMdev] LLVM demo page
I used the LLVM demo page http://llvm.org/demo/ to generate C++ code for
generating LLVM IR code. But that page is now disabled. Is there any tool
or other site which does what I'm trying to do, that is I give "C/C++ code"
as input and I get the "C++ code for generating the equivalent LLVM IR" as
output.
-------------- next part --------------
An HTML attachment was
2013 Feb 17
1
[LLVMdev] LLVM demo page
Will this one help?
http://ellcc.org/demo/index.cgi
Cheers,
Nico
On Feb 14, 2013, at 11:31 PM, Tanya Lattner <lattner at apple.com> wrote:
>
> On Feb 7, 2013, at 6:26 PM, 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw> wrote:
>
>> On Thu, Feb 07, 2013 at 11:09:10AM +0100, Óscar Fuentes wrote:
>>> Blind Faith <person.of.book at gmail.com> writes:
2013 Feb 07
0
[LLVMdev] LLVM demo page
Blind Faith <person.of.book at gmail.com> writes:
>> You can use clang++ and llc for that:
>>
>> $ clang++ -c -emit-llvm foo.cpp -o foo.ll
>> $ llc -march=cpp -o foo.ll.cpp foo.ll
>>
>> (Note: the CppBackend is not enabled by default when you build with
>> CMake on Windows.)
>
> It says "llc: error: invalid target 'cpp'"
See
2016 Jun 23
2
clang++ build from source is not able to find C++ headers
Hello,
I am running OS X, when I build clang++ from source and use it to compile
.cpp files it fails as it is not able to find C++ header. I am not building
libc++ along with llvm and clang.
using -stdlib=libstdc++ solves problem partially but it fails when using
C++11 threads, again it can't find <thread>, to get this work clang++
should work with -stdlib=libc++ but it fails with
2016 Jul 06
3
[cfe-dev] clang++ build from source is not able to find C++ headers
On Wed, Jul 6, 2016 at 1:21 PM, Mehdi Amini via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
> On Jun 23, 2016, at 11:15 AM, Cristianno Martins via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> Hi Vivek,
>
> you can also include these lines below to your ~/.bash_profile:
>
> LLVM_BUILD="/Developer/llvm/build" # Path to your build directory
2016 Jun 23
2
[cfe-dev] clang++ build from source is not able to find C++ headers
On Thu, Jun 23, 2016 at 7:36 PM, Tim Northover <t.p.northover at gmail.com>
wrote:
> On 23 June 2016 at 06:31, vivek pandya via cfe-dev
> <cfe-dev at lists.llvm.org> wrote:
> > I am running OS X, when I build clang++ from source and use it to compile
> > .cpp files it fails as it is not able to find C++ header. I am not
> building
> > libc++ along with llvm
2010 Oct 14
1
[LLVMdev] print machine code using llvm c++ api
Hi,
I know using llc i can print machine code (-print-machineinstrs).
How can i print machine code using llvm c++ api.. i looked into llc code but not able to find it..
Thanks & Regards,
Pachauri
2016 Jun 23
4
[cfe-dev] clang++ build from source is not able to find C++ headers
Hi Vivek,
you can also include these lines below to your ~/.bash_profile:
LLVM_BUILD="/Developer/llvm/build" # Path to your build directory
alias new-clang="$LLVM_BUILD/bin/clang -Wno-expansion-to-defined
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include"
alias new-clang++="$LLVM_BUILD/bin/clang++
2018 Jan 06
0
Relationship between clang, opt and llc
-disable-O0-optnone has no effect with anything other than -O0.
-O0 being passed to clang also causes all functions to be marked noinline.
I don't know if there is a command line option to turn that off.
I recommend passing "-O1 -Xclang -disable-llvm-passes" to clang. Passing
-O0 very specifically means disable optimizations.
~Craig
On Sat, Jan 6, 2018 at 12:25 PM, toddy wang
2018 Jan 06
0
Relationship between clang, opt and llc
Why are you using build directions from "flang" which is a fortran compiler
and maintained by different people than the LLVM/clang community? But then
compiling C/C++ code? Their bug database should be used for filing bugs
against the fortran compiler not a C/C++ compiler issue.
~Craig
On Sat, Jan 6, 2018 at 1:04 PM, toddy wang <wenwangtoddy at gmail.com> wrote:
> Thanks a
2012 Mar 30
0
[LLVMdev] Invalid code generated for on-stack class compares
clang++ generates invalid code for on-stack struct compares with
overloaded operators in release 3.0.
Take the following code:
struct A {
bool operator<(const A& other)
{ return ((long long int)this) < ((long long int)&other); }
};
int main() {
A a, b;
return (a < b) + (b < a);
}
Usually, this program should return 1. Compiling it with "clang++ -Ox"
with x
2018 Jan 06
2
Relationship between clang, opt and llc
@Craig and @Michael
After installing clang-5.0 (download from http://releases.llvm.org, does
not have Flang build's slowdown mention above),
1. clang++ -O0 -Xclang -disable-O0-optnone -Xclang -disable-llvm-passes -c
-emit-llvm -o a.bc LULESH.cc; opt -O3 a.bc -o b.bc; llc -O3 -filetype=obj
b.bc -o b.o ; clang++ b.o -o b.out; ./b.out 20
runtime: 2.354069e+01
2. clang++ -O1 -Xclang
2018 Jan 06
2
Relationship between clang, opt and llc
Thanks a lot, it is clear to me now.
BTW, for Clang's slowdown, I submit an issue here:
https://github.com/flang-compiler/flang/issues/356
I have no idea about the root cause.
Maybe due to debug symbols. But, I already use -DCMAKE_BUILD_TYPE=Release.
Anyway, I believe there is a bug somewhere.
On Sat, Jan 6, 2018 at 3:43 PM, Craig Topper <craig.topper at gmail.com> wrote:
>
2018 Jan 06
0
Relationship between clang, opt and llc
@Zhaopei, thanks for the clarification.
@Craig and @Michael, for clang 4.0.1, -Xclang -disable-O0-optnone gives
the following error message. From which version -disable-O0-optnone gets
supported?
[twang15 at c89 temp]$ clang++ -O0 -Xclang -disable-O0-optnone -Xclang
-disable-llvm-passes -c -emit-llvm -o a.bc LULESH.cc
error: unknown argument: '-disable-O0-optnone'
[twang15 at c89
2012 Apr 09
1
[LLVMdev] llc -march=cpp fails when using some STL stuff?
Hi,
I'm really a novice in experimenting with LLVM, so I might be doing something plain wrong here, but I can't understand why this snippet
// File ticket.cpp
struct ticket
{
int field1;
char field2[10];
} _ticket;
goes fine through the sequence
1) clang++ -O0 -S -emit-llvm ticket.cpp (which generates ticket.s)
2) llc -march=cpp ticket.s
So that I end up with a ticket.s.cpp that I
2013 Jul 31
0
[LLVMdev] MSVC++ ABI compatibility is not a Windows requirement (was: Proposing a new 'alloca' parameter attribute to implement the Microsoft C++ ABI)
On Jul 31, 2013, at 3:13 PM, Óscar Fuentes <ofv at wanadoo.es> wrote:
> Full disclosure: I'm the guy who filled the PR requesting the feature
> the OP's is working on and, when someone tried to close it as WONTFIX, I
> strongly opposed. Furthermore, MSVC++ is my Windows compiler and my
> projects suffer from unwelcome complexity for working around the lack of
> this
2011 Nov 25
0
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
On Nov 25, 2011, at 8:39 AM, Michael Spencer wrote:
> So I was taking a look at Microsoft C++ ABI support while on vacation,
> and ran into a major issue. Given the following llvm-ir:
>
> $ clang++ -S -emit-llvm -O3 mangling.cpp -o - -Xclang -cxx-abi -Xclang microsoft
> ; ModuleID = 'mangling.cpp'
> target datalayout =
>