diff --git a/llvm/include/llvm/Transforms/Yk/ControlPoint.h b/llvm/include/llvm/Transforms/Yk/ControlPoint.h index 4c3ebf363b9134..b9cbfa36bebab9 100644 --- a/llvm/include/llvm/Transforms/Yk/ControlPoint.h +++ b/llvm/include/llvm/Transforms/Yk/ControlPoint.h @@ -5,7 +5,7 @@ // The name of the "dummy function" that the user puts in their interpreter // implementation and that we will replace with our own code. -#define YK_DUMMY_CONTROL_POINT "yk_control_point" +#define YK_DUMMY_CONTROL_POINT "yk_mt_control_point" // The name of the new control point replacing the user's dummy control point. #define YK_NEW_CONTROL_POINT "__ykrt_control_point" diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 5c40fac4e67766..406c3c82bc33e0 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -247,7 +247,7 @@ static cl::opt YkBlockDisambiguate( static cl::opt YkPatchCtrlPoint("yk-patch-control-point", cl::init(false), cl::NotHidden, - cl::desc("Patch yk_control_point()")); + cl::desc("Patch yk_mt_control_point()")); /// Allow standard passes to be disabled by command line options. This supports /// simple binary flags that either suppress the pass or do nothing. diff --git a/llvm/lib/Transforms/Yk/ControlPoint.cpp b/llvm/lib/Transforms/Yk/ControlPoint.cpp index c1fb65dcf8f5ae..3c1c20a0ae4e4e 100644 --- a/llvm/lib/Transforms/Yk/ControlPoint.cpp +++ b/llvm/lib/Transforms/Yk/ControlPoint.cpp @@ -11,7 +11,7 @@ // YkLocation loc = ...; // pc = 0; // while (...) { -// yk_control_point(mt, loc); // <- dummy control point +// yk_mt_control_point(mt, loc); // <- dummy control point // bc = program[pc]; // switch (bc) { // // bytecode handlers here. @@ -75,12 +75,12 @@ using namespace llvm; /// could not be found. /// YKFIXME: For now assumes there's only one control point. CallInst *findControlPointCall(Module &M) { - // Find the declaration of `yk_control_point()`. + // Find the declaration of `yk_mt_control_point()`. Function *CtrlPoint = M.getFunction(YK_DUMMY_CONTROL_POINT); if (CtrlPoint == nullptr) return nullptr; - // Find the call site of `yk_control_point()`. + // Find the call site of `yk_mt_control_point()`. Value::user_iterator U = CtrlPoint->user_begin(); if (U == CtrlPoint->user_end()) return nullptr; @@ -124,7 +124,7 @@ class YkControlPoint : public ModulePass { CallInst *OldCtrlPointCall = findControlPointCall(M); if (OldCtrlPointCall == nullptr) { Context.emitError( - "ykllvm couldn't find the call to `yk_control_point()`"); + "ykllvm couldn't find the call to `yk_mt_control_point()`"); return false; } @@ -138,7 +138,7 @@ class YkControlPoint : public ModulePass { return L->contains(OldCtrlPointCall); })) { ; - Context.emitError("yk_control_point() must be called inside a loop."); + Context.emitError("yk_mt_control_point() must be called inside a loop."); return false; }