| 242 | |
| 243 | |
| 244 | Value* make_intconst(uint64_t val, int bits) { |
| 245 | auto c = make_unique<IntConst>(get_int_type(bits), val); |
| 246 | auto ret = c.get(); |
| 247 | current_fn->addConstant(std::move(c)); |
| 248 | return ret; |
| 249 | } |
| 250 | |
| 251 | IR::Value* make_intconst(const llvm::APInt &val) { |
| 252 | unique_ptr<IntConst> c; |
no test coverage detected