[llvm] [llvm][rtsan] Add transform pass for sanitize_realtime_unsafe (PR #109543)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 08:03:59 PDT 2024


================
@@ -45,6 +46,26 @@ static void insertCallAtAllFunctionExitPoints(Function &Fn,
         insertCallBeforeInstruction(Fn, I, InsertFnName);
 }
 
+static PreservedAnalyses rtsanPreservedCFGAnalyses() {
+  PreservedAnalyses PA;
+  PA.preserveSet<CFGAnalyses>();
+  return PA;
+}
+
+static void insertNotifyBlockingCallAtFunctionEntryPoint(Function &F) {
----------------
davidtrevelyan wrote:

Cool, sounds sensible - changed it to `Fn` throughout the file 

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


More information about the llvm-commits mailing list