search for: req_llvm_librari

Displaying 16 results from an estimated 16 matches for "req_llvm_librari".

Did you mean: req_llvm_libraries
2012 Dec 23
1
[LLVMdev] Missing ExecutionEngine EngineKind::MCJIT ?
...e stuff!) I thought I would try taking the MCJIT for a spin after having read that the JIT is considered to be "legacy". So the changes I made to my code were: + #include <llvm/ExecutionEngine/MCJIT.h> - #include <llvm/ExecutionEngine/JIT.h> + llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES mcjit native) - llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) However the following call now returns NULL: EngineBuilder(TheModule).setEngineKind(EngineKind::JIT).setErrorStr(&error).create(); There doesn't appear to be an EngineKind::MCJIT option. Am I missing somethi...
2013 Jan 21
4
[LLVMdev] Embed LLVM/Clang in our project
On 1/21/2013 2:01 AM, Óscar Fuentes wrote: > Ashok Nalkund <ashoknn at qti.qualcomm.com> writes: > >> I was using the find_package(LLVM llvm/share/llvm/cmake) and >> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get >> the libraries to link against. This works well for the libLLVM* >> libraries, but how do I implement similar find stuff for clang >> libraries? > > AFAIK, there is no such feature for Clang. > Thanks Oscar. ashok
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
...# Now set the header and library paths: >> include_directories( ${LLVM_ROOT}/include ) >> link_directories( ${LLVM_ROOT}/lib ) >> # Let's suppose we want to build a JIT compiler with support for >> # binary code (no interpreter): >> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native core) >> # Finally, we link the LLVM libraries to our executable: >> target_link_libraries(jllvm ${REQ_LLVM_LIBRARIES}) Where is the failure? On the "if( NOT EXISTS ${LLVM_ROOT}/include/llvm )" ? If that's the problem, is LLVM installed on /usr ? On my Kubun...
2012 Jul 07
2
[LLVMdev] Problem in LLVM CMake modules
...nal information, and running cmake with gdb attached just gives me a backtrace with no signs of abnormal operation. I've tried the old "comment stuff out and see what causes the symptom to reappear" method of debugging, and it's definitely the llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES all) line in my CMakeLists.txt. I've attached CMakeLists.txt for reference. Could anyone perhaps tell me why CMake can't finish? Cheers, --Eli Gottlieb -------------- next part -------------- cmake_minimum_required (VERSION 2.6) project (jllvm) add_library(jllvm SHARED Analysis_wrap.c...
2013 Jan 21
2
[LLVMdev] Embed LLVM/Clang in our project
...t; > 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/cmake) and llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get the libraries to link against. This works well for the libLLVM* libraries, but how do I implement similar find stuff for clang libraries? TIA, ashok
2013 Jan 21
0
[LLVMdev] Embed LLVM/Clang in our project
Ashok Nalkund <ashoknn at qti.qualcomm.com> writes: > I was using the find_package(LLVM llvm/share/llvm/cmake) and > llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get > the libraries to link against. This works well for the libLLVM* > libraries, but how do I implement similar find stuff for clang > libraries? AFAIK, there is no such feature for Clang.
2013 Jan 21
0
[LLVMdev] Embed LLVM/Clang in our project
On 1/21/2013 10:25 AM, Ashok Nalkund wrote: > On 1/21/2013 2:01 AM, Óscar Fuentes wrote: >> Ashok Nalkund <ashoknn at qti.qualcomm.com> writes: >> >>> I was using the find_package(LLVM llvm/share/llvm/cmake) and >>> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get >>> the libraries to link against. This works well for the libLLVM* >>> libraries, but how do I implement similar find stuff for clang >>> libraries? >> >> AFAIK, there is no such feature for Clang. I noticed that the following files are...
2012 Oct 09
0
[LLVMdev] problem with my LLVM pass
On Fri, Oct 5, 2012 at 3:45 PM, Jun Koi <junkoi2004 at gmail.com> wrote: > On Fri, Oct 5, 2012 at 3:39 PM, David Chisnall > <David.Chisnall at cl.cam.ac.uk> wrote: >> On 5 Oct 2012, at 08:34, Jun Koi wrote: >> >>> any idea on how to fix the problem? >> >> The correct solution is to fix the LLVM build to install the .cmake files in a location that
2013 Jan 22
0
[LLVMdev] Embed LLVM/Clang in our project
...Nalkund wrote: >>> On 1/21/2013 2:01 AM, Óscar Fuentes wrote: >>>> Ashok Nalkund <ashoknn at qti.qualcomm.com> writes: >>>> >>>>> I was using the find_package(LLVM llvm/share/llvm/cmake) and >>>>> llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) to get >>>>> the libraries to link against. This works well for the libLLVM* >>>>> libraries, but how do I implement similar find stuff for clang >>>>> libraries? >>>> >>>> AFAIK, there is no such feature for Clang....
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
..._PACKAGE(Java REQUIRED) > FIND_PACKAGE(JNI REQUIRED) > INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH}) > INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH2}) > # Let's suppose we want to build a JIT compiler with support for > # binary code (no interpreter): > llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native core) > # Finally, we link the LLVM libraries to our executable: > target_link_libraries(jllvm ${REQ_LLVM_LIBRARIES}) I run "cmake ." where I've got my source and then make. This results in: > eli at eli-netbook:~/Programs/decac/src/jllvm/llvm$ make > Scanni...
2012 Oct 05
2
[LLVMdev] problem with my LLVM pass
On Fri, Oct 5, 2012 at 3:39 PM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote: > On 5 Oct 2012, at 08:34, Jun Koi wrote: > >> any idea on how to fix the problem? > > The correct solution is to fix the LLVM build to install the .cmake files in a location that CMake knows about. could you please elaborate? > The hacky solution that I've used is just to copy
2012 Oct 18
2
[LLVMdev] problem with my LLVM pass
...# Now set the header and library paths: include_directories( ${LLVM_INCLUDE_DIRS} ) link_directories( ${LLVM_LIBRARY_DIRS} ) add_definitions( ${LLVM_DEFINITIONS} ) # Let's suppose we want to build a JIT compiler with support for # binary code (no interpreter): # llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native) # Finally, we link the LLVM libraries to our executable: target_link_libraries(myHello ${REQ_LLVM_LIBRARIES}) add_subdirectory(Hello) ##### and the content of Hello/CMakeLists.txt is like below: $ cat Hello/CMakeLists.txt cmake_minimum_required(VERSION 2.8) add_llvm_loadable_modul...
2013 Jan 19
0
[LLVMdev] Embed LLVM/Clang in our project
Ashok Nalkund <ashoknn at qti.qualcomm.com> writes: > 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
2012 Dec 29
2
[LLVMdev] Building on LLVM on OSX: invalid install?
...stall.") IF (NOT EXISTS ${LLVM_ROOT}/include/llvm) MESSAGE (FATAL_ERROR "LLVM_ROOT (${LLVM_ROOT}) is not a valid LLVM install") ENDIF () SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake") INCLUDE (LLVMConfig) LLVM_MAP_COMPONENTS_TO_LIBRARIES (REQ_LLVM_LIBRARIES jit native) ########################### Then, I try to cmake my project: % cmake .. -DLLVM_ROOT=/Applications/Development/llvm/ CMake Error at CMakeLists.txt:25 (INCLUDE): include could not find load file: LLVMConfig CMake Error at CMakeLists.txt:26 (LLVM_MAP_COMPONENTS_TO_LIBRARIES...
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
2010 Jul 21
1
[LLVMdev] Is there a guide to LLVM's components?
I constructed an LLVM 2.7 VS solution with cmake, but it has 66 projects: ALL_BUILD, ".\ALL_BUILD.vcproj" BrainF, "examples\BrainF\BrainF.vcproj" Fibonacci, "examples\Fibonacci\Fibonacci.vcproj" FileCheck, "utils\FileCheck\FileCheck.vcproj" HowToUseJIT,