[llvm] [clang] [RISCV] Add support for experimental Zimop extension (PR #74824)

Wang Pengcheng via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 10 19:52:28 PST 2023


wangpc-pp wrote:

Please reorginize the patch as @dtcxzyw suggested. :-)

I didn't notice this extension before, so I may not be asking the right question here: These MOPs can be redefined, then, are we able to schedule them in compiler? Becase we don't know the cost of MOPs if we don't know how MOPs are used. For example, MOPs can be redefined as simple ALU instructions, or, it can be instructions with large cost like DIV/REM. I don't know how to model it now, but I don't think defining Sched resources for MOPs is the right way.

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


More information about the cfe-commits mailing list