[llvm] [RISCV][GlobalISel] Legalize and select G_PREFETCH (PR #215466)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 04:48:28 PDT 2026
================
@@ -1444,11 +1445,56 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
return selectExtractSubvector(MI);
case TargetOpcode::G_INSERT_SUBVECTOR:
return selectInsertSubVector(MI);
+ case TargetOpcode::G_PREFETCH:
+ return selectPrefetch(MI);
default:
return false;
}
}
+bool RISCVInstructionSelector::selectPrefetch(MachineInstr &MI) const {
----------------
arsenm wrote:
This seems tablegenable. The implementation is also very different rom what the DAG one does; they shouldn't be fundamentally different
https://github.com/llvm/llvm-project/pull/215466
More information about the llvm-commits
mailing list