Skip to content

Commit 0f2d875

Browse files
committed
clang-format
1 parent 1deaafc commit 0f2d875

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

llvm/include/llvm/Bitcode/LLVMBitCodes.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -400,18 +400,18 @@ enum ConstantsCodes {
400400
CST_CODE_INLINEASM_OLD2 = 23, // INLINEASM: [sideeffect|alignstack|
401401
// asmdialect,asmstr,conststr]
402402
CST_CODE_CE_GEP_WITH_INRANGE_INDEX_OLD = 24, // [opty, flags, n x operands]
403-
CST_CODE_CE_UNOP = 25, // CE_UNOP: [opcode, opval]
404-
CST_CODE_POISON = 26, // POISON
405-
CST_CODE_DSO_LOCAL_EQUIVALENT = 27, // DSO_LOCAL_EQUIVALENT [gvty, gv]
406-
CST_CODE_INLINEASM_OLD3 = 28, // INLINEASM: [sideeffect|alignstack|
407-
// asmdialect|unwind,
408-
// asmstr,conststr]
409-
CST_CODE_NO_CFI_VALUE = 29, // NO_CFI [ fty, f ]
410-
CST_CODE_INLINEASM = 30, // INLINEASM: [fnty,
411-
// sideeffect|alignstack|
412-
// asmdialect|unwind,
413-
// asmstr,conststr]
414-
CST_CODE_CE_GEP_WITH_INRANGE = 31, // [opty, flags, range, n x operands]
403+
CST_CODE_CE_UNOP = 25, // CE_UNOP: [opcode, opval]
404+
CST_CODE_POISON = 26, // POISON
405+
CST_CODE_DSO_LOCAL_EQUIVALENT = 27, // DSO_LOCAL_EQUIVALENT [gvty, gv]
406+
CST_CODE_INLINEASM_OLD3 = 28, // INLINEASM: [sideeffect|alignstack|
407+
// asmdialect|unwind,
408+
// asmstr,conststr]
409+
CST_CODE_NO_CFI_VALUE = 29, // NO_CFI [ fty, f ]
410+
CST_CODE_INLINEASM = 30, // INLINEASM: [fnty,
411+
// sideeffect|alignstack|
412+
// asmdialect|unwind,
413+
// asmstr,conststr]
414+
CST_CODE_CE_GEP_WITH_INRANGE = 31, // [opty, flags, range, n x operands]
415415
};
416416

417417
/// CastOpcodes - These are values used in the bitcode files to encode which

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,8 +3321,7 @@ Error BitcodeReader::parseConstants() {
33213321
unsigned OpNum = 0;
33223322
Type *PointeeType = nullptr;
33233323
if (BitCode == bitc::CST_CODE_CE_GEP_WITH_INRANGE_INDEX_OLD ||
3324-
BitCode == bitc::CST_CODE_CE_GEP_WITH_INRANGE ||
3325-
Record.size() % 2)
3324+
BitCode == bitc::CST_CODE_CE_GEP_WITH_INRANGE || Record.size() % 2)
33263325
PointeeType = getTypeByID(Record[OpNum++]);
33273326

33283327
bool InBounds = false;
@@ -3333,7 +3332,7 @@ Error BitcodeReader::parseConstants() {
33333332
unsigned InRangeIndex = Op >> 1;
33343333
// "Upgrade" inrange by dropping it. The feature is too niche to
33353334
// bother.
3336-
(void) InRangeIndex;
3335+
(void)InRangeIndex;
33373336
} else if (BitCode == bitc::CST_CODE_CE_GEP_WITH_INRANGE) {
33383337
uint64_t Op = Record[OpNum++];
33393338
InBounds = Op & 1;
@@ -3373,10 +3372,9 @@ Error BitcodeReader::parseConstants() {
33733372
return error("Missing element type for old-style constant GEP");
33743373
}
33753374

3376-
V = BitcodeConstant::create(Alloc, CurTy,
3377-
{Instruction::GetElementPtr, InBounds,
3378-
PointeeType, InRange},
3379-
Elts);
3375+
V = BitcodeConstant::create(
3376+
Alloc, CurTy,
3377+
{Instruction::GetElementPtr, InBounds, PointeeType, InRange}, Elts);
33803378
break;
33813379
}
33823380
case bitc::CST_CODE_CE_SELECT: { // CE_SELECT: [opval#, opval#, opval#]

llvm/lib/IR/AsmWriter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,8 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV,
17001700
Out << ", ";
17011701
}
17021702

1703-
for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) {
1703+
for (User::const_op_iterator OI = CE->op_begin(); OI != CE->op_end();
1704+
++OI) {
17041705
WriterCtx.TypePrinter->print((*OI)->getType(), Out);
17051706
Out << ' ';
17061707
WriteAsOperandInternal(Out, *OI, WriterCtx);

0 commit comments

Comments
 (0)