[llvm] Rtsan/blocking 2 llvm pass (PR #109543)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 22 06:35:46 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) {
+  IRBuilder<> Builder(&F.front().front());
+  Value *NameArg = Builder.CreateGlobalString(demangle(F.getName()));
----------------
cjappl wrote:

For you (or other reviewers) what is the difference between CreateGlobalString and CreateGlobalStringPtr, and which is appropriate here?

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


More information about the llvm-commits mailing list