Questions tagged [llvm-gcc]

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

218 questions
0
votes
1 answer

iPod Touch 2nd no response to Run in xcode4.2

Googled for few hours and I got no answers. There is my steps: 1 create a new project without ARC in xcode4.2 2 add armv6 to a architectures. it shows: armv6 $(ARCHS_STANDARD_32_BIT) 3 change iOS Deployment Target to iOS4.1 4 check my code signing…
EggErr
  • 195
  • 2
  • 7
0
votes
1 answer

How to specify high/low part of double word operand with llvm-gcc inline assembly?

In GCC4.2(Xcode3), I use %R0/%Q0 to specify the high/low part of double word operand in inline assembly. But the following code generates error in llvm-gcc (Xcode4): error: invalid operand in inline asm: 'mov ${0:D}, $1 Can someone point me a…
hc-song
  • 99
  • 3
0
votes
1 answer

Template and Forward declaration in Apple LLVM 3.0

I am working on an application(contains 3 projects, 2 in c++ and one in Objective-C) which compiles perfectly for LLVM GCC compiler. But when I switch the compiler to 'Apple LLVM compiler 3.0' I found one strange error as follow: error: implicit…
UPT
  • 1,490
  • 9
  • 25
0
votes
2 answers

Possible OpenMP + SSE bug when using _mm_shuffle_ps in Xcode 4 (LLVM GCC)

I have switched my compiler to LLVM GCC 4.2 in XCode 4.2 from GCC and have run into a strange linker error for the _mm_shuffle_ps intrinsic under OpenMP. This function will works else where but once I put it within a omp block it starts generating…
cubiclewar
  • 1,569
  • 3
  • 20
  • 37
0
votes
0 answers

gcc for Windows xp 2002(32bit)

any way to compile a .c file with gcc on Windows xp profession(32bit) into an .exe which can run on there?does any one has the url to download such gcc? if someone can provide a place for me to download such c-compilor??
linchen
  • 1
  • 2
0
votes
0 answers

Encounter errors when run LNT runtest

I am intended to use lnt to run tests. I followed the Quick Start on my Intel MacBook. However, when I come into the step of lnt runtest test-suite \ --sandbox /tmp/BAR \ --cc ~/llvm.obj.64/Release+Asserts/bin/clang \ --cxx…
Yi Sun
  • 1
0
votes
0 answers

Gcc vector extension - vector with identical values

I played around with the gcc vector extension. Among other things, you can for example calculate vector + vector, vector + scalar, or scalar + vector. The scalar is converted to a vector with all identical elements. But I cannot find a way to set a…
gnasher729
  • 51,477
  • 5
  • 75
  • 98
0
votes
1 answer

LLVM compiling with GCC i32 is truncated to i8

compiling this simple code should return 2000 but it returns 208 because it gets truncated to i8. define i32 @"main"() { entry: %"x" = alloca i32 store i32 2000, i32* %"x" %".3" = load i32, i32* %"x" ret i32 %".3" } this is how I compiled…
TAW
  • 13
  • 4
0
votes
0 answers

/usr/include/x86_64-linux-gnu/bits/getopt_core.h:91:12: error: declaration of ‘int getopt(int, char* const*, const char*)

While I'm building LLVM using the CCR implementation. I'm getting the following error. /usr/include/x86_64-linux-gnu/bits/getopt_core.h:91:12: error: declaration of ‘int getopt(int, char* const*, const char*) noexcept’ has a different exception…
NobinPegasus
  • 545
  • 2
  • 16
0
votes
1 answer

xcode - how to change compiler?

I am trying to change the compiler version in xcode 3.1.4. I went to Project settings -> Build -> Compiler version, but I can only choose "com.apple.compilers.llvmgcc42". I looked up the library/xcode/plugins/-folder and it looks like there are…
0
votes
1 answer

How can i verify whether my Code is Vectorized or not?

I am using Automatic Vectorization of compiler to generate the vectorized Code. For. e.g. for (i = 0; i < 20; i++) { A[i] = i; } for (i = 0; i < 20; i++) { A[i] = A[i] + 5; } For the above…
PhantomM
  • 825
  • 6
  • 17
  • 34
0
votes
1 answer

Assertion failed: (LHSCst != RHSCst && "Compares not folded above?")

I'm trying to compile ICU v4.8.1 with Alchemy, but am running into an LLVM problem: Assertion failed: (LHSCst != RHSCst && "Compares not folded above?"), function visitAnd, file…
paleozogt
  • 6,393
  • 11
  • 51
  • 94
0
votes
1 answer

debugging llvm-ld crash

I am getting an assertion-failure crash in llvm-ld. I'd like to track this back to a line of my code (since maybe there's some squirrely code of mine that's causing this). Can llvm-ld create a log file or otherwise point me to why its unhappy?
paleozogt
  • 6,393
  • 11
  • 51
  • 94
0
votes
1 answer

Replacing RHS of an instruction with an instruction in LLVM

Here is the problem, Lets say suppose, I have the following instruction %add = add nsw i32 %argc, 50 I would like at first, create a Binary instruction something like below %T1 = add nsw i32 %argc, 50 %add = add nsw i32 %argc, 50 And then somehow…
0
votes
1 answer

not able to generate controll flow graphs for big programs using LLVM clang

I want to create a software-generated control flow diagram for this code using LLVM CFG https://github.com/inmcm/Simon_Speck_Ciphers/blob/master/C/speck.c But when I followed the instructions given on the LLVM webpage…
arc111
  • 1
  • 1