Skip to content

Commit

Permalink
handle assigner_print_native_pallas_field intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
CblPOK-git authored and nkaskov committed Oct 30, 2023
1 parent abd7aaf commit 5371db6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/nil/blueprint/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@ namespace nil {
handle_integer_bit_composition_component<BlueprintFieldType, ArithmetizationParams>(inst, frame, stack_memory, bp, assignmnt, start_row);
return true;
}
case llvm::Intrinsic::assigner_print_native_pallas_field: {
llvm::Value *input = inst->getOperand(0);
ASSERT(field_arg_num<BlueprintFieldType>(input->getType()) == 1);
std::cout << var_value(assignmnt, frame.scalars[input]).data << std::endl;
return true;
}
case llvm::Intrinsic::memcpy: {
llvm::Value *src_val = inst->getOperand(1);
ptr_type dst = resolve_number<ptr_type>(frame, inst->getOperand(0));
Expand Down

0 comments on commit 5371db6

Please sign in to comment.