MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / make_intconst

Function make_intconst

llvm_util/utils.cpp:244–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243
244Value* 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
251IR::Value* make_intconst(const llvm::APInt &val) {
252 unique_ptr<IntConst> c;

Callers 8

known_callFunction · 0.85
NOPMethod · 0.85
mkUnreachMethod · 0.85
visitAllocaInstMethod · 0.85
handleMetadataMethod · 0.85
get_operandFunction · 0.85

Calls 3

toStringFunction · 0.85
addConstantMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected