[all-commits] [llvm/llvm-project] 5ef02d: [RISCV] Lower llvm.clear_cache to __riscv_flush_ic...

Roger Ferrer Ibáñez via All-commits all-commits at lists.llvm.org
Wed Jun 19 22:27:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ef02d9963765514f094092d6635eb8b4f1f9ce6
      https://github.com/llvm/llvm-project/commit/5ef02d9963765514f094092d6635eb8b4f1f9ce6
  Author: Roger Ferrer Ibáñez <rofirrim at gmail.com>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M llvm/include/llvm/IR/RuntimeLibcalls.def
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    A llvm/test/CodeGen/RISCV/clear-cache.ll

  Log Message:
  -----------
  [RISCV] Lower llvm.clear_cache to __riscv_flush_icache for glibc targets (#93481)

This change is a preliminary step to support trampolines on RISC-V. Trampolines are used by flang to implement obtaining the address of an internal program (i.e., a nested function in Fortran parlance).

In this change we lower `llvm.clear_cache` intrinsic on glibc targets to
`__riscv_flush_icache` which is what GCC is currently doing for Linux targets.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list