ChunyuLiao wrote: Indeed, as jrtc27 said, GCC already supports this.
There are cases where the firmware cannot be upgraded on certain hardware, so it might make sense for us to provide an option to accommodate these systems. When the hardware does not support fence.tso, fence rw, rw may faster because fence.tso will be handled via a trap and software emulation. https://github.com/llvm/llvm-project/pull/151638 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits