I stumbled upon some options for the arm64/aarch64 architecture, such as aarch64-use-tbi and so on. I noticed that they seem to be available for the Swift compiler but not for clang.
I looked into the libLLVM.dylib on my system (I am aware that Swift links the LLVM mostly statically into the compiler) and the shared library seems to atleast contain the symbols. In an additional step, I build clang myself, and wrapped the initialisation of the variable UseAddressTopByteIgnored that is repsonsible for adding the option aarch64-use-tbi. I am a bit dumb-founded as to why the variable has been initialised and the flag has been “added” but I cannot find the option with clang.
The Swift way is swiftc -Xllvm aarch64-use-tbi. So it passes the option to LLVM. It is available to Clang. You have to use the same trick to pass the option to LLVM.