Skip to content

Commit 9742b3e

Browse files
committed
Rename yk_control_point to yk_mt_control_point.
1 parent 0523c33 commit 9742b3e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

llvm/include/llvm/Transforms/Yk/ControlPoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// The name of the "dummy function" that the user puts in their interpreter
77
// implementation and that we will replace with our own code.
8-
#define YK_DUMMY_CONTROL_POINT "yk_control_point"
8+
#define YK_DUMMY_CONTROL_POINT "yk_mt_control_point"
99

1010
// The name of the new control point replacing the user's dummy control point.
1111
#define YK_NEW_CONTROL_POINT "__ykrt_control_point"

llvm/lib/CodeGen/TargetPassConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static cl::opt<bool> YkBlockDisambiguate(
247247
static cl::opt<bool>
248248
YkPatchCtrlPoint("yk-patch-control-point",
249249
cl::init(false), cl::NotHidden,
250-
cl::desc("Patch yk_control_point()"));
250+
cl::desc("Patch yk_mt_control_point()"));
251251

252252
/// Allow standard passes to be disabled by command line options. This supports
253253
/// simple binary flags that either suppress the pass or do nothing.

llvm/lib/Transforms/Yk/ControlPoint.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// YkLocation loc = ...;
1212
// pc = 0;
1313
// while (...) {
14-
// yk_control_point(mt, loc); // <- dummy control point
14+
// yk_mt_control_point(mt, loc); // <- dummy control point
1515
// bc = program[pc];
1616
// switch (bc) {
1717
// // bytecode handlers here.
@@ -75,12 +75,12 @@ using namespace llvm;
7575
/// could not be found.
7676
/// YKFIXME: For now assumes there's only one control point.
7777
CallInst *findControlPointCall(Module &M) {
78-
// Find the declaration of `yk_control_point()`.
78+
// Find the declaration of `yk_mt_control_point()`.
7979
Function *CtrlPoint = M.getFunction(YK_DUMMY_CONTROL_POINT);
8080
if (CtrlPoint == nullptr)
8181
return nullptr;
8282

83-
// Find the call site of `yk_control_point()`.
83+
// Find the call site of `yk_mt_control_point()`.
8484
Value::user_iterator U = CtrlPoint->user_begin();
8585
if (U == CtrlPoint->user_end())
8686
return nullptr;
@@ -124,7 +124,7 @@ class YkControlPoint : public ModulePass {
124124
CallInst *OldCtrlPointCall = findControlPointCall(M);
125125
if (OldCtrlPointCall == nullptr) {
126126
Context.emitError(
127-
"ykllvm couldn't find the call to `yk_control_point()`");
127+
"ykllvm couldn't find the call to `yk_mt_control_point()`");
128128
return false;
129129
}
130130

@@ -138,7 +138,7 @@ class YkControlPoint : public ModulePass {
138138
return L->contains(OldCtrlPointCall);
139139
})) {
140140
;
141-
Context.emitError("yk_control_point() must be called inside a loop.");
141+
Context.emitError("yk_mt_control_point() must be called inside a loop.");
142142
return false;
143143
}
144144

0 commit comments

Comments
 (0)