1. Extended the llvm update script for RISCV and ran it for linux. This results in the following files:
modified: ../CMakeLists.txt
modified: ../third_party/llvm-10.0/BUILD.gn
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/AsmParsers.def
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/AsmPrinters.def
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/Disassemblers.def
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/Targets.def
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/abi-breaking.h
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h
modified: ../third_party/llvm-10.0/configs/linux/include/llvm/Config/llvm-config.h
modified: ../third_party/llvm-10.0/scripts/update.py
Untracked files:
(use "git add <file>..." to include in what will be committed)
../third_party/llvm-10.0/configs/common/lib/Target/RISCV/
2. Updated marl.
3. Extend CMakelist and others with RISCV parameters as the Mips commit did.
4. Ran make as which so far has led me to this issue:
[ 91%] Linking CXX shared library ../../libvk_swiftshader.so
/usr/bin/ld: ../Reactor/libReactorLLVM.a(LLVMJIT.cpp.o): in function `.L362':
LLVMJIT.cpp:(.text._ZZN12_GLOBAL__N_110JITGlobals3getEvENKUlvE_clEv.constprop.0+0xb0): undefined reference to `LLVMInitializeRISCVTargetInfo'
/usr/bin/ld: LLVMJIT.cpp:(.text._ZZN12_GLOBAL__N_110JITGlobals3getEvENKUlvE_clEv.constprop.0+0xb4): undefined reference to `LLVMInitializeRISCVTarget'
/usr/bin/ld: LLVMJIT.cpp:(.text._ZZN12_GLOBAL__N_110JITGlobals3getEvENKUlvE_clEv.constprop.0+0xb8): undefined reference to `LLVMInitializeRISCVTargetMC'
/usr/bin/ld: LLVMJIT.cpp:(.text._ZZN12_GLOBAL__N_110JITGlobals3getEvENKUlvE_clEv.constprop.0+0xc0): undefined reference to `LLVMInitializeRISCVAsmPrinter'
/usr/bin/ld: LLVMJIT.cpp:(.text._ZZN12_GLOBAL__N_110JITGlobals3getEvENKUlvE_clEv.constprop.0+0xc8): undefined reference to `LLVMInitializeRISCVAsmParser'
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/Vulkan/CMakeFiles/vk_swiftshader.dir/build.make:656: libvk_swiftshader.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2117: src/Vulkan/CMakeFiles/vk_swiftshader.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
I'm not sure if this is related to JIT support not being there in llvm-10 but LLVMInitializeRISCVTargetInfo and the other undefined refernces are part of llvm-10 even without JIT.
Therefore I would assume this is some other issue that I'm running into.