Skip to content

Commit d541680

Browse files
authored
[LLVM] Use "syncscope" instead of "synchscope" in comments. NFC. (#134615)
This matches the spelling of the keyword in LLVM IR.
1 parent 4e9b76e commit d541680

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

llvm/include/llvm/Bitcode/LLVMBitCodes.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -639,25 +639,25 @@ enum FunctionCodes {
639639
FUNC_CODE_INST_CALL = 34, // CALL: [attr, cc, fnty, fnid, args...]
640640

641641
FUNC_CODE_DEBUG_LOC = 35, // DEBUG_LOC: [Line,Col,ScopeVal, IAVal]
642-
FUNC_CODE_INST_FENCE = 36, // FENCE: [ordering, synchscope]
642+
FUNC_CODE_INST_FENCE = 36, // FENCE: [ordering, syncscope]
643643
FUNC_CODE_INST_CMPXCHG_OLD = 37, // CMPXCHG: [ptrty, ptr, cmp, val, vol,
644-
// ordering, synchscope,
644+
// ordering, syncscope,
645645
// failure_ordering?, weak?]
646646
FUNC_CODE_INST_ATOMICRMW_OLD = 38, // ATOMICRMW: [ptrty,ptr,val, operation,
647647
// align, vol,
648-
// ordering, synchscope]
648+
// ordering, syncscope]
649649
FUNC_CODE_INST_RESUME = 39, // RESUME: [opval]
650650
FUNC_CODE_INST_LANDINGPAD_OLD =
651651
40, // LANDINGPAD: [ty,val,val,num,id0,val0...]
652652
FUNC_CODE_INST_LOADATOMIC = 41, // LOAD: [opty, op, align, vol,
653-
// ordering, synchscope]
653+
// ordering, syncscope]
654654
FUNC_CODE_INST_STOREATOMIC_OLD = 42, // STORE: [ptrty,ptr,val, align, vol
655-
// ordering, synchscope]
655+
// ordering, syncscope]
656656
FUNC_CODE_INST_GEP = 43, // GEP: [inbounds, n x operands]
657657
FUNC_CODE_INST_STORE = 44, // STORE: [ptrty,ptr,valty,val, align, vol]
658658
FUNC_CODE_INST_STOREATOMIC = 45, // STORE: [ptrty,ptr,val, align, vol
659659
FUNC_CODE_INST_CMPXCHG = 46, // CMPXCHG: [ptrty, ptr, cmp, val, vol,
660-
// success_ordering, synchscope,
660+
// success_ordering, syncscope,
661661
// failure_ordering, weak]
662662
FUNC_CODE_INST_LANDINGPAD = 47, // LANDINGPAD: [ty,val,num,id0,val0...]
663663
FUNC_CODE_INST_CLEANUPRET = 48, // CLEANUPRET: [val] or [val,bb#]
@@ -675,7 +675,7 @@ enum FunctionCodes {
675675
FUNC_CODE_INST_FREEZE = 58, // FREEZE: [opty, opval]
676676
FUNC_CODE_INST_ATOMICRMW = 59, // ATOMICRMW: [ptrty, ptr, valty, val,
677677
// operation, align, vol,
678-
// ordering, synchscope]
678+
// ordering, syncscope]
679679
FUNC_CODE_BLOCKADDR_USERS = 60, // BLOCKADDR_USERS: [value...]
680680

681681
FUNC_CODE_DEBUG_RECORD_VALUE =

llvm/include/llvm/Transforms/Utils/FunctionComparator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class FunctionComparator {
263263
/// 6.1.Load: volatile (as boolean flag)
264264
/// 6.2.Load: alignment (as integer numbers)
265265
/// 6.3.Load: ordering (as underlying enum class value)
266-
/// 6.4.Load: synch-scope (as integer numbers)
266+
/// 6.4.Load: sync-scope (as integer numbers)
267267
/// 6.5.Load: range metadata (as integer ranges)
268268
/// On this stage its better to see the code, since its not more than 10-15
269269
/// strings for particular instruction, and could change sometimes.

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6430,7 +6430,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
64306430
break;
64316431
}
64326432
case bitc::FUNC_CODE_INST_CMPXCHG_OLD: {
6433-
// CMPXCHG_OLD: [ptrty, ptr, cmp, val, vol, ordering, synchscope,
6433+
// CMPXCHG_OLD: [ptrty, ptr, cmp, val, vol, ordering, syncscope,
64346434
// failure_ordering?, weak?]
64356435
const size_t NumRecords = Record.size();
64366436
unsigned OpNum = 0;
@@ -6498,7 +6498,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
64986498
break;
64996499
}
65006500
case bitc::FUNC_CODE_INST_CMPXCHG: {
6501-
// CMPXCHG: [ptrty, ptr, cmp, val, vol, success_ordering, synchscope,
6501+
// CMPXCHG: [ptrty, ptr, cmp, val, vol, success_ordering, syncscope,
65026502
// failure_ordering, weak, align?]
65036503
const size_t NumRecords = Record.size();
65046504
unsigned OpNum = 0;

0 commit comments

Comments
 (0)