search for: add_llvm_librari

Displaying 20 results from an estimated 53 matches for "add_llvm_librari".

Did you mean: add_llvm_library
2017 Oct 14
2
What's LLVM{target}CodeGen vs {target}CodeGen?
Hi all, *TL;DR:* I have a target TMS9900CodeGen but cmake is looking for LLVMTMS9900 or LLVMTMS9900CodeGen which I don't have, and cmake dies. But the MSP430 target doesn't have that either, and cmake is happy with it. What am I missing? *The premise:* I may be making a huge mistake, but I'm trying to develop an LLVM backend. I'm writing up some notes while I do so, and I hope
2009 Nov 09
2
[LLVMdev] Cmake and pass
Hi, Is it possible to generate pass (shared object) from Cmake? I tried to use add_llvm_library() however it produces only static libs. Thanks, Mariusz.
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
I'm looking for a "Hello, world" pass example that ideally has all of the following properties: 1) Complete. That is, it should have functional CMakeLists.txt, etc. files. 2) Out-of-source. That is, it should build against a binary LLVM installation. 3) Modern. That is, I don't want to use any deprecated APIs or CMake macros. 4) Clang-compatible.
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
Florian, On 7/10/19 2:17 PM, Florian Hahn wrote: > http://www.cs.cornell.edu/~asampson/blog/llvm.html describes how to > create an out-of-source pass (see 'Let’s Write a Pass’). I think it > is for LLVM 3.8 though. Thanks for pointing that out. I had actually recently stumbled across that page (and the GitHub repository it references, https://github.com/sampsyo/llvm-pass-skeleton)
2016 Jan 26
3
Why is LTO built as a shared lib?
Hello, LTO is currently the only library which is always built as shared, even under Windows. This actually seems to lead to failure using LLVM in another project under Windows, at least for me (the error message complains about "LTO-NOTFOUND.OBJ"). Switching it to a static library fixes the issue (again, at least for me under Windows). The change was made in:
2019 Aug 02
2
building a custom plugin
Hi LLVM Devs, I am in the process of building my own plugin for Clang/LLVM in Windows on Visual Studio. I am having difficulty generating the .dll shared file to use at compile time. How have the .dlls corresponding to the example plugins been built? This works: clang -fplugin=C:/Users/User/llvm-project/build/Release/bin/PrintFunctionNames.dll -Xclang -plugin -Xclang print-fns test.c This
2015 May 28
5
[LLVMdev] Building poolalloc with current LLVM development branch?
I'm starting to play around with poolalloc for the first time. I tried to build it as follows: 1) Clone llvm's git repo, and build it with cmake + ninja. 2) cd .../llvm/projects 3) git clone git at github.com:llvm-mirror/poolalloc.git When I went to re-run ninja, (or even CMake by itself), I get errors like the following (truncated for brevity). Any suggestions for whether I'm
2019 Jul 15
3
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
Andrzej, On 7/14/19 8:02 AM, Andrzej Warzynski wrote: > This is still very early stages, but you can be my guinea pig: > > https://github.com/banach-space/llvm-tutor > > It's a tutorial that I've been preparing recently and am hoping to > present somewhere at some point :-) I believe that it already covers 1), > 2) and 3). I haven't had the time to work on 4).
2009 Nov 09
0
[LLVMdev] Cmake and pass
mg <mariusz.grad at googlemail.com> writes: > Is it possible to generate pass (shared object) from Cmake? ? Please name the library or libraries you want to build as shared objects. > I tried to use add_llvm_library() however it produces only static > libs. As mentioned on http://www.llvm.org/docs/CMake.html : cmake -DBUILD_SHARED_LIBS=ON path/to/llvm/source This builds all
2010 Feb 10
1
[LLVMdev] llvm in a subdirectory with cmake
Hi All, The proposed patch makes possible to use LLVM's CMake build infrastructure (most importantly add_llvm_library and add_llvm_executable macros) from the project that has llvm in a subdirectory. For example: demo/ llvm/ demo.cpp CMakeLists.txt where CMakeLists.txt is as follows: # ----------------------------- Start of CMakeLists.txt
2012 Jul 07
0
[LLVMdev] Problem in LLVM CMake modules
Eli Gottlieb <eligottlieb at gmail.com> writes: > I'm trying to upgrade my LLVM bindings in Java from 2.9 to 3.1. To > do so, I regenerated the JNI bindings from fresh LLVM 3.1 headers, and > did a slight rewrite of my CMakeLists.txt file for building the C > code. > > Problem is, cmake no longer finishes at all. I receive the > following output, and then
2013 Dec 29
2
[LLVMdev] [PATCH] Prevent CMake from installing libgtest*.
This library is intended to be used locally for tests and not installed as a global system library. And even if it were, the install doesn't belong to LLVM but to a dedicated gtest package. --- utils/unittest/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt index fd1a048..c11c110 100644 ---
2012 Jul 07
1
[LLVMdev] Problem in LLVM CMake modules
Óscar Fuentes <ofv at wanadoo.es> writes: > Yep, llvm_map_components_to_libraries gets confused by the existence of > both gtest and gtest_main and enters an infinite loop. A workaround is > to not pass "all" to llvm_map_components_to_libraries but a list of > required components. This patch *seems* to fix the problem (cmake regexps are not thoroughly documented):
2015 Dec 14
2
Build libLTO.a instead of libLTO.dylib with Cmake
Hello, Is there any CMake variable available to build LLVM libs as static libraries. I found one -DLIBCLANG_BUILD_STATIC=ON but what if I want libLTO.a instead of libLTO.dylib ? *Vivek Pandya* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151214/1e03efc9/attachment.html>
2018 Mar 17
1
CMake error due to file addition
Hi llvm develop-team. I am using clang/llvm6.0.0 version for univ lab project.I have some annoying problem using CMake, so I ask for help. I added the following file to add some features, and modified cmake, but I got a link error. -------------------------------------- lib/Transforms/Utils/Dependency.cpp include/Transforms/Utils/Dependency.h lib/Transforms/Utils/CMakeLists.txt
2013 Feb 27
1
[LLVMdev] Compilation problem when addind a library
Hi ! Here is the situation. I created a pass in lib/Transforms/Obfuscation. I added a createFlattening() in IPO.h and in my code to be able to use it in PassManagerBuilder.cpp (lib/Transforms/IPO) in the method PopulateModulePassManager() so I can add my pass to standard passes. It all works if I add all my files in the lib/Transforms/IPO directory. But I want to keep them away in the
2008 Oct 26
1
[LLVMdev] Keeping CMakeLists.txt up-to-date.
Kenneth Boyd <zaimoni at zaimoni.com> writes: >> 1) either CMake becomes the de facto standard for LLVM, deprecating >> autoconf&&gmake and thus requiring the developers to update the >> CMakeLists.txt files to compile their sources... >> > Sorry, but this is a noticeable obstacle for CMake becoming the de-facto > standard for LLVM. Writing a new
2015 Aug 20
2
Problem Compiling AsmParser
Hi all, I am trying to compile with a minimal TestAsmParser class, but I get the following error. ---------------- [43/780] Linking CXX executable bin/llvm-mc FAILED: : && /usr/bin/c++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11
2010 Oct 21
2
[LLVMdev] statically linked passes
Hi, I am trying to create a pass that should get statically linked into opt (since I'm on both mac and native win32 and win32 does not support LOADED_MODULEs, at least I get errors while trying to create one). So I have it working with CMake on windows but when I try to run the same code base on mac I get unresolved externals. Here is what I have done so far in the build system: Within
2015 May 28
0
[LLVMdev] Building poolalloc with current LLVM development branch?
I'm pretty sure poolalloc is unmaintained at this point. John Criswell would know more. On Thu, May 28, 2015 at 11:57 AM, Christian Convey < christian.convey at gmail.com> wrote: > I'm starting to play around with poolalloc for the first time. I tried to > build it as follows: > 1) Clone llvm's git repo, and build it with cmake + ninja. > 2) cd .../llvm/projects