Questions tagged [llvm-3.2]

Collection of modular and reusable compiler and toolchain technologies.

2 questions
7
votes
1 answer

LLVM IR: efficiently summing a vector

I'm writing a compiler that's generating LLVM IR instructions. I'm working extensively with vectors. I would like to be able to sum all the elements in a vector. Right now I'm just extracting each element individually and adding them up manually,…
David Given
  • 13,277
  • 9
  • 76
  • 123
1
vote
1 answer

Error: X86CodeEmitter LLVM

I'm having the following problem when I run my program: pseudo instructions should be removed before code emission UNREACHABLE executed at /home/leonor/llvm/llvm/lib/Target/X86/X86CodeEmitter.cpp:1164! Stack dump: 0. Running pass 'X86 Machine Code…
user2084755
  • 169
  • 1
  • 9