[llvm] [RISCV] Lower llvm.clear_cache to __riscv_flush_icache for glibc targets (PR #93481)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 06:35:25 PDT 2024


================
@@ -7117,7 +7122,48 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
     return lowerVPSpliceExperimental(Op, DAG);
   case ISD::EXPERIMENTAL_VP_REVERSE:
     return lowerVPReverseExperimental(Op, DAG);
+  case ISD::CLEAR_CACHE: {
+    assert(Subtarget.getTargetTriple().isOSGlibc() &&
----------------
arsenm wrote:

Should get from target machine, not subtarget 

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


More information about the llvm-commits mailing list