[PATCH] D123439: [VE][compiler-rt] Correct location of VE support in clear_cache function, NFC

Brad Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 12:50:54 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8cf83e96591b: [VE][compiler-rt] Correct location of VE support in clear_cache function, NFC (authored by brad).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123439/new/

https://reviews.llvm.org/D123439

Files:
  compiler-rt/lib/builtins/clear_cache.c


Index: compiler-rt/lib/builtins/clear_cache.c
===================================================================
--- compiler-rt/lib/builtins/clear_cache.c
+++ compiler-rt/lib/builtins/clear_cache.c
@@ -176,12 +176,12 @@
   arg.len = (uintptr_t)end - (uintptr_t)start;
 
   sysarch(RISCV_SYNC_ICACHE, &arg);
+#elif defined(__ve__)
+  __asm__ volatile("fencec 2");
 #else
 #if __APPLE__
   // On Darwin, sys_icache_invalidate() provides this functionality
   sys_icache_invalidate(start, end - start);
-#elif defined(__ve__)
-  __asm__ volatile("fencec 2");
 #else
   compilerrt_abort();
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123439.422940.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/0168ab11/attachment.bin>


More information about the llvm-commits mailing list