Displaying 9 results from an estimated 9 matches for "llvm_build_dir".
2013 Jan 19
0
[LLVMdev] Embed LLVM/Clang in our project
...e install'
> step necessary even though I'm compiling llvm along with my code?
If you wish to use LLVM/Clang whitout installing it, you must add both
the build output header path and the source header path (in this order)
to your list of include paths, like this:
include_directories( ${LLVM_BUILD_DIR}/include ${LLVM_SOURCE_DIR}/include )
Replace LLVM_SOURCE_DIR/LLVM_BUILD_DIR with the respective directories.
Same for Clang
2013 Jan 19
2
[LLVMdev] Embed LLVM/Clang in our project
Hi All,
We want to compile LLVM/Clang and use the resulting headers/libraries
in our project. But we compile it during out build process. I can build
LLVM/Clang by adding it to our cmakelists.txt but when our code tries to
use one of the headers (clang/CodeGen/ModuleBuilder.h), its not found as
it doesnt exist. If I do a 'make install' in the llvm directory, then
the file is
2013 Jan 21
2
[LLVMdev] Embed LLVM/Clang in our project
...essary even though I'm compiling llvm along with my code?
>
> If you wish to use LLVM/Clang whitout installing it, you must add both
> the build output header path and the source header path (in this order)
> to your list of include paths, like this:
>
> include_directories( ${LLVM_BUILD_DIR}/include ${LLVM_SOURCE_DIR}/include )
>
> Replace LLVM_SOURCE_DIR/LLVM_BUILD_DIR with the respective directories.
> Same for Clang
Thanks for the response, it worked. I can now compile my code by adding
the additional include paths.
I was using the find_package(LLVM llvm/share/llvm/cmak...
2015 Apr 08
5
[LLVMdev] CUDA front-end (CUDA to LLVM IR)
Hi,
I wanted to ask whether there is ongoing effort (or an already established
tool) that enables to convert CUDA kernels (that uses CUDA specific
intrinsics, e.g., threadId.x, __syncthreads(), ...) to LLVM IR. I am aware
that I can do this for OpenCL with the help of libclc but I can not find
something similar for CUDA.
Thanks
-------------- next part --------------
An HTML attachment was
2017 Sep 22
0
[cfe-dev] Cross translational unit analysis in codechecker
...>
>
> when you compiled clang successfully you should have a
> “clang-func-mapping” binary in the <build_dir>/bin directory.
>
>
>
> Then create a codechecker package as described here
>
> https://github.com/Ericsson/codechecker#linux
>
>
>
> Add <LLVM_BUILD_DIR>/bin to your path e.g.: export
> PATH=<LLVM_BUILD_DIR>/bin:$PATH
>
> so CodeChecker will find this new CTU patched version of clang.
>
>
>
> If all went fine you start CodeChecker analyze –help and it will print:
>
>
>
> cross translation unit analysis argu...
2018 Nov 16
2
LLVM_CONFIG_PATH when building Clang from sources
...LLVM_SOURCE_DIR"
It results in "llvm-config not found: specify LLVM_CONFIG_PATH". The
docs at https://llvm.org/docs/CMake.html don't appear to discuss
LLVM_CONFIG_PATH.
I'm building out-of-tree with these two variables:
LLVM_SOURCE_DIR="$HOME/llvm_source"
LLVM_BUILD_DIR="$HOME/llvm_build"
How should I fix the LLVM_CONFIG_PATH error?
Thanks in advance.
==============================
-- The C compiler identification is GNU 4.0.1
-- The CXX compiler identification is GNU 4.0.1
-- The ASM compiler identification is GNU
-- Found assembler: /Developer/usr/...
2018 Feb 15
0
LLVM version 3.4.2 - Directory to Environment Variables
....4.2. I am using Linux Mint 18.3 Sylvia.
I followed steps to install it from this following website :http://releases.llvm.org/3.4.2/docs/GettingStarted.html
I was able to configure and build LLVM and Clang.I set the environment variables in /etc/environment to :
LLVM_LIB_SEARCH_PATH=/home/jake/llvm/llvm_build_dir/lib/Bitcode
After I set up the environment variables for the LLVM, I am still unable to run LLVM and Clang.
jake at jake-Inspiron-5448 ~ $ llvmNo command 'llvm' found, did you mean: Command 'rlvm' from package 'rlvm' (universe) Command 'lvm' from package 'lvm2...
2017 Dec 05
2
XRay Trace of Clang, Loadable through Chrome Trace Viewer
...nerate this, maybe in some more share-friendly medium. Perhaps something for the LLVM blog?
For the impatient, you can generate a similar visualisation of your XRay traces with the latest `llvm-xray` tool that comes with the LLVM sources. To generate the above, all I had to do was the following:
$LLVM_BUILD_DIR/bin/llvm-xray convert -symbolize -instr_map=./bin/clang -output-format=trace_event xray-log.clang-6.0.XXXXXX | gzip > clang-6.0-default-real.txt.gz
Instructions at http://llvm.org/docs/XRayExample.html also apply to llc.
I hope this kind of instrumentation would be helpful in further improving...
2015 Nov 17
2
Confused on how to do a machinefunction pass
Yes, I have done exactly the same. The wawanalyzer is the same. I changed
ARM.h and ARMTargetMachine.cpp in the tager/arm folder. then I make
tool/llc and lib folder.
On Tue, Nov 17, 2015 at 10:55 AM, John Criswell <jtcriswel at gmail.com> wrote:
> On 11/17/15 12:16 AM, fateme Hoseini via llvm-dev wrote:
>
> Hi,
> So, I run my pass in X86 target with llc command and it printed