[all-commits] [llvm/llvm-project] fb3665: [Memory] Call __clear_cache in InvalidateInstructi...
Lu Weining via All-commits
all-commits at lists.llvm.org
Wed Oct 18 19:16:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb366581e7d67df7d9a98605fd65a7e7908451e7
https://github.com/llvm/llvm-project/commit/fb366581e7d67df7d9a98605fd65a7e7908451e7
Author: Lu Weining <luweining at loongson.cn>
Date: 2023-10-19 (Thu, 19 Oct 2023)
Changed paths:
M llvm/lib/Support/Unix/Memory.inc
Log Message:
-----------
[Memory] Call __clear_cache in InvalidateInstructionCache on LoongArch (#67285)
As the comments of `InvalidateInstructionCache`: Before the JIT can run
a block of code that has been emitted it must invalidate the instruction
cache on some platforms. I think it applies to LoongArch as LoongArch
has a weak memory-model. But I'm not able to write a test to demonstrate
this issue. Perhaps self-modifing code should be wrote?
More information about the All-commits
mailing list