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

Function get_align_arg

ir/instr.cpp:2327–2333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2325}
2326
2327static Value* get_align_arg(const vector<pair<Value*, ParamAttrs>> &args) {
2328 for (auto &[arg, attrs] : args) {
2329 if (attrs.has(ParamAttrs::AllocAlign))
2330 return arg;
2331 }
2332 return nullptr;
2333}
2334
2335Value* FnCall::getAlignArg() const {
2336 return get_align_arg(args);

Callers 2

getAlignArgMethod · 0.85
check_return_valueFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected