diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index ebea7ec533c32..9a8dd66b7a1ad 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -696,7 +696,6 @@ def __llvm_deoptimize : RuntimeLibcallImpl; // Clear cache def __clear_cache : RuntimeLibcallImpl; -def __riscv_flush_icache : RuntimeLibcallImpl; //-------------------------------------------------------------------- // libm @@ -956,6 +955,8 @@ def bzero : RuntimeLibcallImpl; def __bzero : RuntimeLibcallImpl; def _Unwind_SjLj_Resume : RuntimeLibcallImpl; +def __riscv_flush_icache : RuntimeLibcallImpl; + //===----------------------------------------------------------------------===// // F128 libm Runtime Libcalls //===----------------------------------------------------------------------===// @@ -1903,6 +1904,18 @@ def PPCSystemLibrary AvailableIf, LibcallImpls<(add Int128RTLibcalls), isPPC64>)>; +//===----------------------------------------------------------------------===// +// RISCV Runtime Libcalls +//===----------------------------------------------------------------------===// + +def isRISCV : RuntimeLibcallPredicate<"TT.isRISCV()">; +def isRISCV64 : RuntimeLibcallPredicate<"TT.isRISCV64()">; + +def RISCVSystemLibrary + : SystemRuntimeLibrary)>; + //===----------------------------------------------------------------------===// // SPARC Runtime Libcalls //===----------------------------------------------------------------------===//