Skip to content

Commit 50e4a8d

Browse files
committed
Use shorter names for branch opcodes.
1 parent 9ee909e commit 50e4a8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ enum OpCode {
4141
Alloca,
4242
Call,
4343
GetElementPtr,
44-
Branch,
45-
CondBranch,
44+
Br,
45+
CondBr,
4646
ICmp,
4747
BinaryOperator,
4848
Ret,
@@ -296,7 +296,7 @@ class YkIRWriter {
296296
// type_index:
297297
OutStreamer.emitSizeT(typeIndex(I->getType()));
298298
// opcode:
299-
serialiseOpcode(OpCode::Branch);
299+
serialiseOpcode(OpCode::Br);
300300
// num_operands:
301301
// We don't serialise any operands, because traces will guide us.
302302
OutStreamer.emitInt32(0);
@@ -306,7 +306,7 @@ class YkIRWriter {
306306
} else {
307307
// We DO need operands for conditional branches, so that we can build
308308
// guards.
309-
serialiseInstGeneric(I, VLMap, BBIdx, InstIdx, OpCode::CondBranch);
309+
serialiseInstGeneric(I, VLMap, BBIdx, InstIdx, OpCode::CondBr);
310310
}
311311
}
312312

0 commit comments

Comments
 (0)