Displaying 20 results from an estimated 43 matches for "llvm_dir".
2016 Oct 12
3
Dragon egg not recognizing Target ARM machine
...s thesis on improving llvm compiler
optimization.
Currently I am trying to build dragon egg and when I gave take, it is not
getting recognized for ARM machine.
Can you please help me with.
Below are the errors when I gave the below command inside dragon egg
directory
GCC=GCC_DIR/gcc LLVM_CONFIG=LLVM_DIR/install/bin/llvm-config make
Compiling Backend.cpp
In file included from
/gaia/class/student/seerangv/DRAGONEGG_DIR/src/Backend.cpp
:28:0:
/gaia/class/student/seerangv/DRAGONEGG_DIR/include/arm/dragonegg/Target.h:34:52:
error: "!=" may not appear in macro parameter list
#...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...directory tree,
not the source tree.
Although I don't embed clang/llvm, my config might help you figure it --
clang/llvm installed under (could have used build directory) ~/usr :
$ cd /Users/dhinton/projects/cover/build/ && rm -rf * && CC=~/usr/bin/clang
CXX=~/usr/bin/clang++ LLVM_DIR=~/usr/lib/cmake/llvm cmake ../CVRFI/ -GNinja
$ cat ../CVRFI/CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DI...
2016 Oct 10
2
Embedding llvm as a git submodule in Project
...rce tree.
>
> Although I don't embed clang/llvm, my config might help you figure it --
> clang/llvm installed under (could have used build directory) ~/usr :
>
> $ cd /Users/dhinton/projects/cover/build/ && rm -rf * &&
> CC=~/usr/bin/clang CXX=~/usr/bin/clang++ LLVM_DIR=~/usr/lib/cmake/llvm
> cmake ../CVRFI/ -GNinja
>
> $ cat ../CVRFI/CMakeLists.txt
> cmake_minimum_required(VERSION 2.8)
>
> set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
>
> set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
> set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BI...
2016 Oct 09
3
Embedding llvm as a git submodule in Project
Hi all.
I want to use llvm in my project and I want to make llvm a git submodule
in my project.
http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
At this in the documentation it claims to describe how to embed llvm
into a project. I tried it that way but it doesn't work, because there
isn't any findLLVM.cmake in the llvm/cmake/modules directory anymore (i
don't
2011 Apr 05
2
[LLVMdev] inserting a print statement into IR
This is the seg fault I am getting.
dyld: lazy symbol binding failed: Symbol not found:
__ZN4llvm13IRBuilderBase18CreateGlobalStringEPKcRKNS_5TwineE
Referenced from:
/Users/georgebaah/llvm_dir/llvm-2.8/Debug+Asserts/lib/LLVMArrayBoundsCheck.dylib
Expected in: flat namespace
dyld: Symbol not found:
__ZN4llvm13IRBuilderBase18CreateGlobalStringEPKcRKNS_5TwineE
Referenced from:
/Users/georgebaah/llvm_dir/llvm-2.8/Debug+Asserts/lib/LLVMArrayBoundsCheck.dylib
Expected in: flat namespace...
2011 Apr 05
0
[LLVMdev] inserting a print statement into IR
Hi George,
> This is the seg fault I am getting.
>
> dyld: lazy symbol binding failed: Symbol not found:
> __ZN4llvm13IRBuilderBase18CreateGlobalStringEPKcRKNS_5TwineE
> Referenced from:
> /Users/georgebaah/llvm_dir/llvm-2.8/Debug+Asserts/lib/LLVMArrayBoundsCheck.dylib
> Expected in: flat namespace
>
> dyld: Symbol not found: __ZN4llvm13IRBuilderBase18CreateGlobalStringEPKcRKNS_5TwineE
> Referenced from:
> /Users/georgebaah/llvm_dir/llvm-2.8/Debug+Asserts/lib/LLVMArrayBoundsCheck.dylib
>...
2009 Jun 15
3
[LLVMdev] llvmc for PIC16
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> 2009/6/15 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
>
>> Hi Mikhail,
>> How do you build mcc16 executable?
>>
>
> This should work:
>
> $ cd $LLVM_DIR/tools/llvmc/examples/mcc16
> $ make
>
>
I configure llvm into a separate directory from source.
When I do the steps you mentioned in the source directory, this is what
I get.
[i00171 at rhino mcc16]$ make
../../../../Makefile.common:61: ../../../../Makefile.config: No such
file or di...
2019 Sep 24
9
[RFC] Propeller: A frame work for Post Link Optimizations
...l patches of
the various elements for review. We have attached a google doc describing the
Propeller system with Experiments in detail,
https://github.com/google/llvm-propeller/blob/plo-dev/Propeller_RFC.pdf
Quick Start - How to optimize further with Propeller?
# git clone and build repo
$ cd $LLVM_DIR && git clone https://github.com/google/llvm-propeller.git
$ mkdir $BUILD_DIR && cd $BUILD_DIR
$ cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt" … \
$LLVM_DIR/llvm-propeller/llvm
$ ninja -j25
$ export PATH=$BUILD_DIR/bin:$PATH
# Let’s Propeller-optimi...
2013 Oct 30
2
[LLVMdev] Symbolized ASan output on Android
...Pull runtime dependencies so we can demangle the output
adb pull /system/lib/libc.so out/
adb pull /data/data/libclang_rt.asan-arm-android.so out/
# Fix-up the output and demangle
sed 's/\/data\/data/out/g' out/err.txt | \
sed 's/\/system\/lib/out/g' | \
$LLVM_DIR/utils/sanitizers/asan_symbolize.py --demangle
Is it possible to embed llvm-symbolizer into the ASan runtime?
Thanks,
Greg
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
...compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning at CMakeLists.txt:1 (find_package):
Could not find module FindLLVM.cmake or a configuration file for package
LLVM.
Adjust CMAKE_MODULE_PATH to find FindLLVM.cmake or set LLVM_DIR to the
directory containing a CMake configuration file for LLVM. The file will
have one of the following names:
LLVMConfig.cmake
llvm-config.cmake
CMake Error at CMakeLists.txt:4 (include):
include could not find load file:
AddLLVM
CMake Error at Hello/CMakeLists.txt:1 (add_l...
2009 Jun 15
0
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
2009/6/15 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
> I configure llvm into a separate directory from source.
> When I do the steps you mentioned in the source directory, this is what I
> get.
In that case, copy $LLVM_DIR/tools/llvmc/example/mcc16/Makefile to
$LLVM_OBJ_DIR/tools/llvmc/example/mcc16/Makefile and build from that
directory.
2011 Apr 01
0
[LLVMdev] insert printf into IR
Hi George,
> I am trying to insert printf ("%d", v), where v is an integer param, into the IR.
> I am doing something wrong because I keep getting segfaults.
if you are doing development with LLVM then you should build LLVM with
assertions enabled. That way you get understandable failures rather
than obscure segmentation faults.
> Function *f = cast<Function>(temp);
2002 Nov 15
2
[LLVMdev] DSGraph question
Dear LLVM,
If I have a DSGraph dsg, I want to duplicate a DSgraph which is exactly
the same with dsg. How should I do that?
Should I use
DSGraph dsg2 = dsg;
or use some other methods?
Thanks,
xiaodong
2002 Nov 15
1
[LLVMdev] opt can not load module
I just recompiled the opt executable, but when trying to load a
dynamic module I get the following error:
% opt -load $LLVM_DIR/lib/Debug/libdsgraphshow.so --help
Error opening
'/usr/dcs/projects/cs426/juanruiz/llvm/lib/Debug/libdsgraphshow.so':
ld.so.1: opt: fatal: relocation error: file
/usr/dcs/projects/cs426/juanruiz/llvm/lib/Debug/libdsgraphshow.so:
symbol _ZN7DSGraphC1ER8FunctionPS_: referenced symbol not foun...
2009 Jun 15
0
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
2009/6/15 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
> Hi Mikhail,
> How do you build mcc16 executable?
This should work:
$ cd $LLVM_DIR/tools/llvmc/examples/mcc16
$ make
If you're building from some other dir, you'll need to update
mcc16/Makefile, so it knows where Makefile.common is located.
> There are so many confusing things there: driver, plugins, example, Skelton
> etc.
> The LLVMC-Tutorial doesn't clea...
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...at this stage.
But if I removed llvm-config from my PATH, I get the following error
instead:
$ cmake .
....
CMake Warning at CMakeLists.txt:1 (find_package):
Could not find module FindLLVM.cmake or a configuration file for
package LLVM.
Adjust CMAKE_MODULE_PATH to find FindLLVM.cmake or set LLVM_DIR to the
directory containing a CMake configuration file for LLVM. The file
will have one of the following names:
LLVMConfig.cmake
llvm-config.cmake
So I tried what cmake says:
$ cmake -DLLVM_DIR=/usr/share/llvm/cmake .
This worked with both 2.8.3 and 2.8.9
Hope that helps!
Sameer.
2013 Oct 31
0
[LLVMdev] Symbolized ASan output on Android
...an demangle the output
> adb pull /system/lib/libc.so out/
> adb pull /data/data/libclang_rt.asan-arm-android.so out/
>
> # Fix-up the output and demangle
> sed 's/\/data\/data/out/g' out/err.txt | \
> sed 's/\/system\/lib/out/g' | \
> $LLVM_DIR/utils/sanitizers/asan_symbolize.py --demangle
>
> Is it possible to embed llvm-symbolizer into the ASan runtime?
>
We have a working solution for using in-process symbolization in sanitizer
tools
(for Linux/x86_64), but it's somewhat complicated and is not yet upstreamed.
Once it'...
2018 Feb 23
3
cmake + llvm : issue when embedding llvm
...l#embedding-llvm-in-your-project ), in the
section : "Embedding LLVM in your project".
So, I added this code into my cmake file :
find_package(LLVM REQUIRED CONFIG)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
message("LLVM_INCLUDE_DIRS=${LLVM_INCLUDE_DIRS}")
message("LLVM_DEFINITIONS=${LLVM_DEFINITIONS}")
But I got several cmake error messages, here is my output :
-- Using LLVMConfig.cmake in:
C:\\Luciad_src\\libs\\LLVM\\cmake\\modules
LLVM_INCLUDE_DIRS=
...
2011 Apr 05
0
[LLVMdev] inserting a print statement into IR
On 4/4/2011 6:26 PM, George Baah wrote:
> Hi Everyone,
> I am trying to construct the print statement : printf("value:%d\n",
> value);
> This is my llvm code. It is seg faulting at
> builder.CreateGlobalStringPtr(str,"").
This might be easier to debug with a stack trace. Use a debugger to see
the call stack when the segfault occurs. Also try to isolate
2011 Apr 01
3
[LLVMdev] insert printf into IR
Hi All,
I am trying to insert printf ("%d", v), where v is an integer param, into
the IR.
I am doing something wrong because I keep getting segfaults.
Below is my code. Thanks.
vector<const Type *> params;
params.push_back(Type::getInt8PtrTy(M.getContext()));
params.push_back(Type::getInt32Ty(M.getContext()));
FunctionType *fType =