search for: llvmpassnam

Displaying 4 results from an estimated 4 matches for "llvmpassnam".

Did you mean: llvmpassname
2012 Oct 18
0
[LLVMdev] problem with my LLVM pass
...nto a new file: $ cd test $ cat CMakeLists.txt find_package(LLVM) # Define add_llvm_* macro's. include(AddLLVM) add_definitions(${LLVM_DEFINITIONS}) include_directories(${LLVM_INCLUDE_DIRS}) link_directories(${LLVM_LIBRARY_DIRS}) add_subdirectory(<pass name>) add_llvm_loadable_module(LLVMPassname Pass.cpp ) $ cmake . Everything worked 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 CM...
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})
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
...date: * llvm/lib/Transforms/Hello, but this appears to be in-source only. * http://llvm.org/docs/WritingAnLLVMPass.html, but this example doesn't appear to be runnable directly from Clang. * https://llvm.org/docs/CMake.html, but its proposed CMake line of "add_llvm_library(LLVMPassname MODULE Pass.cpp)" blows up with CMake Error at /usr/local/lib/cmake/llvm/AddLLVM.cmake:659 (install): install TARGETS given no LIBRARY DESTINATION for module target "Hello". Call Stack (most recent call first): Hello/CMakeLists.txt:3 (add_llvm_library)...
2012 Oct 18
2
[LLVMdev] problem with my LLVM pass
...d_package(LLVM) > > # Define add_llvm_* macro's. > include(AddLLVM) > > add_definitions(${LLVM_DEFINITIONS}) > include_directories(${LLVM_INCLUDE_DIRS}) > link_directories(${LLVM_LIBRARY_DIRS}) > > add_subdirectory(<pass name>) > > add_llvm_loadable_module(LLVMPassname > Pass.cpp > ) > > $ cmake . > > Everything worked 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 Fin...