llvm Questions
2
Solved
I'm working on verifying some Rust code using SAW. SAW requires that you compile to LLVM bitcode, which you can then import and verify. I know you can generate bitcode using the --emit=llvm-bc flag...
Riband asked 3/9, 2021 at 8:48
1
I would like to disable specific known warnings in C++ code coming from a library header when compiling my own code. There are clang and gcc specific methods for disabling the warnings. The way thi...
5
I am trying to write a program to JIT some code. The JITTed code needs to make calls back into the running application for run-time support and the run-time support symbols are not found when the f...
7
Solved
On my version of Mac OS X (10.7.1 (Lion) and Xcode 4.1), there is LLVM 3.0svn and Clang 2.1.
The current versions are LLVM 3.0 and Clang 3.0.
From the Xcode web site, it seems that the latest versi...
2
Solved
LLVM has a back end for both AMD and NVIDIA GPUS. Is it currently possible to compile c++ (or a subset) to GPU code with clang and run it? Obviously things like the standard library would be unavai...
4
Solved
I'm running OS X, 10.8.5; I've installed llvm 3.4 via homebrew (clang version 3.4 (tags/RELEASE_34/final) ), and I'm building with -fsanitize=address. I can get asan working with simple demo progra...
Assault asked 27/3, 2014 at 18:22
9
My Dockerfile using a pypy base fails with FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config' when installing llvmlite, a dependency of numba which is listed in my requirements.t...
5
I recently installed LLVM v8.0.0 (on RHEL 7.4). I am going through the LLVM Kaleidoscope tutorial to learn how to use the system, but am running into an issue linking.
Per the tutorial (end of cha...
Scatter asked 16/12, 2018 at 18:1
13
Solved
I have a number of projects built using CMake and I'd like to be able to easily switch between using GCC or Clang/LLVM to compile them. I believe (please correct me if I'm mistaken!) that to use Cl...
10
Solved
The question is quite clear I think. I'm trying to write a compiler detection header to be able to include in the application information on which compiler was used and which version.
This is part...
Middleaged asked 24/10, 2009 at 12:23
15
Solved
I have a project which compiled perfectly in the past, but after the last Xcode update (6.3.2) I get a compile error whenever I try to run it directly on a device. Building and Running it in the si...
Doddered asked 1/6, 2015 at 14:55
2
Solved
If a function call is direct, you can get the Function type through the following code.
Function * fun = callInst->getCalledFunction();
Function * funType = fun->getFunctionType();
However...
2
Solved
I found that my project sets
GCC_NO_COMMON_BLOCKS = NO
under Apple LLVM Compiler 3.1 - Code Generation settings, as "No Common Blocks"
I would like to know: what is that flag used for?
Tha...
Anhydride asked 27/6, 2012 at 19:1
4
Solved
I am trying to use lldb for c++ debugging and I want to halt if an exception is thrown, like gdb's catch throw, and I cannot find an equivalent in the lldb documentation.
2
Solved
It's kind of subjective, but I'm having troubles getting LLVM JIT up to speed. Jitting large bodies of code take 50 times as much time as just interpreting them even with lazy compilation turned on...
1
In C, I can output compiler optimization information using the following command:
clang -O2 main.c -o main -fsave-optimization-record
Does rust also have such options to output optimization inform...
Loaves asked 24/10, 2023 at 8:22
2
Solved
I am using Clang to parse some C++ code. I would like to print the name and mangled name for every FunctionDecl that I encounter.
I can print the function name fairly easily by adding this to my ...
Sharika asked 22/11, 2016 at 11:24
1
Is there a way to get the called function from a machine instruction?
Right now I'm identifying if the machine instruction is a function call or not as below:
for (MachineBasicBlock &MBB : MF) ...
1
Solved
I am using numba 0.57.1 and I would like to exploit the native CPU popcount in my code. My existing code is too slow as I need to run it hundreds of millions of times. Here is a MWE:
import numba a...
4
When I am trying to build my code on Xcode, I am getting
clang: error: unable to execute command: Bus error: 10
clang: error: linker command failed due to signal (use -v to see invocation)
Anyon...
3
Hi I just downloaded LLVM using the command
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
How can I determine the version of this LLVM (4.0, 3.9 or 3.8 etc)?
Mond asked 12/8, 2016 at 22:12
2
I am working on a language that is compiled with LLVM. Just for fun, I wanted to do some microbenchmarks. In one, I run some million sin / cos computations in a loop. In pseudocode, it looks like t...
Helio asked 18/9, 2012 at 21:18
1
Solved
We've tried to beautify our code a bit with clang-format tool.
In order to get unified result on all machines we've done clang-format --style=llvm --dump-config, which has been tuned a bit and st...
Laminitis asked 18/10, 2019 at 12:25
6
Trying to install llvmlite via pip by running
pip install llvmlite
constantly gives me this error:
RuntimeError: <path> failed executing, please point LLVM_CONFIG to the path for llvm-confi...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.