Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 675428592
  • Loading branch information
XLS Team authored and copybara-github committed Sep 17, 2024
1 parent 6e4c352 commit fe11876
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions xls/dslx/bytecode/bytecode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -475,48 +475,47 @@ DEF_UNARY_BUILDER(Swap);
#undef DEF_UNARY_BUILDER

/* static */ Bytecode Bytecode::MakeJumpRelIf(Span span, JumpTarget target) {
return Bytecode(std::move(span), Op::kJumpRelIf, target);
return Bytecode(span, Op::kJumpRelIf, target);
}

/* static */ Bytecode Bytecode::MakeJumpRel(Span span, JumpTarget target) {
return Bytecode(std::move(span), Op::kJumpRel, target);
return Bytecode(span, Op::kJumpRel, target);
}

/* static */ Bytecode Bytecode::MakeLiteral(
Span span, InterpValue literal,
std::optional<ValueFormatDescriptor> format_descriptor) {
return Bytecode(std::move(span), Op::kLiteral, std::move(literal),
return Bytecode(span, Op::kLiteral, std::move(literal),
std::move(format_descriptor));
}

/* static */ Bytecode Bytecode::MakeLoad(Span span, SlotIndex slot_index) {
return Bytecode(std::move(span), Op::kLoad, slot_index);
return Bytecode(span, Op::kLoad, slot_index);
}

/* static */ Bytecode Bytecode::MakeMatchArm(Span span, MatchArmItem item) {
return Bytecode(std::move(span), Op::kMatchArm, std::move(item));
return Bytecode(span, Op::kMatchArm, std::move(item));
}

/* static */ Bytecode Bytecode::MakeRecv(Span span, ChannelData channel_data) {
return Bytecode(std::move(span), Op::kRecv, std::move(channel_data));
return Bytecode(span, Op::kRecv, std::move(channel_data));
}

/* static */ Bytecode Bytecode::MakeRecvNonBlocking(Span span,
ChannelData channel_data) {
return Bytecode(std::move(span), Op::kRecvNonBlocking,
std::move(channel_data));
return Bytecode(span, Op::kRecvNonBlocking, std::move(channel_data));
}

/* static */ Bytecode Bytecode::MakeSend(Span span, ChannelData channel_data) {
return Bytecode(std::move(span), Op::kSend, std::move(channel_data));
return Bytecode(span, Op::kSend, std::move(channel_data));
}

/* static */ Bytecode Bytecode::MakeSpawn(Span span, SpawnData spawn_data) {
return Bytecode(std::move(span), Op::kSpawn, spawn_data);
return Bytecode(span, Op::kSpawn, spawn_data);
}

/* static */ Bytecode Bytecode::MakeStore(Span span, SlotIndex slot_index) {
return Bytecode(std::move(span), Op::kStore, slot_index);
return Bytecode(span, Op::kStore, slot_index);
}

absl::StatusOr<Bytecode::JumpTarget> Bytecode::jump_target() const {
Expand Down

0 comments on commit fe11876

Please sign in to comment.