[clang] [llvm] [RISCV] Add Propeller support for RISC-V (PR #170992)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 19:56:19 PST 2025


================
@@ -89,6 +89,17 @@ RISCVInstrInfo::RISCVInstrInfo(const RISCVSubtarget &STI)
 #define GET_INSTRINFO_HELPERS
 #include "RISCVGenInstrInfo.inc"
 
+void RISCVInstrInfo::insertNoop(MachineBasicBlock &MBB,
+                                MachineBasicBlock::iterator MI) const {
+  DebugLoc DL;
+  if (STI.hasStdExtZca())
+    BuildMI(MBB, MI, DL, get(RISCV::C_NOP));;
+  BuildMI(MBB, MI, DL, get(RISCV::ADDI))
----------------
wangpc-pp wrote:

else?

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


More information about the llvm-commits mailing list