This fork of the canonical git mirror of the LLVM subversion repository adds (e)Z80 targets. Please refer to the wiki for important build instructions.
I have received the error Assertion failed: Subtarget.hasIndexHalfRegs() && "Need index half registers", file C:\toolchains\ti\llvm-project\llvm\lib\Target\Z80\Z80InstrInfo.cpp, line 540 a few times when compiling specific Rust core functions for the EZ80. I don't think it has anything to do with the actual compilation, but I could be wrong. The Rust compiler is using LLVM version 1.15.07
Hard to tell since you have removed all of the relevant parts of the IR file, but the assert suggests you are using inconsistent target info throughout the file.
I have received the error
Assertion failed: Subtarget.hasIndexHalfRegs() && "Need index half registers", file C:\toolchains\ti\llvm-project\llvm\lib\Target\Z80\Z80InstrInfo.cpp, line 540
a few times when compiling specific Rust core functions for the EZ80. I don't think it has anything to do with the actual compilation, but I could be wrong. The Rust compiler is using LLVM version 1.15.07The LLVM-IR looks like this:
The full backtrace is this: