Displaying 20 results from an estimated 30 matches for "__llvm__".
2016 Jul 21
2
FreeBSD user willing to try fix a unit test?
Hi all
In unittests/ADT/APIntTest.cpp I came across this test:
// XFAIL this test on FreeBSD where the system gcc-4.2.1 seems to miscompile it.
#if defined(__llvm__) || !defined(__FreeBSD__)
TEST(APIntTest, i33_Count) {
APInt i33minus2(33, static_cast<uint64_t>(-2), true);
EXPECT_EQ(0u, i33minus2.countLeadingZeros());
EXPECT_EQ(32u, i33minus2.countLeadingOnes());
EXPECT_EQ(33u, i33minus2.getActiveBits());
EXPECT_EQ(1u, i33minus2.countTrailingZ...
2016 Jul 23
2
FreeBSD user willing to try fix a unit test?
On 23 July 2016 at 11:08, Dimitry Andric via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Let's just drop the || !defined(__FreeBSD__) part. Btw, any idea what the
> defined(__llvm__) part is supposed to accomplish?
It was added in the same commit, and given the comment above I think
it's probably so the test still runs on FreeBSD if Clang is
self-hosting.
Tim.
2006 Nov 09
0
[LLVMdev] LLVM and newlib progress
On Thu, 9 Nov 2006, [ISO-8859-1] Pertti Kellom�ki wrote:
> to identify that we are compiling to LLVM byte code. If there is
> one, I'd be happy to hear it, but if not, then it might be a good
> idea to define __LLVM__ or something like that in (by) llvm-gcc.
llvm-gcc defines __llvm__.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2006 Nov 09
3
[LLVMdev] LLVM and newlib progress
Chris Lattner kirjoitti:
> llvm-gcc defines __llvm__.
Thanks. I thought I tried it, but apparently not.
--
Pertti
2006 Nov 09
9
[LLVMdev] LLVM and newlib progress
...e any major problems.
A couple of things I noticed when configuring newlib for LLVM.
First, I did not find any preprocessor symbols that I could use
to identify that we are compiling to LLVM byte code. If there is
one, I'd be happy to hear it, but if not, then it might be a good
idea to define __LLVM__ or something like that in (by) llvm-gcc.
Another related thing is that even when I defined -emit-llvm in
what I thought would be a global CFLAGS for all of newlib, it did
not get propagated to all subdirectories.
I solved both of these issues by creating a shell script that is
just a fall-throug...
2015 Oct 28
4
RFC: Supporting macros in LLVM debug info
...---------------------------
=========================================================
Command line:
clang -c -g -gmacro -O0 -DM3=Value3 -include myfile2.h mainfile.c
AST
=========================================================
MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
... <More compiler macros> ...
MacroDecl 0x11c01b0 <<invalid sloc>> <invalid sloc> M3 defined
FileIncludeDecl 0x11c0208 <mainfile.c:1:1> col:1
|-FileIncludeDecl 0x11c0238 &...
2010 Aug 30
0
[LLVMdev] llvmgcc-4.2 llvmg++-4.2 on OS X -- missing GCC __builtin intrinsics
Hi Kent, I suggest you open a bug report with a preprocessed testcase.
Best wishes,
Duncan.
> I've had good luck using the llvm-gcc& llvm-g++ on small projects,
> but I just discovered that it's apparently missing some of the GCC
> intrinsic functions -- specifically, when I try and compile VXL
> (http://vxl.sourceforge.net) it dies when it encounters
>
2006 Nov 09
0
[LLVMdev] LLVM and newlib progress
Pertti Kellomäki wrote:
> Chris Lattner kirjoitti:
>
>>llvm-gcc defines __llvm__.
>
>
> Thanks. I thought I tried it, but apparently not.
Try:
<path-to-llvm-gcc-install>/llvm-cpp -dM /dev/null | grep -y llvm
llvm-cpp should be installed if you built the gcc frontend. Mine reports
__llvm__.
BTW: Would be nice if the frontend defined a manifest constant if it...
2010 Aug 30
2
[LLVMdev] llvmgcc-4.2 llvmg++-4.2 on OS X -- missing GCC __builtin intrinsics
I've had good luck using the llvm-gcc & llvm-g++ on small projects,
but I just discovered that it's apparently missing some of the GCC
intrinsic functions -- specifically, when I try and compile VXL
(http://vxl.sourceforge.net) it dies when it encounters
__builtin_bswap32 .
This is on OS X with the llvm-gcc-4.2 & llvm_g++-42 that are part of
the XCode 3.2.3
I don't know if
2015 Nov 03
3
RFC: Supporting macros in LLVM debug info
...---------------------------
=========================================================
Command line:
clang -c -g -gmacro -O0 -DM3=Value3 -include myfile2.h mainfile.c
AST
=========================================================
MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
… <More compiler macros> …
MacroDecl 0x11c01b0 <<invalid sloc>> <invalid sloc> M3 defined
FileIncludeDecl 0x11c0208 <mainfile.c:1:1> col:1
|-FileIncludeDecl 0x11c0238 <m...
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
...one usually use __main() and CODE_FOR_MAIN()
> in tying up with the rest of the code?
I'm not quite sure what you're asking. CODE_FOR_MAIN is defined in your
helloworld.c file as:
#define CODE_FOR_MAIN() /* Any target-specific code for main()*/
#if defined(__GNUC__) && !defined(__llvm__)
#if defined(i386) || defined(__i386__) || defined(__i386) ||
defined(__x86_64__)
#undef CODE_FOR_MAIN
#define CODE_FOR_MAIN() \
{short F;__asm__ ("fnstcw %0" : "=m" (*&F)); \
F=(F&~0x300)|0x200;__asm__("fldcw %0"::"m"(*&F));}
#endif
#endif
A...
2015 Nov 03
2
RFC: Supporting macros in LLVM debug info
...---------------------------
=========================================================
Command line:
clang -c -g -gmacro -O0 -DM3=Value3 -include myfile2.h mainfile.c
AST
=========================================================
MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
… <More compiler macros> …
MacroDecl 0x11c01b0 <<invalid sloc>> <invalid sloc> M3 defined
FileIncludeDecl 0x11c0208 <mainfile.c:1:1> col:1
|-FileIncludeDecl 0x11c0238 <m...
2015 Nov 05
2
RFC: Supporting macros in LLVM debug info
...---------------------------
=========================================================
Command line:
clang -c -g -gmacro -O0 -DM3=Value3 -include myfile2.h mainfile.c
AST
=========================================================
MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
… <More compiler macros> …
MacroDecl 0x11c01b0 <<invalid sloc>> <invalid sloc> M3 defined
FileIncludeDecl 0x11c0208 <mainfile.c:1:1> col:1
|-FileIncludeDecl 0x11c0238 <m...
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi:
I've been able to compile the attached "helloworld.c" file converted
from "helloworld.cpp".
My question is how does one usually use __main() and CODE_FOR_MAIN()
in tying up with the rest of the code?
Attached here are the original "helloworld.cpp" and "helloworld.c"
files.
Thanks.
Napi
On Sun, 2006-11-05 at 09:14 -0800, Reid Spencer wrote:
>
2015 Nov 13
2
RFC: Supporting macros in LLVM debug info
...========
>
>
>
> Command line:
>
> clang -c -g -gmacro -O0 -DM3=Value3 -include myfile2.h mainfile.c
>
>
>
>
>
> AST
>
> =========================================================
>
> MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
>
> MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
>
>
>
> … <More compiler macros> …
>
>
>
> MacroDecl 0x11c01b0 <<invalid sloc>> <invalid sloc> M3 defined
>
> FileIncludeDecl 0x11c0208 <...
2015 Nov 04
2
RFC: Supporting macros in LLVM debug info
...gt;
>> clang -c -g -gmacro -O0 -DM3=Value3 -include myfile2.h mainfile.c
>>
>>
>>
>>
>>
>> AST
>>
>> =========================================================
>>
>> MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
>>
>> MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
>>
>>
>>
>> … <More compiler macros> …
>>
>>
>>
>> MacroDecl 0x11c01b0 <<invalid sloc>> <invalid sloc> M3 defined...
2015 Nov 13
2
[cfe-dev] RFC: Supporting macros in LLVM debug info
...3=Value3 -include myfile2.h mainfile.c
>>>
>>>
>>>
>>>
>>>
>>> AST
>>>
>>> =========================================================
>>>
>>> MacroDecl 0xd6c5c0 <<invalid sloc>> <invalid sloc> __llvm__ defined
>>>
>>> MacroDecl 0xd6c618 <<invalid sloc>> <invalid sloc> __clang__ defined
>>>
>>>
>>>
>>> … <More compiler macros> …
>>>
>>>
>>>
>>> MacroDecl 0x11c01b0 <<invalid sloc&...
2005 Jul 25
0
[LLVMdev] Compile a linux kernel with LLVM?
ymxia at nudt.edu.cn wrote:
> When I compiled a linux kernel, gccas was used to compile assembly code.
>
> But gccas cannot recognize the line comment character "#" of gnu assembler,
>
> and abort the compile with reporting a error "syntax error, unexpected $undefined".
>
> I watch llvm/tools/gccas, but donot known how to add this function in it.
>
2006 Nov 09
0
[LLVMdev] LLVM and newlib progress
On Thu, 9 Nov 2006, Markus F.X.J. Oberhumer wrote:
> > llvm-gcc defines __llvm__.
> Could we add some more detailed version information to the frontend,
> e.g. such as a predefined -D__llvm_bytecode_version__=6 ?
Why do you need this?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
2005 Jul 25
2
Re: [LLVMdev] Compile a linux kernel with LLVM?
When I compiled a linux kernel, gccas was used to compile assembly code.
But gccas cannot recognize the line comment character "#" of gnu assembler,
and abort the compile with reporting a error "syntax error, unexpected $undefined".
I watch llvm/tools/gccas, but donot known how to add this function in it.
Would you give me some suggestions?
Thanks.