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

Function value_name

llvm_util/utils.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98string value_name(const llvm::Value &v) {
99 auto &name = value_names[&v];
100 if (!name.empty())
101 return name;
102
103 if (!v.getName().empty())
104 return name = '%' + v.getName().str();
105 return name = v.getType()->isVoidTy() ? "<void>"
106 : "%#" + to_string(value_id_counter++);
107}
108
109Type& get_int_type(unsigned bits) {
110 if (bits >= int_types.size())

Callers 15

known_callFunction · 0.85
visitUnaryOperatorMethod · 0.85
visitBinaryOperatorMethod · 0.85
visitCastInstMethod · 0.85
visitFreezeInstMethod · 0.85
visitCallInstMethod · 0.85
visitICmpInstMethod · 0.85
visitFCmpInstMethod · 0.85
visitSelectInstMethod · 0.85
visitExtractValueInstMethod · 0.85
visitInsertValueInstMethod · 0.85
visitAllocaInstMethod · 0.85

Calls 3

to_stringFunction · 0.85
strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected