Displaying 20 results from an estimated 800 matches similar to: "[LLVMdev] Linking to LLVM with CMake"
2010 May 28
0
[LLVMdev] how to get TargetData?
For those targets supported by LLVM, you can get their TargetData by
creating TargetMachine first (take X86 as example):
==== BEGIN CODE SNIPPET ====
const std::string TripleStr = "i686-unknown-linux"; // hard coded for
example
const std::string FeatureStr = ""; // hard coded for example
std::string Err;
const Target* T;
TargetMachine* TM = NULL;
const
2013 Sep 22
2
[LLVMdev] Bad permissions for mapped region
Hi List,
I'm trying to upgrade our llvm-c based compiler from JIT to MCJIT.
While trying to do so I encountered several problems. Looks like C
API does not have proper functions to intialize LLVM with MCJIT.
I ended up wrapping the following functions in my own init routine.
LLVMInitializeX86TargetInfo();
LLVMInitializeX86Target();
LLVMInitializeX86TargetMC();
LLVMInitializeX86AsmPrinter();
2013 Sep 22
0
[LLVMdev] Bad permissions for mapped region
I managed to make it work by cloning code from lli and making my own cpp
wrapper.
2013/9/22 Konstantin Olkhovskiy <lupus at oxnull.net>
> Hi List,
>
> I'm trying to upgrade our llvm-c based compiler from JIT to MCJIT.
> While trying to do so I encountered several problems. Looks like C
> API does not have proper functions to intialize LLVM with MCJIT.
> I ended up
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
On Fri, 5 Oct 2012 13:04:46 +0530
Jun Koi <junkoi2004 at gmail.com> wrote:
> i am wondering if this link is still updated?
>
> http://www.llvm.org/docs/CMake.html#developing-llvm-pass-out-of-source
>
> i follow the instruction from the link, and create in my ~/test/
> directory the CMakeLists.txt with following content:
>
<snip>
> CMake Warning at
2012 Oct 05
4
[LLVMdev] problem with my LLVM pass
hi,
i am wondering if this link is still updated?
http://www.llvm.org/docs/CMake.html#developing-llvm-pass-out-of-source
i follow the instruction from the link, and create in my ~/test/
directory the CMakeLists.txt with following content:
$cat test/CMakeLists.txt
find_package(LLVM)
# Define add_llvm_* macro's.
include(AddLLVM)
add_definitions(${LLVM_DEFINITIONS})
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Hi Timo:
You need to find LLVMConfig.cmake in the binary or install 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
2016 Oct 10
2
Embedding llvm as a git submodule in Project
Sorry my example wasn't helpful.
I did take a quick look at rust -- though I didn't download or try to build
it -- and they seem to allow you to use an installed or prebuilt version in
addition to building it in-tree. However, even when they build it in-tree,
they build the whole thing -- see mk/llvm.mk.
Good luck...
On Mon, Oct 10, 2016 at 1:33 AM, Timo Janssen via llvm-dev <
2017 Aug 01
2
[RFC] Profile guided section layout
I updated the patch to read a call graph from a text file.
I tested it with the attached call.txt from lld linking chromium.
Unfortunately the resulting lld doesn't seem any faster. One thing I
noticed is that the most used symbols seem to be at the end of the
file.
In any case, can you add tests and send the lld patch for review?
Thanks,
Rafael
On 31 July 2017 at 15:19, Davide Italiano
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
[Please CC the mailing list]
Eli Gottlieb <eligottlieb at gmail.com> writes:
> OK, I'm just going to paste in my CMakeLists.txt file. Like I said,
> I'm building an LLVM install myself by untarring llvm, mkdir build in
> the root dir of the source, cd build/, cmake .., make.
>
>> cmake_minimum_required (VERSION 2.6)
>> project (libjllvm)
>>
2012 Mar 04
1
[LLVMdev] LLVM from .NET
I've been struggling to get LLVM to work from .NET using the llvm-fs
bindings for the past few weeks. I finally found an installation procedure
that works and documented it here:
http://fsharpnews.blogspot.com/2012/03/using-llvm-from-f-under-windows.html
The good news is that I have that program compiling the Fibonacci function
and executing it from F# all via LLVM.
However, I still have a
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
2013 Nov 20
2
[LLVMdev] proposed patch to default to isl-only polly
On Tue, Nov 19, 2013 at 12:07:18PM +0100, Tobias Grosser wrote:
> On 11/19/2013 08:50 PM, Jack Howarth wrote:
>> Tobias,
>> Can we add something like the following to polly 3.4?
>>
>> Index: CMakeLists.txt
>> ===================================================================
>> --- CMakeLists.txt (revision 195142)
>> +++ CMakeLists.txt (working
2013 Nov 19
2
[LLVMdev] proposed patch to default to isl-only polly
Tobias,
Can we add something like the following to polly 3.4?
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 195142)
+++ CMakeLists.txt (working copy)
@@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT
FIND_PACKAGE(Isl REQUIRED)
FIND_PACKAGE(Gmp REQUIRED)
-FIND_PACKAGE(Cloog)
FIND_PACKAGE(Pluto)
2013 Nov 20
0
[LLVMdev] proposed patch to default to isl-only polly
On 11/20/2013 04:50 PM, Jack Howarth wrote:
> On Tue, Nov 19, 2013 at 12:07:18PM +0100, Tobias Grosser wrote:
>> On 11/19/2013 08:50 PM, Jack Howarth wrote:
>>> Tobias,
>>> Can we add something like the following to polly 3.4?
>>>
>>> Index: CMakeLists.txt
>>> ===================================================================
2013 Nov 19
0
[LLVMdev] proposed patch to default to isl-only polly
On 11/19/2013 08:50 PM, Jack Howarth wrote:
> Tobias,
> Can we add something like the following to polly 3.4?
>
> Index: CMakeLists.txt
> ===================================================================
> --- CMakeLists.txt (revision 195142)
> +++ CMakeLists.txt (working copy)
> @@ -81,9 +81,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT
>
> FIND_PACKAGE(Isl
2013 Nov 20
1
[LLVMdev] proposed patch to default to isl-only polly
On Wed, Nov 20, 2013 at 05:00:44PM +0100, Tobias Grosser wrote:
> On 11/20/2013 04:50 PM, Jack Howarth wrote:
>> On Tue, Nov 19, 2013 at 12:07:18PM +0100, Tobias Grosser wrote:
>>> On 11/19/2013 08:50 PM, Jack Howarth wrote:
>>>> Tobias,
>>>> Can we add something like the following to polly 3.4?
>>>>
>>>> Index: CMakeLists.txt
2019 Apr 01
1
udev rename NIC failed
Hi,
Sometimes, I found one of my Mellanox NIC renamed to rename6, instead
of eth1. The right names of NICs in my system should be:
eth0 Mellanox NIC
eth1 Mellanox NIC
eth2 Intel NIC
eth3 Intel NIC
eth4 Intel NIC
eth5 Intel NIC
eth0 and eth1 will combined as bond1 with mode 4. However, the current
names are:
eth0 Mellanox
2016 Jul 23
2
Improving deb packages
Hi LLVM,
I complained about the deb packages couple of times previously, even fixed
some issues in packaging. I'm mostly interested in having reliable share
cmake files available in llvm-dev packages. The version 3.7 was fine, but
3.8+ have regressions.
I'm not here to blame anybody. I would like to identify the issues and
discuss long term solutions.
I started with building very simple
2012 Oct 18
2
[LLVMdev] problem with my LLVM pass
On Thu, Oct 18, 2012 at 7:22 PM, Sameer Sahasrabuddhe
<sameer.sahasrabuddhe at amd.com> wrote:
> On Fri, 5 Oct 2012 13:04:46 +0530
> Jun Koi <junkoi2004 at gmail.com> wrote:
>
>> i am wondering if this link is still updated?
>>
>> http://www.llvm.org/docs/CMake.html#developing-llvm-pass-out-of-source
>>
>> i follow the instruction from the link,
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
I compiled and installed it to the prefix /usr, but that's not the
issue. Once I actually compile and install LLVM with CMake by hand, I
get the share/llvm/cmake stuff installed correctly (can those files be
included in "normal" builds, or will LLVM switch to CMake as its primary
build system?). Now I'm running into the problem of cflags or includes
or something not being