| 469 | |
| 470 | /// Returns the string representation of a llvm::Value* or llvm::Type* |
| 471 | template <typename T> static std::string Print(T* value_or_type) { |
| 472 | std::string str; |
| 473 | llvm::raw_string_ostream stream(str); |
| 474 | value_or_type->print(stream); |
| 475 | return str; |
| 476 | } |
| 477 | |
| 478 | /// Returns the cross compiled function. 'ir_type' is an enum which is generated |
| 479 | /// by gen_ir_descriptions.py. The returned function and its callee will be materialized |