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...
Thermionic asked 23/2, 2015 at 18:59

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...
North asked 22/8, 2019 at 14:57

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...
Necrophobia asked 29/12, 2011 at 23:8

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...
Millymilman asked 7/3, 2017 at 5:36

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...
Bloodyminded asked 12/10, 2019 at 10:49

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...
Unskilled asked 11/8, 2011 at 18:42

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...
Hyperactive asked 11/2, 2013 at 12:11

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.
Octarchy asked 14/11, 2011 at 13:36

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...
Gift asked 2/11, 2010 at 12:0

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) ...
Tar asked 27/9, 2020 at 5:44

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...
Crescendo asked 14/9, 2023 at 8:0

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...
Landy asked 21/2, 2013 at 16:19

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...
Allay asked 28/4, 2020 at 7:54

2

How can I generate completely static binaries with clang? I have used the following command: clang -flto <source files> -o <executable output> -fuse-ld=lld -static-libgcc -lc -Bstatic ...
Umbrian asked 19/3, 2018 at 17:7

© 2022 - 2024 — McMap. All rights reserved.