search for: llvm9

Displaying 5 results from an estimated 5 matches for "llvm9".

Did you mean: llvm
2019 Dec 20
3
What's the go-to method to call other transform passes in LLVM9?
Hi: In my in-house transform passes I needs to properly lower Switch/Invoke and PhiNodes, prior to LLVM9 I just call createLowerSwitchPass() and run it. However in LLVM9 doing this would assert out with error message:    Assertion failed: (Resolver && "Pass has not been inserted into a PassManager object!"), function getAnalysis, file \LLVM9/llvm/include/l...
2020 Sep 14
3
Mem2reg: load before single store
...LLVM, I've found a weird behavior in mem2reg pass. When optimizing single stores, undefined value is placed before any load preceding the store (based on basicblock's ordering and simple dominator analysis, if I remember correctly). This is the line that is responsible for the behavior: (LLVM9 does the same) https://llvm.org/doxygen/PromoteMemoryToRegister_8cpp_source.html#l00629 A problem arises, and I am not sure if it is really a problem or just weird C-compliant behavior. int a; // or, equally, int a=0; int main(){ int b; if (b) // (*) b=a; if (b) printf("This will...
2019 Sep 05
3
Building LLVM with LLVM
Hi folks! I'm trying to build LLVM with LLVM on Ubuntu using the commands below. Building it with the GNU stuff (cpp, gcc, g++ and binutils packages) works, but after removing it, moving LLVM to /usr/local and symlinking /usr/bin/ld to ld.lld, I'm getting the following: === snip === -- The C compiler identification is Clang 8.0.1 -- The CXX compiler identification is Clang 8.0.1 -- The
2020 Mar 18
4
[ORC JIT] -Resolving cross references in a multi-process scenario
Hi Bjoern, Thanks for your patience. The good news is that there is a neater way to do this: ExecutionSession's lookup methods take a orc::SymbolState parameter which describes the state that symbols must reach before a query can return (See https://github.com/llvm/llvm-project/blob/d1a7bfca74365c6523e647fcedd84f8fa1972dd3/llvm/include/llvm/ExecutionEngine/Orc/Core.h#L1273).In your case you
2019 Sep 17
2
Building LLVM with LLVM with no dependence on GCC
..._TARGETS_TO_BUILD="host" \ -DBUILD_SHARED_LIBS=ON \ -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;compiler-rt;lld" \ ../llvm-project/llvm # configure2.txt cmake --build . rm -r /tmp/llvm cmake -DCMAKE_INSTALL_PREFIX=/tmp/llvm/usr/local -P cmake_install.cmake cd .. tar cJf llvm9.txz -C /tmp/llvm/usr/local . === snap === When I unpack that now on another fresh system, I'm still getting the following: === snip === ld: error: cannot open crtbegin.o: No such file or directory ld: error: unable to find library -lgcc ld: error: unable to find library -lgcc_s ld: error: unab...