| 499 | } |
| 500 | |
| 501 | uint32_t ConstantManager::GetSIntConstId(int32_t val) { |
| 502 | Type* sint_type = context()->get_type_mgr()->GetSIntType(); |
| 503 | const Constant* c = GetConstant(sint_type, {static_cast<uint32_t>(val)}); |
| 504 | return GetDefiningInstruction(c)->result_id(); |
| 505 | } |
| 506 | |
| 507 | const Constant* ConstantManager::GetIntConst(uint64_t val, int32_t bitWidth, |
| 508 | bool isSigned) { |
no test coverage detected