[libc-commits] [clang] [libcxx] [clang-tools-extra] [compiler-rt] [libc] [llvm] [flang] [RISCV][MC] Add support for experimental Zimop extension (PR #75182)

Jivan Hakobyan via libc-commits libc-commits at lists.llvm.org
Wed Dec 13 23:38:12 PST 2023


JivanH wrote:

> > @topperc If I am not mistaken Zicfiss extension uses moprr instructions to get ROP functionality. But Zimop does not limit only the use of Zicfiss extension. They can be redefined and assigned other operations.
> 
> Right, but won't users be programming to each of the extensions that redefine them rather than some generic interface? We don't have builtins/intrinsics for all of the HINT encodings that can redefined.

Yeah, I agree with you. 
But can be cases when someone in some narrow case needs to program logic by hand. Why restrict it? 
I also think that a generic interface is much better than achieving the same logic through builtins/intrinsics.

https://github.com/llvm/llvm-project/pull/75182


More information about the libc-commits mailing list