| 558 | } |
| 559 | |
| 560 | string LlvmCodeGen::GetIR(bool full_module) const { |
| 561 | string str; |
| 562 | llvm::raw_string_ostream stream(str); |
| 563 | if (full_module) { |
| 564 | module_->print(stream, NULL); |
| 565 | } else { |
| 566 | for (int i = 0; i < handcrafted_functions_.size(); ++i) { |
| 567 | handcrafted_functions_[i]->print(stream, nullptr, false, true); |
| 568 | } |
| 569 | } |
| 570 | return str; |
| 571 | } |
| 572 | |
| 573 | llvm::Type* LlvmCodeGen::GetSlotType(const ColumnType& type) { |
| 574 | switch (type.type) { |