Skip to content

Commit 3434082

Browse files
committed
[LLVM] Use "syncscope" instead of "synchscope" in comments. NFC.
This matches the spelling of the keyword in LLVM IR.
1 parent 65c7ea7 commit 3434082

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
@@ -631,25 +631,25 @@ enum FunctionCodes {
631631
FUNC_CODE_INST_CALL = 34, // CALL: [attr, cc, fnty, fnid, args...]
632632

633633
FUNC_CODE_DEBUG_LOC = 35, // DEBUG_LOC: [Line,Col,ScopeVal, IAVal]
634-
FUNC_CODE_INST_FENCE = 36, // FENCE: [ordering, synchscope]
634+
FUNC_CODE_INST_FENCE = 36, // FENCE: [ordering, syncscope]
635635
FUNC_CODE_INST_CMPXCHG_OLD = 37, // CMPXCHG: [ptrty, ptr, cmp, val, vol,
636-
// ordering, synchscope,
636+
// ordering, syncscope,
637637
// failure_ordering?, weak?]
638638
FUNC_CODE_INST_ATOMICRMW_OLD = 38, // ATOMICRMW: [ptrty,ptr,val, operation,
639639
// align, vol,
640-
// ordering, synchscope]
640+
// ordering, syncscope]
641641
FUNC_CODE_INST_RESUME = 39, // RESUME: [opval]
642642
FUNC_CODE_INST_LANDINGPAD_OLD =
643643
40, // LANDINGPAD: [ty,val,val,num,id0,val0...]
644644
FUNC_CODE_INST_LOADATOMIC = 41, // LOAD: [opty, op, align, vol,
645-
// ordering, synchscope]
645+
// ordering, syncscope]
646646
FUNC_CODE_INST_STOREATOMIC_OLD = 42, // STORE: [ptrty,ptr,val, align, vol
647-
// ordering, synchscope]
647+
// ordering, syncscope]
648648
FUNC_CODE_INST_GEP = 43, // GEP: [inbounds, n x operands]
649649
FUNC_CODE_INST_STORE = 44, // STORE: [ptrty,ptr,valty,val, align, vol]
650650
FUNC_CODE_INST_STOREATOMIC = 45, // STORE: [ptrty,ptr,val, align, vol
651651
FUNC_CODE_INST_CMPXCHG = 46, // CMPXCHG: [ptrty, ptr, cmp, val, vol,
652-
// success_ordering, synchscope,
652+
// success_ordering, syncscope,
653653
// failure_ordering, weak]
654654
FUNC_CODE_INST_LANDINGPAD = 47, // LANDINGPAD: [ty,val,num,id0,val0...]
655655
FUNC_CODE_INST_CLEANUPRET = 48, // CLEANUPRET: [val] or [val,bb#]
@@ -667,7 +667,7 @@ enum FunctionCodes {
667667
FUNC_CODE_INST_FREEZE = 58, // FREEZE: [opty, opval]
668668
FUNC_CODE_INST_ATOMICRMW = 59, // ATOMICRMW: [ptrty, ptr, valty, val,
669669
// operation, align, vol,
670-
// ordering, synchscope]
670+
// ordering, syncscope]
671671
FUNC_CODE_BLOCKADDR_USERS = 60, // BLOCKADDR_USERS: [value...]
672672

673673
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
@@ -261,7 +261,7 @@ class FunctionComparator {
261261
/// 6.1.Load: volatile (as boolean flag)
262262
/// 6.2.Load: alignment (as integer numbers)
263263
/// 6.3.Load: ordering (as underlying enum class value)
264-
/// 6.4.Load: synch-scope (as integer numbers)
264+
/// 6.4.Load: sync-scope (as integer numbers)
265265
/// 6.5.Load: range metadata (as integer ranges)
266266
/// On this stage its better to see the code, since its not more than 10-15
267267
/// 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
@@ -6415,7 +6415,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
64156415
break;
64166416
}
64176417
case bitc::FUNC_CODE_INST_CMPXCHG_OLD: {
6418-
// CMPXCHG_OLD: [ptrty, ptr, cmp, val, vol, ordering, synchscope,
6418+
// CMPXCHG_OLD: [ptrty, ptr, cmp, val, vol, ordering, syncscope,
64196419
// failure_ordering?, weak?]
64206420
const size_t NumRecords = Record.size();
64216421
unsigned OpNum = 0;
@@ -6483,7 +6483,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
64836483
break;
64846484
}
64856485
case bitc::FUNC_CODE_INST_CMPXCHG: {
6486-
// CMPXCHG: [ptrty, ptr, cmp, val, vol, success_ordering, synchscope,
6486+
// CMPXCHG: [ptrty, ptr, cmp, val, vol, success_ordering, syncscope,
64876487
// failure_ordering, weak, align?]
64886488
const size_t NumRecords = Record.size();
64896489
unsigned OpNum = 0;

0 commit comments

Comments
 (0)